Extending your run#

Exercise: Run the same case, but for longer

The default value for a new case run length is 5 days. The run length is set by the XML variables STOP_OPTION and STOP_N. As the 5 days is too short to produce a monthly history file we will change these to run for a single month. In the next section you will learn more about xml files, but for now we will just provide the commands.

From your CASE directory, extend the run b.day1.0 with the command:

./xmlchange STOP_OPTION=nmonths
./xmlchange STOP_N=1

After you have changed these variables, submit the job again and check its status.

Click here for hints

Submit:

./case.submit

Check the Status:

qstat -u $USER

List the contents of the Run directory

ls -lt /glade/scratch/$USER/b.day1.0/run
Click here for the solution

Go to your b.day1.0 case directory:

cd /glade/work/$USER/cases/b.day1.0

Changing xml files:

./xmlchange STOP_OPTION=nmonths
./xmlchange STOP_N=1

Do not make any other changes since we are running an out-of-the-box simulation.

Submit:

./case.submit

Check the job status:

./qstat -u $USER

When the run is completed, look into the archive directory for: b.day1.0.

Check that your archive directory on cheyenne (The path will be different on other machines):

cd /glade/scratch/$USER/archive/b.day1.0
ls 

Test your understanding#

  • Did your run complete successfully?

  • What sorts of files did you get as output and how are these different from before?