CESR-lab / ucla-roms

GNU General Public License v3.0
5 stars 11 forks source link

no check that DIAGNOSTICS is defined if diag_pflx=.true. #44

Open sdbachman opened 1 month ago

sdbachman commented 1 month ago

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)