Instructions to run CCSM3.5 on Ranger
Step 1)
mkdir $WORK/ccsmruns
cd /work/00964/cbitz/ccsm3_5_beta20/scripts
**********************
if doing the rampco2 run:
./create_newcase -case $WORK/ccsmruns/rampco2 -mach ranger -res 1.9x2.5_gx1v5 -compset B_1870_CONTROL -skip_rundb TRUE
cd $WORK/ccsmruns/rampco2
cp /work/00964/cbitz/ccsmruns/rampco2/SourceMods/src.cam/* SourceMods/src.cam
(These files add the information to ramp co2 in the cam namelist. Normally this is an option you can set in the env_conf file, but it is not yet working in CCSM3.5, so do not worry that env_conf will have a variable RAMP_CO2 set to false. We are by-passing it. Actually this did nothing so had to make up for it later in step 5)
**********************
if doing the rampsun run:
./create_newcase -case $WORK/ccsmruns/rampsun -mach ranger -res 1.9x2.5_gx1v5 -compset B_1870_CONTROL -skip_rundb TRUE
cd $WORK/ccsmruns/rampsun
cp /work/00964/cbitz/ccsmruns/rampsun/SourceMods/src.cam/* SourceMods/src.cam
(these files add the information to ramp the sun in the cam namelist and to print the solar constant
to the atm log file. Normally this is an option you can set in the env_conf file, but it is not yet working in CCSM3.5. Actually this did nothing so have to make up for in in step 5)
********************
Now for any run but substitute rampco2 with ramprun or control1870 as needed:
Step 2) Edit env_conf to do a branch from b35.010 and set the start yrs right carefully follow
/work/00964/cbitz/ccsmruns/control1870ll/env_conf so you have
setenv RUN_TYPE branch # startup | hybrid | branch
setenv RUN_STARTDATE 0123-01-01 # yyyy-mm-dd
setenv RUN_REFCASE b35.010 # for hybrid or branch runs, ref case unlimited
setenv RUN_REFDATE 0123-01-01 # yyyy-mm-dd of run_refcase
Step 3) Put the restarts in the location the model the model is expecting them
mkdir $WORK/ccsmruns/archive
mkdir $WORK/ccsmruns/archive/rampco2
mkdir $WORK/ccsmruns/archive/rampco2/restart
cd $WORK/ccsmruns/archive/rampco2/restart
tar xvf /work/00964/cbitz/ccsmruns/archive/b35.010.ccsm.r.0123-01-01-00000.070918-131859.tar
Step 4) Configure the code and scripts
cd $WORK/ccsmruns/rampco2
./configure -mach ranger
ignore complaints about longterm archiving and project numbers.
Step 5) Change the advection scheme from the default to lax-wendrauff
cp /work/00964/cbitz/ccsmruns/control1870ll/SourceMods/src.pop2/pop* SourceMods/src.pop2
Now modify the script that makes the cam namelist so it will rampco2
cp /work/00964/cbitz/ccsmruns/rampco2/SourceMods/src.cam/cam.buildnml_prestage.csh Buildnml_Prestage
OR the sun
cp /work/00964/cbitz/ccsmruns/rampsun/SourceMods/src.cam/cam.buildnml_prestage.csh Buildnml_Prestage
Step 6) Build the code and wait ~10-20 min
./rampco2.ranger.build
Step 7) Only when done with build, edit env_run and be sure you have
setenv SETBLD FALSE # AUTO, TRUE, FALSE
setenv STOP_OPTION nmonths # calendar_alarm; ndays,nmonths,daily,
setenv STOP_N 12 # integer, negative value == off
setenv REST_N 12 # integer
Step 8) Edit rampco2.ranger.run to allow the job to run in the queue for 4 hours
Step 9) For some dumb reason, CAM looks for one file in the wrong place
so bypass it by copying into the atm dir via
cp /work/00964/cbitz/ccsmruns/control1870/atm/mozart* $WORK/ccsmruns/rampco2/atm
Step 10) do nothing here
Step 11) Run it!
qsub rampco2.ranger.run
While running output will accumulate in the component subdirectories.
I like to look at the log files (e.g., atm/atm.log.*) when the first few days roll out.
When the model run is done the run script will move most of the output
to the archive directory that you made ($WORK/ccsmruns/archive/rampco2).
Send CC and email so she can check the output but be sure to first:
chmod -R 750 $WORK
Step 12) Once you get the okay from CC, increase the run time to 60 months with
Edit env_run and be sure you have!!!
setenv RESUBMIT 1 # if RESUBMIT is > 0, then will resubmit
setenv CONTINUE_RUN TRUE # TRUE, FALSE
setenv STOP_N 60 # integer, negative value == off
Edit rampco2.ranger.run to allow the jobs runs to go for 20 hours and submit
qsub rampco2.ranger.run
After 1.5-2 days or so you should have 11 yrs total finished and we will run
the cam diagnostics to check everything. Just let CC know when you have
11 yrs ready. And also once again
chmod -R 750 $WORK
--
TWikiGuest - 05 May 2008