source: dynamico_lmdz/aquaplanet/CMIP5a/RUN_AQUAPLANET_DYNAMICO_LMDZ5/README @ 4067

Last change on this file since 4067 was 4067, checked in by dubos, 7 years ago

CMIP5a scripts : create aquaplanet or betaclim experiment

File size: 3.9 KB
Line 
1Overview
2========
3
4This directory contains :
5* .def files for DYNAMICO and LMDZ5
6* .xml files for XIOS
7* scripts
8
9You can safely modify all *.def and *.xml or replace them with your own files, EXCEPT :
10* iodef.xml
11* icosa.xml
12* context_lmdz.xml
13* start.def
14
15The above files CAN NOT be used 'as is' because they contain keywords that must be replaced by acceptable values. This substitution is made by the scripts described below (see "Procedure"). The keywords are :
16    CE0L         : true if the simulation is a 'CE0L' run that creates the limit.nc file
17    FIRST        : true if the simulation is the first run in a series (after a 'CE0L' run)
18    NEXT         : true if the simulation is a restart of a run of type 'FIRST' or 'NEXT'
19    DOM_OUT      : dom_glo if CE0L, dom_regular otherwise
20    USING_SERVER : false if CE0L, true otherwise
21    ETAT0        : start_file if NEXT, held_suarez otherwise
22    IFLAG_PHYS   : 103 if CE0L, 1 otherwise
23    READ_START   : no if CE0L, yes otherwise
24    ANNEEREF     : ANNEEREF (see below)
25For 'CE0L' XIOS is run in 'attached' mode.  For 'START' and 'NEXT', XIOS is run in server mode for flexibility. Especially it allows to restart with a different number of processors, which is not possible in attached mode.
26
27Notice that the definitions of start.def have the highest priority since start.def is the last *.def file included in run.def .
28
29Procedure using prepare.sh
30==========================
31
320 - First of create a small text file 'config.sh' defining a few environment variables
33  ARCH : This will select appropriate machine-specific parts of the scripts, especially when generating the shell script to be submitted to the batch scheduler
34  ESM_ROOT : the directory containing the ICOSA_LMDZ directory
35> export ARCH=X64_CURIE
36> export ESM_ROOT=$PWD/../..
37
381 - Edit the .def and .xml files if you want settings that differ from the basis that is proposed here. DO NOT TOUCH the files mentioned above.
39
402 - In order to create a run of type 'ce0l' :
41> ./prepare ce0l MYDIR0 STORE0 ANNEEREF
42This will create STORE0 and MYDIR0 if necessary and populate MYDIR0 with .xml and .def files, as well as a batch job 'job.sh' to be submitted (on CURIE) as :
43ccc_msub job.sh .
44After successful completion, STORE0 contains all *.nc files produced by the run, especially limit.nc
45
463 - In order to create a one-year run of type 'first'
47> ./prepare first STORE0 MYDIR1 STORE1 ANNEEREF
48This will create STORE1 and MYDIR1 if necessary and populate MYDIR1 with .xml and .def files, as well as a batch job 'job.sh'. This batch job copies input files from STORE0. Submit MYDIR1/job.sh . After successful completion, STORE1 contains all *.nc files produced by the run, especially start.nc
49
504 - In order to create a one-year run of type NEXT, type
51./prepare first STORE0 STOREPREV MYDIR2 STORE2 ANNEEREF
52This will create STORE2 and MYDIR2 if necessary and populate MYDIR2 with .xml and .def files, as well as a batch job 'job.sh'. This batch job copies input files from STORE0 and STOREPREV. Submit MYDIR2/job.sh .
53
54Procedure using example.sh
55==========================
56The above procedure can be made more automatic using the script example.sh (itself calling prepare.sh).
57
580 - create a directory 'EXP' for your experiment where you wish, probably not in the source tree.
59
601 - Create a subdirectory 'EXP/storedir' or simlink 'storedir' to an empty directory elsewhere. This is where simulations will store their input/output files.
61
622 - cd to 'EXP', and run 'fullpath/example.sh init' where fullpath is the full path to the directory containing this README and example.sh
63
643 - optionnally, edit config.sh and/or *.xml or *.def files .
65
664 - run './example.sh create' . IMPORTANT : DO NOT RUN 'fullpath/example.sh create'. You should now see directories EXP/ce0l, EXP/storedir/ce0l,  EXP/yearXX and EXP/storedir/yearXX .
67
685 - on Curie, run './example.sh submit'. Otherwise, edit the scripts */jobs.sh and submit them manually to your batch scheduler.
Note: See TracBrowser for help on using the repository browser.