Exercise 1: Modify run length#
Exercise: Modify the env_run.xml file
Part I:
Create a new fully coupled case named “i1850_sp.length” from with compset
I1850Clm60SpCrujraand a resolution off19_f19_mt233.Increase the amount of standard output produced by the model for debugging.
Run for 6 months.
Submit the run.
Hint!
Which variable controls the amount of standard output for debugging? We can use partial query to find out:
./xmlquery -p DEBUG
Use
xmlchangeto modify theSTOP_NandSTOP_OPTIONvalues as needed.Make sure to update the walltime to match the run length.
Click here for the solution to Part I
From the SRCROOT (/glade/u/home/$USER/code/my_clm_code) directory, create your case:
cd /glade/u/home/$USER/code/my_clm_code/cime/scripts
./create_newcase --case /glade/u/home/$USER/cases/i1850_sp.length --res f19_f19_mt233 --compset I1850Clm60SpCrujra --run-unsupported
In your case directory, change debugging levels and set runtime variables:
cd /glade/u/home/$USER/cases/i1850_sp.length
./xmlchange PIO_DEBUG_LEVEL=2,STOP_N=6,STOP_OPTION=nmonths
./xmlchange --subgroup case.run JOB_WALLCLOCK_TIME=2:00:00
./xmlchange JOB_QUEUE=tutorial --force
Check CaseStatus, you’ll see that the changes were automatically documented.
Carry on to setup, build and submit the run:
./case.setup
qcmd -- ./case.build
./case.submit
Remember that qcmd is used on Derecho only.
Exercise: Modify the env_run.xml file
Part II: Do part II only after Part I has finished running.
Change the debug level back to 1.
Expand Part I to produce a total of 1 year of model run. Remember that you have already run for 6 months.
Hint!
How do you tell the model that this run continues from the previously finished run of 6 months?
Click here for the solution to Part II
To continue the run, set
CONTINUE_RUNtoTRUE
cd /glade/u/home/$USER/cases/i1850_sp.length
./xmlchange CONTINUE_RUN=TRUE
Keep
STOP_OPTIONas “nmonths” andSTOP_Nas “6”.Set
INFO_DBUGto 1
./xmlchange PIO_DEBUG_LEVEL=1
Submit (
./case.submit) from your i1850_sp.length case directory:
./case.submit