Closed edwardhartnett closed 1 year ago
@jack-woollen or @jbathegit can you take a look at this PR and try to answer some of the questions?
Sorry, I'm going to have to defer to Jack to answer the remaining questions. I've never really understood what newwin does, or else I would have already tried to write a test for it.
@jack-woollen why was this closed?
When we have code in the library that only one person understands how to use, that's a big problem. What is the deal with this windowing code that makes it so difficult?
Can this code be removed from the library if it cannot be tested or documented in such a way that other maintainers can understand and use it?
What good is code that no one can figure out how to use? Surely our users cannot figure this out, if @jbathegit cannot...
@edwardhartnett I thought we agreed the ufbrw test code tested all the windowing codes. Are you talking about testing or documentation? I can write some more docs if you want.
OK, I appologize. Somehow I missed the fact that the windowing code is now being tested.
@jack-woollen the documentation of the windowing code can be much improved. There are a bunch of questions that I ask about the code in this PR. Can you answer those questions and we can see if we can improve the documentation so that both @jbathegit and I have a better understanding of the windowing code?
Yup, will do. Thanks for the explanation.
C> @file C> @brief Computes the start and end indices of the next window. C> C> @author J. Woollen @date 1994-01-06 C> Given indices within the internal jump/link table which C> point to the start and end of an "rpc" window (which is an iteration of C> an 8-bit or 16-bit delayed replication sequence), this subroutine C> computes the start and end indices of the next window. C> C> @note See getwin() for an explanation of "windows" within the C> context of a bufr data subset. C> C> @param[in] LUN - integer: i/o stream index into internal memory arrays. C> @param[inout] IWIN - integer: C> - on input, contains starting index of current window iteration. C> - on output, contains starting index of next window iteration. C> @param[inout] JWIN - integer: C> - on input, contains ending index of current window iteration. C> - on output, contains ending index of next window iteration. C> C> @author J. Woollen @date 1994-01-06
@jack-woollen emailed me some test code. Not sure why he didn't just make a PR.
I put the test code in, but it doesn't work. See code comments for discussion.