[11161] | 1 | # Computer/user dependant variable needed to run sette |
---|
| 2 | # |
---|
| 3 | # REFERENCE run.stat tracer.stat you want to compare with |
---|
| 4 | # (if no change to the default, no check on result change will be done) |
---|
[12135] | 5 | NEMO_VALIDATION_REF=/path/to/reference/sette/results |
---|
| 6 | NEMO_REV_REF=0000 |
---|
[11161] | 7 | # |
---|
| 8 | # ------------------------------------------------------------------------------------------ |
---|
| 9 | # IMPORTANT: |
---|
[14981] | 10 | # variables (COMPILER, BATCH_CMD, BATCH_STAT, BATCH_NAME, FORCING_DIR, SVN_CMD) |
---|
[11161] | 11 | # can be exported from your shell startup files. |
---|
| 12 | # If it is the case, nothing to do |
---|
| 13 | # otherwise, you need to update the default initialisation |
---|
| 14 | # |
---|
[12135] | 15 | # ADVISE: setup the default value in your startup file if it doesn't fit your need for at least |
---|
| 16 | # SETTE_COMPILER, SETTE_BATCH_CMD, SETTE_BATCH_STAT, SETTE_BATCH_NAME, SETTE_FORCING_DIR, |
---|
[11161] | 17 | # |
---|
[12135] | 18 | # ------------------------------------------------------------------------------------------ |
---|
| 19 | # COMPILER setting |
---|
| 20 | # Compiler among those in NEMOGCM/ARCH |
---|
| 21 | COMPILER=${SETTE_COMPILER:-XXXXXXXX} |
---|
| 22 | # ------------------------------------------------------------------------------------------ |
---|
| 23 | # |
---|
[11161] | 24 | # BATCH command |
---|
| 25 | # command to submit a job |
---|
[12135] | 26 | BATCH_CMD=${SETTE_BATCH_CMD:-llsubmit} |
---|
[11161] | 27 | # command to check job status |
---|
[12135] | 28 | BATCH_STAT=${SETTE_BATCH_STAT:-llq} |
---|
[11161] | 29 | # generic sette job name (as it appears with $BATCH_STAT command) |
---|
| 30 | BATCH_NAME=${SETTE_BATCH_NAME:-sette} |
---|
| 31 | # ------------------------------------------------------------------------------------------ |
---|
| 32 | # |
---|
[12135] | 33 | # FILES STORING paths |
---|
[11161] | 34 | # forcing files storing |
---|
[12135] | 35 | FORCING_DIR=${SETTE_FORCING_DIR:-$WORKDIR/FORCING} |
---|
[11161] | 36 | # validation files storing |
---|
[12135] | 37 | NEMO_VALIDATION_DIR=${SETTE_NEMO_VALIDATION_DIR:-$MAIN_DIR}/NEMO_VALIDATION |
---|
[11161] | 38 | # input files storing (namelist, iodef ...) (DO NOT CHANGE) |
---|
[2354] | 39 | INPUT_DIR=${CONFIG_DIR}/${NEW_CONF}/EXP00 |
---|
[11161] | 40 | # ------------------------------------------------------------------------------------------ |
---|
| 41 | # |
---|
[14981] | 42 | # RUN setup |
---|
| 43 | # generic batch scrip prefix name if MPMD set to true/false |
---|
[12135] | 44 | JOB_PREFIX_MPMD=${SETTE_JOB_PREFIX_MPMD:-batch-mpmd} |
---|
[11161] | 45 | JOB_PREFIX_NOMPMD=${SETTE_JOB_PREFIX_NOMPMD:-batch} |
---|
| 46 | # ------------------------------------------------------------------------------------------ |
---|
| 47 | # |
---|
[14981] | 48 | # MISCELLANEOUS |
---|
[11161] | 49 | # command for svn (some people use git svn) |
---|
| 50 | # used in sette_rpt and in all_function to display revision and build correct repository name |
---|
| 51 | SVN_CMD=${SETTE_SVN_CMD:-svn} |
---|
[12569] | 52 | # only for IBM |
---|
[3294] | 53 | #TMPDIR=${CONFIG_DIR}/${NEW_CONF}/EXP00 |
---|
[12569] | 54 | # cleaning CFG_ST |
---|
| 55 | CLEAN_CONFIGS=${SETTE_CLEAN_CONFIGS:-"no"} |
---|
| 56 | # synchronisation MY_SRC and EXP00 of CFG_ST with MY_SRC and EXPREF form CFG |
---|
| 57 | SYNC_CONFIGS=${SETTE_SYNC_CONFIGS:-"no"} |
---|
| 58 | # langage (only en_US supported). This is used to grep information form linux/svn command. |
---|
| 59 | LC_MESSAGES=en_US |
---|
[11161] | 60 | # ------------------------------------------------------------------------------------------ |
---|
| 61 | # |
---|
| 62 | # LIST OF CONFIGURATIONS |
---|
| 63 | # to be updated if you added an new configuration in sette_test-cases.sh or sette_reference-configuration.sh |
---|
[13568] | 64 | if [ -z "${TEST_CONFIGS}" ]; then |
---|
[14832] | 65 | export TEST_CONFIGS=(${SETTE_TEST_CONFIGS[@]:-"ORCA2_ICE_PISCES ORCA2_OFF_PISCES AMM12 AGRIF WED025 GYRE_PISCES SAS ORCA2_ICE_OBS SWG ICE_AGRIF OVERFLOW LOCK_EXCHANGE VORTEX ISOMIP+"}) |
---|
[13568] | 66 | fi |
---|
| 67 | # |
---|
| 68 | # TYPES OF TESTS TO PERFORM |
---|
[14981] | 69 | # Note an attempt will be made to compile each configuration even if none of these tests are activated |
---|
| 70 | export DO_RESTART=0 |
---|
[13568] | 71 | export DO_REPRO=0 |
---|
| 72 | export DO_CORRUPT=0 |
---|
| 73 | export DO_PHYOPTS=0 |
---|
| 74 | TEST_TYPES=(${SETTE_TEST_TYPES[@]:-"RESTART REPRO PHYOPTS CORRUPT"}) |
---|
[14981] | 75 | if [[ ${TEST_TYPES[*]} =~ .*RESTART.* ]]; then export DO_RESTART=1 ;fi |
---|
[13568] | 76 | if [[ ${TEST_TYPES[*]} =~ .*REPRO.* ]]; then export DO_REPRO=1 ;fi |
---|
| 77 | if [[ ${TEST_TYPES[*]} =~ .*CORRUPT.* ]]; then export DO_CORRUPT=1 ;fi |
---|
| 78 | if [[ ${TEST_TYPES[*]} =~ .*PHYOPTS.* ]]; then export DO_PHYOPTS=1 ;fi |
---|
[11161] | 79 | # ------------------------------------------------------------------------------------------ |
---|
[12569] | 80 | # |
---|
| 81 | # reporting |
---|
| 82 | # Set number of passes (default only 1). For a second pass, set '0 1' |
---|
| 83 | RPT_PASSES=${SETTE_RPT_NPASSES:-'0'} |
---|