1 | usage of SETTE package: |
---|
2 | |
---|
3 | principal script is sette.sh (usage: ./sette.sh) |
---|
4 | |
---|
5 | VERY IMPORTANT : for a verbose debug do: |
---|
6 | ./sette.sh 2>&1 | tee out.sette |
---|
7 | this create out.sette file in ${SETTE_DIR} |
---|
8 | |
---|
9 | USER MODIFICATIONS |
---|
10 | in sette.sh script : |
---|
11 | COMPILER : compiler among those available in NEMOGCM/ARCH, needed for makenemo (see below) |
---|
12 | can also be pass as an argument, e.g. ./sette.sh ifort_osx |
---|
13 | BATCH_COMMAND : command for job submission in batch mode |
---|
14 | MPI_INTERACT : "yes" if you want to run in interactive mode for MPI run |
---|
15 | "no" if you want to run in batch mode for MPI run |
---|
16 | NOTE : every job using only 1 proc is run in interactive mode |
---|
17 | |
---|
18 | makenemo -m : machine (compilator); see ./makenemo -m help (in NEMOGCM/CONFIG directory) |
---|
19 | -n : config name (in examples config_name_nproci_nprocj), see ./makenemo -n help |
---|
20 | -r : reference configuration (if you don't give it you have to choise directories to install) |
---|
21 | add_key : to add list of keys (for example to test reproductibility: add_key mpp_rep) |
---|
22 | del_key : to del list of keys |
---|
23 | and for more details and options of makenemo see ./makenemo -h |
---|
24 | |
---|
25 | set_namelist : to set namelist values |
---|
26 | (example : to set 75 time steps for one test : namelist nn_itend 75) |
---|
27 | ( : to change cn_icerst_in name : namelist_ice cn_icerst_in \"test_00101231_restart_icemod\") |
---|
28 | ( : to activate control print : namelist ln_ctl false ) |
---|
29 | prepare_exe_dir.sh creates execution directory for each test |
---|
30 | : NOTE for EACH JOB EXECUTION it is needed to set TEST_NAME variable |
---|
31 | TEST_NAME variable gives name to execution directory (created in prepare_exe_dir.sh) |
---|
32 | IT is mandatory to have different TEST_NAME for each job run if not existing files are re-written (for example namelist) |
---|
33 | |
---|
34 | fcm_job.sh needs input: input_CONFIG_NAME TOTAL_NUMBER_OF_PROCS_used TEST_NAME |
---|
35 | (for example if you compile ORCA2_LIM with key_mpp_mpi |
---|
36 | and only run short test ===> ./fcm_job input_ORCA2_LIM.cfg 4 SHORT) |
---|
37 | |
---|
38 | in param.cfg : |
---|
39 | FORCING_DIR : directory in which will be found input.tar file (same name in input_CONFIG_NAME.cfg) |
---|
40 | INPUT_DIR : directory in which store input files (tar file) |
---|
41 | TMPDIR : temporary directory NEEDED ONLY FOR IBM machines (put EXP00 directory) |
---|
42 | NEMO_VALIDATION_DIR : directory in which create NEMO_VALIDATION tree, and store restart, solver.stat, tracer.stat and ocean.output files in |
---|
43 | tree NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) |
---|
44 | in fcm_job.sh : |
---|
45 | IMPORTANT : control that name of tar file in FORCING directory |
---|
46 | is the same of that in input_REF_CONFIG.cfg, if not change one. |
---|
47 | |
---|
48 | change in "RUN OPA" if [ ${MPI_INTERACT} == "yes" ] mpirun command line (some examples are already written) |
---|
49 | NOTE: if MPI_INTERACT="no" it is neede a batch_file (see below to create a new one) |
---|
50 | |
---|
51 | NOTE: |
---|
52 | in case of error you can remove you NEW_CONF directory and all files doing : |
---|
53 | ./makenemo -n MY_CONFIG clean_config |
---|
54 | |
---|
55 | if you want recompile nemo but before you want to clean compiled code do : |
---|
56 | ./makenemo clean |
---|
57 | |
---|
58 | and if you have already compiled you can re-run all sette.sh and compilation part will be by-passed. |
---|
59 | |
---|
60 | NOTE 2: |
---|
61 | if you want a completly verbose makenemo you can uncomment "set -x" in makenemo script |
---|
62 | and then launch ./sette.sh 2>&1 | tee out.sette |
---|
63 | |
---|
64 | TO ADD NEW CONFIGURATION: |
---|
65 | 1. makenemo -n NEW_CONFIG (see makenemo -h for help) OR |
---|
66 | 2. makenemo -n NEW_CONFIG -r REF_CONFIG (if it is based on another reference configuration) |
---|
67 | 3. for fcm_job.sh creates a new input_NEW_CONFIG.cfg if you need tar file (if you use same tar file of GYRE, ORCA2_LIM or ORCA2_LIM_PISCES you can use it) |
---|
68 | |
---|
69 | TO ADD NEW MACHINE: |
---|
70 | 1. add arch-compiler.fcm in NEMOGCM/ARCH directory |
---|
71 | 2. makenemo -m new_compiler (see makenemo -h for help) |
---|
72 | |
---|
73 | TO ADD NEW BATCH-FILE: |
---|
74 | 1. see in SETTE/BATCH_TEMPLATE directory existing examples |
---|
75 | 2. create you own batch file like: batch-${COMPILER} |
---|
76 | (note: sette.sh will copy it in job_batch_template if you run tests in MPI_INTERACT="no") |
---|