MOM5
MOM5 copied to clipboard
Monthly restarts don't work in leap years when using drivers/ocean_solo.F90
There is a bug in drivers/ocean_solo.F90 which causes a model abort when restarting from Feb of a leap year.
Code below when ALL(restart_interval == 0) and Time end is 29 th of Feb it will try to increment date to 29th Feb of a non leap year and then abort.
if(ALL(restart_interval ==0)) then Time_restart = increment_date(Time_end, 1, 0, 0, 0, 0, 0) else Time_restart = increment_date(Time_restart_init, restart_interval(1), restart_interval(2), & restart_interval(3), restart_interval(4), restart_interval(5), restart_interval(6) ) if(Time_restart <= Time_start) call mpp_error(FATAL, & '==>Error from program ocean_solo: The first intermediate restart time is no larger than the start time') end if