geoschem / CAM

Community Atmosphere Model
Other
0 stars 0 forks source link

Exit with warning in build-namelist if HEMCO config files are specified in user namelist #30

Closed jimmielin closed 7 months ago

jimmielin commented 8 months ago

Current behavior in build-namelist enforces use of config files in case directory which are copied to run directory at submit time.

User customization to user_nl_cam for the path of HEMCO config files will not take effect when running with GEOS-Chem chemistry, instead the user should edit or symlink from the files in the case directory similar to standalone GEOS-Chem operation.

This commit adds a check in build-namelist for this customization and aborts with error to warn user that this is unsupported.

Thanks! Haipeng

jimmielin commented 8 months ago

Looks like I can't print from build-namelist without triggering an error. I think exiting with error is the better option instead of a silent drop, so the user explicitly removes the changed values from user_nl_cam and performs the suggested action, so thats what I implemented.

lizziel commented 7 months ago

All set to merge. Thanks!