CDEPS icon indicating copy to clipboard operation
CDEPS copied to clipboard

Graceful error check in reading the ESMF mesh when the number of tasks is too many for the size of the grid

Open ekluzek opened this issue 6 months ago • 1 comments

@adrifoster found this in a case she was running where she had too many MPI tasks for the size of the grid being run on.

The following error shows up in the PET file

250429 132530.522 ERROR            PET109 dshr_mod.F90:346 Value unrecognized or out of range  - Passing error in return code
20250429 132530.522 ERROR            PET109 atm_comp_nuopc.F90:442 Value unrecognized or out of range  - Passing error in return code

This is with ctsm5.3.041 using cdeps1.0.70

ekluzek avatar May 08 '25 22:05 ekluzek

It looks like this could be done easily by adding a check in

dshr/dshr_mod.F90

Where the PE count is read in from the VM, and then compared to the multiple of: flds_scalar_index_nx * flds_scalar_index_ny if they are set

ekluzek avatar May 08 '25 22:05 ekluzek