Running Coupled Ocean

Revision as of 11:27, 24 December 2012 by Pchakrab (talk | contribs) (Created page with "== Steps to run AOGCM == 1. Checkout As of this writing the stable tag is 'yuri-coupled-Fortuna-2_5_obio' and module is 'Fortuna'. Check with Yury Vikhliaev for the latest sta...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Steps to run AOGCM

1. Checkout

As of this writing the stable tag is 'yuri-coupled-Fortuna-2_5_obio' and module is 'Fortuna'. Check with Yury Vikhliaev for the latest stable tag and module.

  $ cvs co -r yuri-coupled-Fortuna-2_5_obio Fortuna


2. Compile

  $ cd GEOSagcm/src
  $ source g5_modules

Compile time specification of resolution/layout

The seaice component has the resolution and layout specified in the GNUmakefile in:

src/GEOSgcs_GridComp/GEOSgcm_GridComp/GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/GEOSCICEThermo_GridComp/cice/GNUmakefile

Inside this are lines like:

  NXGLOB = 360
  NYGLOB = 200
  BLCKX = 45
  BLCKY = 20   
  MXBLCKS = 1

where (NXGLOB, NYGLOB) define the ocean resolution. It is the user's responsibility to ensure that BLCKX (BLCKY) is a divisor of NXGLOB (NYGLOB) and the quotient defines the number of processors OGCM_NX (OGCM_NY) in the X (Y) direction, i.e.

  OGCM_NX = NXGLOB/BLCKX (= 8  in our example)
  OGCM_NY = NYGLOB/BLCKY (= 10 in our example)

[I had tried with NXGLOB = 360, BLCKX = 40 => OGCM_NX = 9. It didn't work. Apparently, odd numbered processes don't.]

Since the resolution/layout are specified at compile time (really!), the model needs to be compiled for a new resolution/layout combination.

Finally, compile:

  $ make install


3. Setup experiment

  $ cd Applications/GEOSgcm_App

Set correct values of OGCM_NX and OGCM_NY in gcm_setup (if they are not already set):

  set OGCM_NX = 8
  set OGCM_NY = 10 
  

Then run gcm_setup:

  $ ./gcm_setup
       Experiment ID:
       Experiement Description:
       Atmospheric Horizontal Resolution: 144 91
       Atmospheric Vertical Resolution: Default
       COUPLED Ocean/Sea-Ice Model: YES
       Ocean Lat/Lon Horizontal Resolution: Default
       Ocean Model Vertical Resolution: Default
       GOCART: Default
       HISTORY template: HISTORY_COUPLED.rc.tmpl
       HOME directory:
       EXPERIMENT directory: 
       BUILD directory:
       GROUP ID:
  $ mv /path/to/exp/dir

Need to do the following:

In AGCM.rc:

  OGCM_NX = NX = 8, OGCM_NY = NY = 10, CICE_NPROCS = 80

In input.nml:

  layout = 8,10,

In gcm_run.j:

  #PBS -l select=7:ncpus=12:mpiprocs=12

(need 80 cpus, hence 7 nodes)

In HISTORY.rc: comment out the line

  'RUNOFF'    , 'SURFACE'       ,

in geosgcm_surf.fields (model crashes with this option).

Edit CAP.rc and gcm_run.j (to run a 1-day simulation).

Copy restarts (example restarts can be found in ~yvikhlia/geos5/test180/expdir). Several new restarts are needed but these can be bootstrapped according to Yuri. The new ones are orad_import, seaice_import, and seaice_internal.

   $ cp ~yvikhlia/geos5/test180/expdir/*_rst .
   $ cp ~yvikhlia/geos5/test180/expdir/cap_restart .

NOTES

Also when the experiment directory is created a new directory is now there called RESTART. Inside are restart files, the only one of which is required is ocean_tempsalt. The rest can be bootstrapped.

IF BOOTSTRAPPING:

  something needs to be changed in input.nml

ELSE: (if NOT bootstrapping)

  $ cp ~yvikhlia/geos5/test180/expdir/RESTART/* RESTART/

Yury says: "You need ocean grid_spec, ice grid, KPAR data and river routing file. They are all in directory where $GRIDDIR points in the runscript." [$GRIDDIR points to /discover/nobackup/yvikhlia/coupled/Forcings/a${AGCM_IM}x${AGCM_JM}_o${OGCM_IM}x${OGCM_JM} in the run script.]