Scalars were being lost when the model memory usage was close to the limit for the system. So, for example, CESM test SMS_Ln3.ne30pg3_ne30pg3_mg17.FMTHIST_v0d.derecho_intel
with NTASKS=128 and REST_N=3, REST_OPTION=nsteps
writes 0 in scalar fields.
RMS P0 1.0000E+05 NORMALIZED 0.0000E+00
RMS pbuf_time_idx 1.0000E+00 NORMALIZED 0
RMS nextsw_cday 1.0000E+00 NORMALIZED 0.0000E+00
This fixes that by using the same mechanism for scalars as for non-parallel non-scalars.
Scalars were being lost when the model memory usage was close to the limit for the system. So, for example, CESM test SMS_Ln3.ne30pg3_ne30pg3_mg17.FMTHIST_v0d.derecho_intel with NTASKS=128 and REST_N=3, REST_OPTION=nsteps writes 0 in scalar fields.
RMS P0 1.0000E+05 NORMALIZED 0.0000E+00 RMS pbuf_time_idx 1.0000E+00 NORMALIZED 0 RMS nextsw_cday 1.0000E+00 NORMALIZED 0.0000E+00
This fixes that by using the same mechanism for scalars as for non-parallel non-scalars.