NOAA-EMC / CMEPS

NUOPC Community Mediator for Earth Prediction Systems
https://escomp.github.io/CMEPS/
0 stars 20 forks source link

Coupled tests are not reproducible when compiled with Gnu #48

Closed DeniseWorthen closed 3 years ago

DeniseWorthen commented 3 years ago

During ufs-weather PR 561 (the global RT update), it was found that the cpld_control and cpld_controlfrac tests compiled with GNU did not reproduce. The variables ImpAccumCnt and ExpAccumCnt in the mediator restart file were different between the baseline and the verify run. They also contained valid values only for the ocean component. All other component values were un-realistic (and different between baseline and verify).

The issue is that the AccumCnt is initialized to zero only for active components, but is dimensioned to all components. A fix is required to initialize the AccumCnt for all components. The fix has been tested in ufs-weather compiled with gnu and the mediator restart files are now reproducible for both the cpld_controlfrac and cpld_debugfrac tests.