Seperate cesm preview namelists out#395
Conversation
| CESM_CUPID=${SRCROOT}/tools/CUPiD | ||
| CUPID_ROOT=`./xmlquery --value CUPID_ROOT` | ||
| CUPID_EXAMPLE=`./xmlquery --value CUPID_EXAMPLE` | ||
| CUPID_GEN_TIMESERIES=`./xmlquery --value CUPID_GEN_TIMESERIES` |
There was a problem hiding this comment.
@mnlevy1981 points out that we should have a shared script used by both, that does these initial steps here, something about cesm_import_xml_vars.sh.
With it being executed something like...
. ./cesm_import_xml_vars.shIt could also be made into a subroutine and exercised that way.
| mkdir -p cupid-postprocessing | ||
| cd cupid-postprocessing | ||
|
|
||
| # If CUPID_RUN_ALL is TRUE, we don't add any component flags. |
There was a problem hiding this comment.
It looks like this section doesn't need to be here.
| @@ -0,0 +1,185 @@ | |||
| #!/bin/bash -e | |||
There was a problem hiding this comment.
In talking with @mnlevy1981 we thought the name should be something like:
cesm_generate_cupid_config_files.sh
| # and then update this to python as well (and take a CIME Case object as | ||
| # an argument) | ||
| set -x | ||
|
|
There was a problem hiding this comment.
The problem I was seeing with this for the conda environment, might be explained by adding a
. ./env_mach_specific.sh
call here to make sure the environment is setup as it's needed to be for the CESM case. This is something that's done in the case.cupid script in the CASEROOT.
Description of changes:
This is preliminary work on moving the cesm postprocessing script into a preview_namelists section and a runtime section.
This is work on #371
Also add #399 here as well
All PRs Checklist:
pre-commitchecks passed (#8 in Adding Notebooks Guide)?