1: Control case#
Exercise#
If needed, revisit the Download CESM section and download CESM (tag cesm3.0_Tutorial2026) before executing the following steps.
Create, build, and run a JRA-forced MOM6 control case
Create a case called g.GW_JRA.TL319_t233_wg37.001 using the compset GW_JRA at TL319_t233_wg37 resolution.
G means this is a G case
W means it is coupled to the wave model (Wave Watch 3)
JRA is the atmospheric forcing data
TL319 specifies the atmospheric resolution
t233 specifies the ocean model resolution (2/3 degree)
wg37 specifies the wave model resolution (3 degree)
Set the run length to 1 year.
Build and run the model. Since this is a control case, we want to build it “out of the box” without any modifications.
Click here for hints
How do I create the case?
First, you need to decide where to put your case root, and this should be different from where you store your source code, e.g.:
/glade/u/home/$USER/cases
How do I compile?
You can compile with the command:
qcmd -- ./case.build
How do I check my solution?
When your run is completed, go to the archive directory.
(1) Check that your archive directory contains files mom6.h.z, mom6.h.sfc, etc
(2) Compare the contents of the h.z and h.sfc files using ncdump.
ncdump -h g.GW_JRA.TL319_t233_wg37.001.mom6.h.z.0005-12.nc
ncdump -h g.GW_JRA.TL319_t233_wg37.001.mom6.h.sfc.0005-12.nc
(3) Look at the sizes of the files.
Click here for the solution
Create a new case g.GW_JRA.TL319_t233_wg37.001 with the command:
cd /glade/u/home/$USER/code/my_cesm_code/cime/scripts/
./create_newcase --case /glade/u/home/$USER/cases/g.GW_JRA.TL319_t233_wg37.001 --compset GW_JRA --res TL319_t233_wg37 --run-unsupported
Case setup:
cd /glade/u/home/$USER/cases/g.GW_JRA.TL319_t233_wg37.001
./case.setup
Change the run length:
./xmlchange STOP_N=1,STOP_OPTION=nyears
If needed, change job queue and account number. For instance:
./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0016 --force
Build and submit:
qcmd -- ./case.build
./case.submit
When the run is completed, look into the archive directory for: g.GW_JRA.TL319_t233_wg37.001.
cd /glade/derecho/scratch/$USER/archive/g.GW_JRA.TL319_t233_wg37.001/ocn/hist
ls