NCAR / ParallelIO

A high-level Parallel I/O Library for structured grid applications
Apache License 2.0
134 stars 52 forks source link

fix scalar write issue, fix serial build issue #1974

Closed jedwards4b closed 12 months ago

jedwards4b commented 1 year ago

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.