New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
README in branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE – NEMO

source: branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE/README @ 3011

Last change on this file since 3011 was 2890, checked in by flavoni, 13 years ago

update SETTE

File size: 4.2 KB
Line 
1usage of SETTE package:
2
3principal script is sette.sh (usage: ./sette.sh)
4
5VERY IMPORTANT : for a verbose debug do:
6./sette.sh 2>&1 | tee out.sette
7this create out.sette file in ${SETTE_DIR}
8
9USER 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 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
51NOTE:
52in case of error you can remove you NEW_CONF directory and all files doing :
53./makenemo -n MY_CONFIG clean_config
54
55if you want recompile nemo but before you want to clean compiled code do :
56./makenemo clean
57
58and if you have already compiled you can re-run all sette.sh and compilation part will be by-passed.
59
60NOTE 2:
61if you want a completly verbose makenemo you can uncomment "set -x" in makenemo script
62and then launch ./sette.sh 2>&1 | tee out.sette
63
64TO ADD NEW CONFIGURATION:
651. makenemo -n NEW_CONFIG (see makenemo -h for help) OR
662. makenemo -n NEW_CONFIG -r REF_CONFIG (if it is based on another reference configuration)
673. 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
69TO ADD NEW MACHINE:
701. add arch-compiler.fcm in NEMOGCM/ARCH directory
712. makenemo -m new_compiler  (see makenemo -h for help)
72
73TO ADD NEW BATCH-FILE:
741. see in SETTE/BATCH_TEMPLATE directory existing examples
752. 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")
Note: See TracBrowser for help on using the repository browser.