Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix restart issue when DO_ICE_RESTORE=True
- This update ensures that pasrt_size adds up to 1 on land points to pass the SIS2 checks at initialization - This update avoids a crash by masking the part_size that is read from restart (as is already done for mH_ice). The story is: - A model with AM4+slab_ocean+SIS2 runs into a restart issue when DO_ICE_RESTORE is set to True The model crashes after any restart with "NaN in input field of reproducing_sum(_2d)" pointing to a NaN in checksum for freshwater diagnostics in SIS_sum_output.F90 line 511. Runing with debugger shows that for some reason IST%part_size=1 for category k=3 at some land points on the map where h_ice=0 and model crashes because of division by zero (before the model hits the NaN in chesksum issue of the prod mode). The bad points of IST%part_size=1 on land (mask=0) are probably coming from the initCond of this model.
- Loading branch information