Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Work on averaging periodic data - Better max_timestep() implementation. Instead of allowing steps up to the next record only now we allow time steps to the last record that would fit in the buffer. - Isolate the code initializing periodic data. Now we add two records (at the beginning and the end of the period) to simplify interpolation. - Remove time bounds from the implementation. In the piece-wise constant case time bounds override times (this simplifies the search for the appropriate record to use at a given time). In the linear case time bounds are not used (except to set the start and the length of the period and check the duration of the forcing). In either case we do not need to store time bounds explicitly.
- Loading branch information
Showing
3 changed files
with
262 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.