Create Clone (Advanced)#
The tool that clones a new case based on an existing case is create_clone. This tool is located in the $SRCROOT directory under the cime/scripts directory.
Things that are copied into the new case are:
Most
env_*.xmlsettings (not all!)user_nl_xxxfilesMacros
SourceModsBatch system files
README.case
Things that are not copied into the new case are:
Logs
Timing files
Command Syntax#
Go to the cime/scripts directory in the CESM code
cd /glade/u/home/$USER/code/my_cesm_code/cime/scripts/
Example of basic ./create_clone syntax to create CASE2:
./create_clone --clone /glade/u/home/$USER/cases/CASE1 --case /glade/u/home/$USER/cases/CASE2
Notes:
Do not use
cporcp -Rto copy case directories to new experiments.Document changes in
CaseStatusandREADME.caseto keep track of the changes you make.If you are making many cases with only small changes, you can write the commands into a Python or shell script of your choice to make the process more automated, reproducible, and less prone to human error.