Closed kshedstrom closed 3 years ago
I think that the problem here is that the register_diag_field call for RDG_FRAC (at about line 385 of SIS_ice_diags.F90) are being set up for 2-d (averaged across categories) diagnostics, whereas the corresponding post_data call (at line 256 of SIS_ice_diags.F90) is sending a 3-d array. If you change diag%axesT1 to diag%axesTc on line 385 of SIS_ice_diags.F90, it should fix the problem.
On the other hand, if we really do want RDG_FRAC to be an average across categories, the calculation of rdg_frac near the end of post_ice_state_diagnostics() would have to be changed accordingly.
In the anticipation that the first option (calculating the 3-d diagnostic by category) is the right one, I am rolling this into a PR that is also addressing 3 other issues with diagnostics.
SIS2 PR #146 changed the axes in the registration call for "RDG_FRAC", which should address this issue. Please feel free to reopen this issue if it persists.
The model fails in FMS:
The difference between it running and not running is this line in diag_table: