Running the GEOS-5 SBU Benchmark: Difference between revisions

Line 109: Line 109:
==Run the model==
==Run the model==


===Setting up an experiment===
To make sure all works, we will first try setting up a simple one-day experiment.
 
===Setting up a one-day experiment===


Go into the model application directory and do a couple of preliminary commands:
Go into the model application directory and do a couple of preliminary commands:
Line 117: Line 119:
  $ echo $NOBACKUP > ~/.EXPDIRroot
  $ echo $NOBACKUP > ~/.EXPDIRroot


These echos set up some defaults. While they both don't have to be in the same location, it's highly recommended they are. Also, make sure they are in a nobackup directory.
These echos set up some defaults. While they both don't have to be in the same location, it's highly recommended they are and the use of the script below assumes they are. Also, make sure they are in a nobackup directory.


Now you can run <tt>create_expt.py</tt>:
Now you can run <tt>create_expt.py</tt>:
Line 160: Line 162:
This is a script that attempts to ease setting up a GEOS-5 AGCM run. It has some "smarts" in that it will detect from an experiment ID some information, but you can be explicit (to the point you can specify impossible experiments too).
This is a script that attempts to ease setting up a GEOS-5 AGCM run. It has some "smarts" in that it will detect from an experiment ID some information, but you can be explicit (to the point you can specify impossible experiments too).


===Run a one-day test===
To actually create the experiment, run the script:


To run the job, first change to the experiment directory you specified in the above <code>gcm_setup</code>. Then, copy a set of restarts to model directory. Sample restarts are provided on Discover (at <code>/discover/nobackup/mathomp4/Restarts-G10</code>) and Pleiades (at <code>/nobackup/gmao_SIteam/ModelData/Restarts-G10/</code>).
  $ ~mathomp4/bin/create_expt.py test-1day-expt --horz c48
 
Horizontal resolution c48 passed in
Then, edit CAP.rc:
Using c48 horizontal resolution
Assuming default vertical resolution of 72
Using 72 vertical resolution
   
   
  JOB_SGMT should be 1 day (00000001 000000)
  Assuming default ocean resolution of o1
  NUM_SGMT should be 1
  Using o1 ocean resolution
 
and gcm_run.j by inserting "exit" after
 
$RUN_CMD $NPES ./GEOSgcm.x
set rc =  $status
echo      Status = $rc
 
A script that can automate these processes is:
 
#!/bin/bash
   
   
  sed -i'.orig' -e '/^JOB_SGMT:/ s/000000[0-9][0-9]/00000001/' \
  Using actual aerosols
              -e '/^NUM_SGMT:/ s/[0-9][0-9]*/1/' \
  Running gcm_setup...done.
              -e '/^MAPL_ENABLE_TIMERS:/ s/NO/YES/' CAP.rc
   
   
  sed -i'.orig' -e '/^echo      Sta/ a exit' \
  Experiment is located in directory: /discover/nobackup/mathomp4/test-1day-expt
              -e '/^#PBS -j oe/ a #PBS -m abe\n#PBS -M ''email@myserver.com''' \
              -e '/^  if(-e $EXPDIR\/$rst ) \/bin/ s/cp/ln -s/' gcm_run.j


Note: This script also sets up email notification as well as linking restarts to the scratch/ directory rather than copying (which is nice if running at high-res).
===Run a one-day test===
 
Compare to a "correct" run by using cmpscratch


a. If all success, runs are bit-identical
To run the job, the experiment
b. If not => "What is correct?"


[[Category:SI Team]]
[[Category:SI Team]]
[[Category:CVS]]
[[Category:CVS]]
[[Category:Running the Model]]
[[Category:Running the Model]]