5. Run a restart case (beta)

5. Run a restart case (beta)
arbetter Fri, 11/06/2020 - 09:05

In this exercise, you will set up and build the baseline case in a new directory, run it for 24 hours, then restart it and run for another 24 hours.

Start by creating a new case.

cd $HOME/UFS_training/my_ufs_sandbox/cime/scripts
./create_newcase --case $UFS_SCRATCH/ufs-mrweather-app-workflow.c96_restart --compset GFSv15p2 --res C96 --workflow ufs-mrweather

Note that the directory in $UFS_SCRATCH has the _restart suffix.

Continue, analogous to steps 3-5 of Session 1.

cd $UFS_SCRATCH/ufs-mrweather-app-workflow.c96_restart
./case.setup
./case.build 

As before, it should take about 8 minutes to build the new case.  Once done, change a few variables:

Set runtime to 24 hours

./xmlchange STOP_OPTION=nhours
./xmlchange STOP_N=24

Reduce wallclock time from 12 hours to 30 minutes

./xmlchange JOB_WALLCLOCK_TIME=00:30:00 

Turn off short term archiving 

./xmlchange DOUT_S=FALSE 

For the Tutorial, there is a reserved queue:

./xmlchange --force JOB_QUEUE=S4857724

Run the model for 24 hours

./case.submit

As before, you can use qstat to monitor your job's progress

qstat -u $USER

If needed, you can kill your job:

qdel JobID

When your initial job has completed, change CONTINUE_RUN to True

./xmlchange CONTINUE_RUN=TRUE

And the case will run for another 24 hours.

./case.submit

After it finishes, check your results with NCL:

module load intel/18.0.5 ncl/6.6.2
cd $UFS_SCRATCH/ufs-mrweather-app-workflow.c96_restart/run
wget https://raw.githubusercontent.com/wiki/ufs-community/ufs-mrweather-app/files/plot_ufs_sfcf.ncl
ncl plot_ufs_sfcf.ncl

To visualize the resulting images in png, use the command:

display plot_ufs_phyf_tmp2m.png
display plot_ufs_phyf_tprcp.png

The sample plots are below. Click here to compare the restart run to the baseline run.

 

 

 

Compare restart run with baseline run

Compare restart run with baseline run
arbetter Fri, 11/06/2020 - 10:13

To generate a difference plot between the baseline and restart cases, download and run the NCL code

cd $UFS_SCRATCH
wget https://raw.githubusercontent.com/wiki/ufs-community/ufs-mrweather-app/files/plot_ufs_sfcf_diff.ncl
ncl plot_ufs_sfcf_diff.ncl 'c="ufs-mrweather-app-workflow.c96/run"' 't="ufs-mrweather-app-workflow.c96_restart/run"'

The difference plots for 2m air temperature are shown below: