MPAS | CRITICAL ERROR NaN detected in 'w' field" crash after MPASv8.0.0 | config_len_disp
config_len_disp
Regarding the 'config_len_disp' option, with MPAS v8.0 it's no longer necessary to specify this length scale if you're using new meshes from the mesh download page, since these new mesh NetCDF files have a variable 'nominalMinDc' that provides this length scale. If you're curious, you can see the corresponding code changes to read and use the 'nominalMinDc' value in MPAS-Dev/MPAS-Model PR 1079.
- However, if you're using old meshes (downloaded before the v8.0.0 release), you will still need to add config_len_disp to your namelist.atmosphere file.
CRITICAL ERROR: NaN detected in 'w' field
- I tried a 15 s timestep an it crashed after simulating one day. Attached are the atmosphere log and screenshot of error message with files written. It could not write the restart file. My guess is that
io_type="pnetcdf,cdf5"should be included for restart as well in thestreams.atmosphere! - Looking through the release notes for
MPAS v8.1.0, it doesn't seem that much has changed in the way of the MPAS-A dynamical core. However, we did make changes to how we interface with theMPIlibrary (through thempi_f08module, if it is available). I recall that some older versions of MPICH had issues with certain routines in thempi_f08module, so perhaps there's some issue there. Which MPI library are you using, and which version of that library do you have? In any case, it could be worth trying the dynamics-only (no-physics) simulation again after adding1
2
3&development
config_halo_exch_method = 'mpas_dmpar'
/- to your
namelist.atmospherefile. This will cause MPAS-A to use an older infrastructure module for communicating halos among MPI tasks. - I have upgraded the mpich library from version 4.0.2 to the latest version 4.2.3 and now the model works perfectly.
- I have also tested the model with mpich version 4.0.2 using your suggested setting in namelist.atmosphere file and it also worked.
- to your
upgraded the mpich library from version 4.0.2 to the latest version 4.2.3
mpich version 4.0.2 using your suggested setting in namelist.atmosphere file and it also worked
1 | |
- Why use it? It is a common troubleshooting workaround in MPAS-A v8.1.0 and v8.2.2 to resolve the "CRITICAL ERROR: NaN detected in 'w' field" crash.
- Primary Solution: This error is frequently caused by bugs in newer MPI libraries; upgrading your MPI library (e.g., MPICH to v4.2.3 or newer) is often the more permanent fix.
MPAS | CRITICAL ERROR NaN detected in 'w' field" crash after MPASv8.0.0 | config_len_disp
https://waipangsze.github.io/2026/06/30/MPAS-config_len_disp-after-MPASv8-0-0/