Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ice_calendar: fix yearly output with 'histfreq_n /= 1'
In ice_calendar::calendar, we loop over the output frequencies and set 'write_history(ns)' to true if the current time corresponds to the frequency requested in 'histfreq_n'. For yearly outputs, however, the model year 'myear' is used in the modulo computation, whereas it's really the number of elapsed years since the beginning of the run that should be used. This has been the case since the update of the time manager in b720380 (Update Time Manager (CICE-Consortium#566), 2021-03-16). Prior to that, the variable 'nyr' was used, which at that point of the subroutine contained the number of years since the beginning of the run. Fix that regression by introducing the variable 'elapsed_years'.
- Loading branch information