ESCOMP / CAM-SIMA

Community Atmosphere Model - System for Integrated Modeling of the Atmosphere
3 stars 12 forks source link

Unset ncdata namelist variable causes crash #198

Open gold2718 opened 1 year ago

gold2718 commented 1 year ago

Currently, if ncdata = UNSET_PATH, the model crashes without a helpful message. While it would be great to catch this before a job is submitted (do we always need an ncdata file?), at runtime, this should be caught by calling cam_get_file with the proper arguments to return a failure code so cam_initfiles_open can call endrun with a helpful message.