Running SCAMtest
The scamtest scripts do a bit for bit (BFB) verification of the SCAM run. They are useful if you are running and getting unexpected results. qdif and tdif are difference from ops in the scamtest BFB comparison.
SCAM can be run from the Derecho supercomputer at NCAR. If you haven’t already, login to derecho and clone the repo
Login to Derecho, identify project/accounts you have access to, create a scratch directory. This and other useful SCAM information can be found on the SCAM Configuration page.
You will run two files (after making the changes below):
- First run create_scamtest.F2000.ne3_ne3_mg37.005.new.cold_off.derecho
- Then run create_scamtest.F2000.ne3_ne3_mg37.005.scm.new.cold_off.derecho
Edit the .derecho files
Edit the two SCAM .derecho files. Add your project to the create_newcase line
$CESMDIR/cime/scripts/create_newcase -compset $COMPSET –project Pxxxxxxxx -res $RES -compiler $COMPILER -case $CASEDIR/$CASENAME -pecount ${PES} –run-unsupported
Change the CASEDIR to point to your scratch scam dir.
set CASEDIR=/glade/derecho/scratch/
/scam
Modify the scripts to point to the CESM collection directory
These collections are currently stored under John Truesdale’s campaign dir so we are using that. Edit the SCAM .derecho scripts to set this directory.
Note: Need to move these to a more generic location
set CESMDIR=/glade/campaign/cgd/amp/jet/collections/$CAMDIRNAME
Run the first file
Note: Need to describe what this file does here.
> ./create_scamtest.F2000.ne3_ne3_mg37.005.new.cold_off.derecho
Wait for the run to complete. Instructions for checking on its progress are near the bottom of the SCAM Tips page.
Run the second file
Note: Need to describe what this file does here.
Once the first run completes, copy the created netCDF file from the scratch scam run dir to just under scratch/
> cp /glade/derecho/scratch/<YOUR_USERNAME>/scam/scamtest.F2000.ne3_ne3_mg37.005.new.cold_off/run/scamtest.F2000.ne3_ne3_mg37.005.new.cold_off.cam.h1i.0001-01-01-00000.nc /glade/derecho/scratch/<YOUR_USERNAME>/.
Edit the iopfile dir in create_scamtest.F2000.ne3_ne3_mg37.005.scm.new.cold_off.derecho to point to the shortened location.
iopfile ='/glade/derecho/scratch/<YOUR_USERNAME>/scamtest.F2000.ne3_ne3_mg37.005.new.cold_off.cam.h1i.0001-01-01-00000.nc'
Run the file
> ./create_scamtest.F2000.ne3_ne3_mg37.005.scm.new.cold_off.derecho