Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug in pism::increment_date() and add more sanity checks
- Disallow negative years with calendars other than 360_day and 365_day. "Real-life" calendars do not have a year zero (year jumps from -1 to 1) and handling this properly would require writing more code we don't really need. - Stop if the run length is negative (-ys A -ye B with A > B or -y C with C < 0).
- Loading branch information
Showing
1 changed file
with
22 additions
and
9 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