You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the split explicit passes bfb restarts. Tendency routines are identical for split explicit and RK4. RK4 passes partition test, so this is not a halo update problem.
@xylar thanks for pointing this out. I tried the easy things that came to mind, as noted in the first comment. I was hoping to find some option that required an update within the split-explicit module, that was not added to RK4. Surface fluxes and forcing are obvious candidates, but do not appear to be related.
Thanks @mark-petersen! As I mentioned at Coffee today, I'm seeing this problem as well in COMPASS 1.0. Given that some of the wetting-and-drying work will begin with RK4, it would be really helpful if we can track this down and fix it.
Then I get an exact bfb match on restart. I flipped every other flag possible - cvmix, redi, tracer vmix, bottom drag, etc, and GM is definitely the problem. We just added this EdenGreatbatch method last fall. Maybe that is it.
I was looking at GM as well because ocn_gm_compute_Bolus_velocity is commented out in the split routine whereas it is called in RK4. This change is associated with 66a13d9, which is supposed to fix a restart problem. Maybe RK4 is redundantly computing MLD rather than using its value for restart. @vanroekel might understand this better than I do.
With config_use_GM true the restart test always fails, with both config_GM_closure = 'constant' and 'EdenGreatbatch'. I only get the test to pass with config_use_GM = .false..
Okay I think I understand what is happening. To confirm, @mark-petersen is redi enabled for these runs with standard options config_Redi_use_surface_taper = .true. and config_use_redi=.true.? If so the code blocks mentioned above, in particular the if(config_use_GM) lines imply that the surface taper is recomputed during the timestep and not using the indMLD from the restart file. I would suspect a test with config_use_redi=.false. and config_use_GM=.true., but your last comment suggests you have tried this? If so I'm wrong. But I would also try with deleting the two blocks of code I mention above.
@mark-petersen and @vanroekel I realize this is a low priority but I want to make sure it gets some attention because I see this error several times a day when I work with compass, and it increases the likelihood that a "real" error happens that I don't notice. Also, the lack of restart capability means that the RK4 time integrator isn't really a feasible alternative to split-explicit except for tests short enough not to need restart.
Activity
mark-petersen commentedon Jan 4, 2021
@xylar thanks for pointing this out. I tried the easy things that came to mind, as noted in the first comment. I was hoping to find some option that required an update within the split-explicit module, that was not added to RK4. Surface fluxes and forcing are obvious candidates, but do not appear to be related.
xylar commentedon Jan 4, 2021
Thanks @mark-petersen! As I mentioned at Coffee today, I'm seeing this problem as well in COMPASS 1.0. Given that some of the wetting-and-drying work will begin with RK4, it would be really helpful if we can track this down and fix it.
cc @dengwirda and @cbegeman
mark-petersen commentedon Jan 4, 2021
OK, I found the module (at least). If I turn off GM:
Then I get an exact bfb match on restart. I flipped every other flag possible - cvmix, redi, tracer vmix, bottom drag, etc, and GM is definitely the problem. We just added this
EdenGreatbatchmethod last fall. Maybe that is it.cbegeman commentedon Jan 4, 2021
I was looking at GM as well because
ocn_gm_compute_Bolus_velocityis commented out in the split routine whereas it is called in RK4. This change is associated with 66a13d9, which is supposed to fix a restart problem. Maybe RK4 is redundantly computing MLD rather than using its value for restart. @vanroekel might understand this better than I do.vanroekel commentedon Jan 4, 2021
@mark-petersen does the test pass with
?
If the problem is E&G it suggests RK4 is not calling the routine that computes
BruntVaisalaFreqToporRiTopOfCellon restart@cbegeman just saw your comment and checked the rk4 code, you are right! The calls here
https://github.com/MPAS-Dev/MPAS-Model/blob/master/src/core_ocean/mode_forward/mpas_ocn_time_integration_rk4.F#L648-L650
and
https://github.com/MPAS-Dev/MPAS-Model/blob/ocean/develop/src/core_ocean/mode_forward/mpas_ocn_time_integration_rk4.F#L1248-L1251
should not be there. This routine is called here now instead
https://github.com/MPAS-Dev/MPAS-Model/blob/ocean/develop/src/core_ocean/mode_forward/mpas_ocn_forward_mode.F#L575-L578
It's not clear to me why this causes a restart BFB. The MLD is not used in the GM code, just Redi. I'll think about it some more.
cbegeman commentedon Jan 4, 2021
@vanroekel Thanks! Your first and last links appear to be the same. Should the last link be
MPAS-Model/src/core_ocean/mode_forward/mpas_ocn_forward_mode.F
Lines 576 to 578 in e4dbf57
vanroekel commentedon Jan 4, 2021
oops, yes, thanks for catching that! I've edited my previous comment
mark-petersen commentedon Jan 4, 2021
With
config_use_GMtrue the restart test always fails, with bothconfig_GM_closure = 'constant'and'EdenGreatbatch'. I only get the test to pass withconfig_use_GM = .false..vanroekel commentedon Jan 4, 2021
Okay I think I understand what is happening. To confirm, @mark-petersen is redi enabled for these runs with standard options
config_Redi_use_surface_taper = .true.andconfig_use_redi=.true.? If so the code blocks mentioned above, in particular the if(config_use_GM) lines imply that the surface taper is recomputed during the timestep and not using the indMLD from the restart file. I would suspect a test withconfig_use_redi=.false.andconfig_use_GM=.true., but your last comment suggests you have tried this? If so I'm wrong. But I would also try with deleting the two blocks of code I mention above.xylar commentedon Jun 30, 2021
@mark-petersen and @vanroekel I realize this is a low priority but I want to make sure it gets some attention because I see this error several times a day when I work with compass, and it increases the likelihood that a "real" error happens that I don't notice. Also, the lack of restart capability means that the RK4 time integrator isn't really a feasible alternative to split-explicit except for tests short enough not to need restart.
mark-petersen commentedon Jul 2, 2021
Transplanted this issue to E3SM-Project/E3SM#4376. Fixed by E3SM-Project/E3SM#4369.