1: Control case#
NOTE: Building the control case for the CICE challenge exercises is idential to building the control case in the MOM6 challenge exercises. If you have already completed the MOM6 challenge exercises you can skip this step.
Create a case called g_control using the compset G_JRA_RYF at TL319_t233 resolution.
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 compile?
You can compile with the command:
qcmd -- ./case.build
How do I control the output?
Use namelist variables: histfreq, histfreq_n, and f_var.
histfreq = 'm','d','x','x','x'
histfreq_n = 1,1,1,1,1
f_aice = 'mdxxx'
f_hi = 'mdxxx'
How do I check my solution?
When your run is completed, go to the archive directory.
(1) Check that your archive directory contains the files:
hfiles
g_control.cice.h.0001-01.nc
h1files
g_control.cice.h1.0001-01-01.nc
g_control.cice.h1.0001-01-02.nc
(2) Compare the contents of the h and h1 files using ncdump.
ncdump -h g_control.cice.h.0001-01.nc
ncdump -h g_control.cice.h1.0001-01-01.nc
Look at the sizes of the files.
ls -l g_control.cice.h.0001-01.nc
ls -l g_control.cice.h1.0001*.nc
Click here for the solution
Create a new case g_control with the command:
cd /glade/u/home/$USER/code/my_cesm_code/cime/scripts/
./create_newcase --case /glade/u/home/$USER/cases/g_control --compset G_JRA_RYF --res TL319_t233
Case setup:
cd ~/cases/g_control
./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=UESM0015 --force
``
<br>
Build and submit:
qcmd – ./case.build ./case.submit
<br>
When the run is completed, look into the archive directory for:
<font face="Courier" color='purple'><strong>g_control</strong></font>.
(1) Check that your archive directory on derecho (The path will be different on other machines):
cd /glade/derecho/scratch/$USER/archive/g_control/ice/hist
ls
<br>
(2) Compare the contents of the `h` and `h1` files using `ncdump`.
(3) Check the number of timesteps / files for the `h` and the `h1` files.
- `h1` has 31 time samples / files.
- Check the size of the files
du –ks –h /glade/derecho/scratch/$USER/archive/g_control/ice/hist/*
</details>
</div>