Open nancycollins opened 7 months ago
moved this branch to https://github.com/hkershaw-brown/DART/tree/ncep_errors
note this branch has airs_obs_mod.f90 changes unrelated to this issue
lines of code where log of zero occurs:https://github.com/NCAR/DART/blob/99ebec56a6efdd243ed026da24b29a1a45bb8cdd/observations/obs_converters/obs_error/ncep_obs_err_mod.f90#L549-L558
:bug: the ncep error module crashes for obs at pressures < 1 mb if debug flags on
Describe the bug
Error Message
it crashes when taking the log of 0 if debugging flags are on. it silently computes log(0) == 0 with the optimized flags which is why this probably hasn't been caught before. that happens to return a valid value, so this hasn't been a numerical problem. but if you turn on debugging flags to debug something else, you crash here instead.
Version of DART
the bug is on the main branch (and all others)
Have you modified the DART code?
Yes, the fixes are on the ncep_errors branch