ESCOMP / CTSM

Community Terrestrial Systems Model (includes the Community Land Model of CESM)
http://www.cesm.ucar.edu/models/cesm2.0/land/
Other
295 stars 298 forks source link

Add graceful error checking when you ask for vector output at a higher subgrid level than the variable #2580

Closed ekluzek closed 3 weeks ago

ekluzek commented 3 weeks ago

The model allows you ask for vector output at a higher subgrid level than the variable allows. It does weird things when this happens and the output is not useful.

An example of this is TLAKE which is available on the column level (so not on the patch level):

user_nl_clm:

hist_empty_htapes = .true.
hist_fincl1 = 'TLAKE'
hist_type1d_pertape = 'PFTS'

This not defined since you are asking for finer subgrid scale output than is available for the variable. It doesn't die with a graceful error it only does something wrong.

Some discussion on this was in #77 as for example here:

https://github.com/ESCOMP/CTSM/issues/77#issuecomment-406425793

ekluzek commented 3 weeks ago

Closing as a duplicate of #1913