GEOS-ESM / GEOSgcm_GridComp

Repository containing the physics and IAU code for the GEOS Earth System Model
Apache License 2.0
9 stars 7 forks source link

Fixed uninitialized tep and qp when wstar <= 0.001 #931

Closed atrayano closed 3 weeks ago

atrayano commented 1 month ago

When wstar <= 0.001, tep and qp were left uninitialized inside mpbl_depth. These two variables are used later. When the code is build debug, this resulted in NaNs being sent to dqsat. @wmputman and @narnold1 , could you please check if my choice if initialization makes sense...

This PR fixes #930, and quite possibly the issue inside MAPL_LocStream as reported multiple times by @dbarahon