ESCOMP / MOSART

Model for Scale Adaptive River Transport, Mosart, part of the Community Earth System Model
http://www.cesm.ucar.edu/
Other
8 stars 27 forks source link

Single-precision history output does NOT work (rtmhist_ndens) #18

Open ekluzek opened 5 years ago

ekluzek commented 5 years ago

The single-precision output namelist option is NOT functional. Output is always double precision even when rtmhist_ndens==2. This problem goes back to the code inception because this option wasn't implemented.

ekluzek commented 5 years ago

A fix for this came in with release-cesm2.0.01. It converts to single-precision when history output is being written.

ekluzek commented 5 years ago

Reopening this issue as the fix isn't extensive enough. We've seen cases where numeric conversion issues kill simulations when there is some problem with the data values (when history is written). Also since you only detect the issue when history is written rather than by internal conversion to the history buffers, you don't detect issues right away. Thus we plan to fix this with single-precision history buffers, similarly on how it's done in CTSM.