COSIMA / libaccessom2

ACCESS-OM2 library
3 stars 7 forks source link

handle ERA5 leap year Feb inputs #73

Closed aekiss closed 2 years ago

aekiss commented 2 years ago

The end_day field in forcing.json is always replaced by 28 in February, even in a leap year, causing run failure: https://github.com/COSIMA/access-om2/issues/242#issuecomment-1089881847

Looks like this could be fixed with some small changes to https://github.com/COSIMA/libaccessom2/blob/master/libutil/src/util.F90 perhaps using isLeapYear from datetime_module.

aekiss commented 2 years ago

Test run works as expected