Open sdbachman opened 1 month ago
I debugged a crash today that occurred because we had diag_pflx=.true. but also had set #undef DIAGNOSTICS
diag_pflx=.true.
#undef DIAGNOSTICS
In this case the arrays for u_slow, v_slow, and p_slow never get allocated, so the model crashes when it goes to write the restart file.
We should probably have a check that DIAGNOSTICS is defined if one decides to set diag_pflx=.true.
(I imagine this error may also occur if other variables like diag_uv, diag_trc, etc. are true but DIAGNOSTICS is undefined)
I debugged a crash today that occurred because we had
diag_pflx=.true.
but also had set#undef DIAGNOSTICS
In this case the arrays for u_slow, v_slow, and p_slow never get allocated, so the model crashes when it goes to write the restart file.
We should probably have a check that DIAGNOSTICS is defined if one decides to set diag_pflx=.true.
(I imagine this error may also occur if other variables like diag_uv, diag_trc, etc. are true but DIAGNOSTICS is undefined)