1 | Overview |
---|
2 | ======== |
---|
3 | |
---|
4 | This directory contains : |
---|
5 | * .def files for DYNAMICO and LMDZ5 |
---|
6 | * .xml files for XIOS |
---|
7 | * scripts |
---|
8 | |
---|
9 | You 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 | |
---|
15 | The 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 | |
---|
25 | For 'CE0L' XIOS is run in 'attached' mode. In server mode, xios_server.exe would hang after the dynamico_lmdz.exe MPI processes have aborted. |
---|
26 | 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. |
---|
27 | |
---|
28 | Notice that the definitions of start.def have the highest priority since start.def is the last *.def file included in run.def . |
---|
29 | |
---|
30 | Procedure using prepare.sh |
---|
31 | ========================== |
---|
32 | |
---|
33 | 0 - First of create a small text file 'config.sh' defining a few environment variables |
---|
34 | ARCH : This will select appropriate machine-specific parts of the scripts, especially when generating the shell script to be submitted to the batch scheduler |
---|
35 | ESM_ROOT : the directory containing the ICOSA_LMDZ directory |
---|
36 | > export ARCH=X64_CURIE |
---|
37 | > export ESM_ROOT=$PWD/../.. |
---|
38 | |
---|
39 | 1 - 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. |
---|
40 | |
---|
41 | 2 - In order to create a run of type 'ce0l' : |
---|
42 | > ./prepare ce0l MYDIR0 STORE0 |
---|
43 | This 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 : |
---|
44 | ccc_msub job.sh . |
---|
45 | After successful completion, STORE0 contains all *.nc files produced by the run, especially limit.nc |
---|
46 | |
---|
47 | 3 - In order to create a one-year run of type 'first' |
---|
48 | > ./prepare first STORE0 MYDIR1 STORE1 |
---|
49 | This 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 |
---|
50 | |
---|
51 | 4 - In order to create a one-year run of type NEXT, type |
---|
52 | ./prepare first STORE0 STOREPREV MYDIR2 STORE2 |
---|
53 | This 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 . |
---|
54 | |
---|
55 | Procedure using example.sh |
---|
56 | ========================== |
---|
57 | The above procedure can be made more automatic using the script example.sh (itself calling prepare.sh). |
---|
58 | |
---|
59 | 0 - create a directory 'EXP' for your experiment where you wish, probably not in the source tree. |
---|
60 | |
---|
61 | 1 - Create a subdirectory 'EXP/storedir' or simlink 'storedir' to an empty directory elsewhere. This is where simulations will store their input/output files. |
---|
62 | |
---|
63 | 2 - cd to 'EXP', and run 'fullpath/example.sh init' where fullpath is the full path to the directory containing this README and example.sh |
---|
64 | |
---|
65 | 3 - optionnally, edit config.sh and/or *.xml or *.def files . |
---|
66 | |
---|
67 | 4 - 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 . |
---|
68 | |
---|
69 | 5 - on Curie, run './example.sh submit'. Otherwise, edit the scripts */jobs.sh and submit them manually to your batch scheduler. |
---|