ESCOMP / CISM-wrapper

Community Ice Sheet Model wrapper for CESM
http://www.cesm.ucar.edu/models/cesm2.0/land-ice/
Other
3 stars 16 forks source link

Convert buildlib and buildnml to python #49

Closed billsacks closed 3 years ago

billsacks commented 3 years ago

Convert CISM's buildlib and buildnml/build-namelist from perl to python. @mvertens did a lot of this work a few years ago. I started with her work then made numerous updates to reconcile her four-year-old branch with changes that have been made within CISM and CIME.

@Katetc I am opening this PR in case you'd like to look through it before I merge it. I still have some work to do – cleanup, adding some error checks, etc. I hope to have this done, or at least close to done, by the end of the week. But this is already close to what the final version will look like. In particular, note that (for the most part) new namelist variables now only need to be set in one place: cime_config/namelist_definition_cism.xml (instead of the three previous places: bld/build-namelist, bld/namelist_files/namelist_definition_cism.xml and bld/namelist_files/namelist_defaults_cism.xml). As we've discussed before: feel free to continue bringing in the updates to the latest cism development code if you want; I think it will be pretty quick for me to move your changes to the xml files into the new version, unless they are very extensive.