Assertion"longwave>0" failed

12 views
Skip to first unread message

suraj shrestha

unread,
Sep 23, 2025, 2:15:56 PMSep 23
to Amanzi-ATS Users
Dear all, 
I am running an ATS simulation (ATS version: 1.6.0), and it crashed during the initialization stage with the error showing "terminate called after throwing an instance of 'DBC::Assertion'
  what():  Assertion: "longwave > 0." failed in file: /root/ATS/ats-1.6/repos/amanzi/src/physics/ats/src/pks/surface_balance/constitutive_relations/land_cover/seb_physics_funcs.cc, at line: 73"
I have checked my input files and i am providing radiation data 9 ['air temperature [K]', 'incoming longwave radiation [W m^-2]', 'incoming shortwave radiation [W m^-2]', 'precipitation rain [m s^-1]', 'precipitation snow [m SWE s^-1]', 'precipitation total [m s^-1]', 'time [s]', 'vapor pressure air [Pa]', 'wind speed [m s^-1]', 'x [m]', 'y [m]'] ), but i am not sure why the "longwave" value would be zero or negative.
 Any guidance would be appreciated.
suraj

Bo Gao

unread,
Sep 23, 2025, 11:05:42 PMSep 23
to suraj shrestha, Amanzi-ATS Users
Hi Suraj,

If you provided longwave data instead of letting ATS calculate it internally, then this error mostly tells that the model picked up NaN from your longwave data. Probably you have NaN in your longwave. For example, if you used single point forcings, the longwave may include NaN. If you used distributed forcings, your surface domain may be larger than the forcings or almost the same with the forcings, and you set the forcings outside of the domain area as NaN, then it may also result in this issue (e.g., when it is close to the boundaries). Possibly there are also other reasons, but you can first check this.

Best,
Bo Gao

--
You received this message because you are subscribed to the Google Groups "Amanzi-ATS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ats-users/CAEzLTNG1XaTvfCkzRUikneq%2Bmhzsw%2B24htBvAbpn_mNpdAe3ig%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages