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.
Changeset 4245 for branches/2013/dev_LOCEAN_CMCC_INGV_MERC_UKMO_2013/NEMOGCM/SETTE/sette.sh – NEMO

Ignore:
Timestamp:
2013-11-19T12:19:21+01:00 (10 years ago)
Author:
cetlod
Message:

dev_locean_cmcc_ingv_ukmo_merc : merge in the MERC_UKMO dev branch with trunk rev 4119

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_LOCEAN_CMCC_INGV_MERC_UKMO_2013/NEMOGCM/SETTE/sette.sh

    r4242 r4245  
    22############################################################ 
    33# Author : Simona Flavoni for NEMO 
    4 # Contact : sflod@locean-ipsl.upmc.fr 
     4# Contact: sflod@locean-ipsl.upmc.fr 
     5# 2013   : A.C. Coward added options for testing with XIOS in dettached mode 
    56# 
    67# sette.sh   : principal script of SET TEsts for NEMO (SETTE) 
     
    1516#set -u 
    1617#set -e 
    17 #+ 
    18 # 
    19 # ================ 
    20 # sette.sh 
    21 # ================ 
    22 # 
    23 # ---------------------------------------------- 
    24 # Set of tests for NEMO 
    25 # ---------------------------------------------- 
    26 # 
    27 # SYNOPSIS 
    28 # ======== 
    29 # 
    30 # :: 
    31 # 
    32 #  $ ./sette.sh 
    33 # 
     18# =========== 
    3419# DESCRIPTION 
    3520# =========== 
     
    3722# Variables to be checked by user: 
    3823# 
    39 # COMPILER : name of compiler as defined in NEMOGCM/ARCH directory  
    40 # 
    41 # BATCH_COMMAND :  name of the command for batch submission 
    42 # 
    43 # INTERACT_FLAG :  flag to run in interactive mode "yes" 
    44 #                       to run in batch mode "no" 
    45 # 
    46 # MPIRUN_FLAG   :  flag to run in parallel (MPI) "yes" 
    47 #                       to run in sequential mode (NB_PROC = 1) "no" 
     24# COMPILER          : name of compiler as defined in NEMOGCM/ARCH directory  
     25# BATCH_COMMAND_PAR :  name of the command for submitting parallel batch jobs 
     26# BATCH_COMMAND_SEQ :  name of the command for submitting sequential batch jobs   
     27# INTERACT_FLAG     : flag to run in interactive mode "yes" 
     28#                           to run in batch mode "no" 
     29# MPIRUN_FLAG       : flag to run in parallel (MPI) "yes" 
     30#                           to run in sequential mode (NB_PROC = 1) "no" 
     31# USING_XIOS        : flag to control the activation of key_iomput 
     32#                      "yes" to compile using key_iomput and link to the external XIOS library 
     33#                      "no"  to compile without key_iomput and link to the old IOIPSL library 
     34# USING_MPMD        : flag to control the use of stand-alone IO servers 
     35#                     requires USING_XIOS="yes" 
     36#                      "yes" to run in MPMD (detached) mode with stand-alone IO servers 
     37#                      "no"  to run in SPMD (attached) mode without separate IO servers  
     38# NUM_XIOSERVERS    : number of stand-alone IO servers to employ 
     39#                     set to zero if USING_MPMD="no" 
    4840# 
    4941# Principal script is sette.sh, that calls  
    5042# 
    51 #  makenemo  
    52 # 
    53 #   creates the exectuable in ${CONFIG_NAME}/BLD/bin/nemo.exe  (and its link opa in ${CONFIG_NAME}/EXP00) 
     43#  makenemo  : to create successive exectuables in ${CONFIG_NAME}/BLD/bin/nemo.exe  
     44#              and links to opa in ${CONFIG_NAME}/EXP00) 
    5445# 
    5546#  param.cfg : sets and loads following directories: 
    5647# 
    57 #   FORCING_DIR : is the directory for forcing files (tarfile) 
    58 # 
    59 #   INPUT_DIR : is the directory for input files storing  
    60 # 
    61 #   TMPDIR : is the temporary directory (if needed) 
     48#   FORCING_DIR         : is the directory for forcing files (tarfile) 
     49#   INPUT_DIR           : is the directory for input files storing  
     50#   TMPDIR              : is the temporary directory (if needed) 
     51#   NEMO_VALIDATION_DIR : is the validation directory 
     52# 
     53#   (NOTE: this file is the same for all configrations to be tested with sette) 
     54# 
     55#   all_functions.sh : loads functions used by sette (note: new functions can be added here) 
     56#   set_namelist     : function declared in all_functions that sets namelist parameters  
     57#   post_test_tidyup : creates validation storage directory and copies required output files  
     58#                      (solver.stat and ocean.output) in it after execution of test. 
     59# 
     60#  VALIDATION tree is: 
     61# 
     62#   NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) 
     63# 
     64#  prepare_exe_dir.sh : defines and creates directory where the test is executed 
     65#                       execution directory takes name of TEST_NAME defined for every test  
     66#                       in sette.sh. (each test in executed in its own directory) 
     67# 
     68#  prepare_job.sh     : to generate the script run_job.sh 
     69# 
     70#  fcm_job.sh         : run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes") 
     71#                        see sette.sh and BATCH_TEMPLATE directory 
     72# 
     73#  NOTE: jobs requiring initial or forcing data need to have an input_CONFIG.cfg in which  
     74#        can be found paths to the input tar file) 
     75#  NOTE: if job is not launched for any reason you have the executable ready in ${EXE_DIR}  
     76#        directory 
     77#  NOTE: the changed namelists are left in ${EXE_DIR} directory whereas original namelists  
     78#        remain in ${NEW_CONF}/EXP00 
    6279#  
    63 #   NEMO_VALIDATION_DIR : is the validation directory 
    64 # 
    65 #   (NOTE: this file is the same for all configrations to be tested with sette) 
    66 # 
    67 # 
    68 #  all_functions.sh : loads functions used by sette (note: new functions can be added here) 
    69 # 
    70 #   set_namelist : function declared in all_functions that set namelist parameters for tests 
    71 # 
    72 #   post_test_tidyup : creates validation storage directory and copy needed output files (solver.stat and ocean.output) in it after execution of test. 
    73 # 
    74 #   Tree of VALIDATION is: 
    75 # 
    76 #   NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) 
    77 # 
    78 # 
    79 #  prepare_exe_dir.sh : defines and creates directory where the test is executed 
    80 # 
    81 #       execution directory takes name of TEST_NAME defined in every test in sette.sh 
    82 # 
    83 #       ( each test in executed in its own directory ) 
    84 # 
    85 # 
    86 #  prepare_job.sh 
    87 # 
    88 #  to generate the script run_job.sh 
    89 # 
    90 #  fcm_job.sh  
    91 # 
    92 #   run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes") see sette.sh and BATCH_TEMPLATE directory 
    93 # 
    94 #   (note this job needs to have an input_CONFIG.cfg in which can be found input tar file) 
    95 #  
    96 #  NOTE: if job is not launched for some problems you have executable ready in ${EXE_DIR} directory 
    97 # 
    98 #  NOTE: the changed namelists are leaved in ${EXE_DIR} directory whereas original namelist remains in ${NEW_CONF}/EXP00 
    99 #  
    100 #  in ${SETTE_DIR} is created output.sette with the echo of executed commands 
    101 # 
    102 #  if sette.sh is stopped in output.sette there is written the last command executed by sette.sh 
    103 # 
    104 #  if you run: ./sette.sh 2>&1 | tee out.sette 
    105 # 
    106 #  in ${SETTE_DIR} out.sette is redirected standard error & standard output 
    107 # 
    108 # 
    109 # EXAMPLES 
    110 # ======== 
    111 # 
    112 # :: 
    113 # 
    114 #  $ ./sette.sh  
    115 # 
    116 # 
    117 # TODO 
    118 # ==== 
    119 # 
    120 # option debug 
    121 # 
    122 # EVOLUTIONS 
    123 # ========== 
    124 # 
    125 # $Id$ 
    126 # 
    127 #   * creation 
    128 # 
    129 #- 
    130 # 
    131 #- 
     80#  NOTE: a log file, output.sette, is created in ${SETTE_DIR} with the echoes of  
     81#        executed commands 
     82# 
     83#  NOTE: if sette.sh is stopped in output.sette there is written the last command  
     84#        executed by sette.sh 
     85# 
     86# example use: ./sette.sh  
     87######################################################################################### 
     88# 
    13289# Compiler among those in NEMOGCM/ARCH 
    13390COMPILER=x3750_ADA 
     
    13693export INTERACT_FLAG="no" 
    13794export MPIRUN_FLAG="yes" 
    138 # IF YOU DON'T WANT TO USE XIOS : (this is a list of keys to be delete) 
    139 #export KEY_XIOS="key_iomput" 
    140 # IF YOU WANT TO USE XIOS : 
    141 export KEY_XIOS="" 
    142  
     95export USING_XIOS="yes" 
     96# 
     97export DEL_KEYS="key_iomput" 
     98if [ ${USING_XIOS} == "yes" ]  
     99 then  
     100   export DEL_KEYS="" 
     101fi 
     102# 
     103# Settings which control the use of stand alone servers (only relevant if using xios) 
     104# 
     105export USING_MPMD="no" 
     106export NUM_XIOSERVERS=4 
     107export JOB_PREFIX=batch-mpmd 
     108# 
     109if [ ${USING_MPMD} == "no" ]  
     110 then 
     111   export NUM_XIOSERVERS=0 
     112   export JOB_PREFIX=batch 
     113fi 
     114# 
     115# 
     116if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no"] 
     117 then 
     118   echo "Incompatible choices. MPMD mode requires the XIOS server" 
     119   exit 
     120fi 
     121# 
    143122 
    144123# Directory to run the tests 
     
    152131# Copy job_batch_COMPILER file for specific compiler into job_batch_template 
    153132cd ${SETTE_DIR} 
    154 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
     133cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit 
    155134 
    156135for config in 1 2 3 4 5 6 7 8 9 10 11 
     
    163142    export TEST_NAME="LONG" 
    164143    cd ${CONFIG_DIR} 
    165     . ./makenemo -m ${CMP_NAM} -n GYRE_LONG -r GYRE -j 8 add_key "key_mpp_mpi" del_key ${KEY_XIOS} 
     144    . ./makenemo -m ${CMP_NAM} -n GYRE_LONG -r GYRE -j 8 del_key ${DEL_KEYS} 
    166145    cd ${SETTE_DIR} 
    167146    . param.cfg 
     
    170149    JOB_FILE=${EXE_DIR}/run_job.sh 
    171150    NPROC=4 
    172     \rm ${JOB_FILE} 
     151    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    173152    cd ${EXE_DIR}   
    174153    set_namelist namelist_cfg cn_exp \"GYRE_LONG\" 
     
    181160    set_namelist namelist_cfg jpnj 2 
    182161    set_namelist namelist_cfg jpnij 4 
    183     cd ${SETTE_DIR}  
    184     . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     162    if [ ${USING_MPMD} == "yes" ] ; then 
     163       set_xio_using_server iodef.xml true 
     164    else 
     165       set_xio_using_server iodef.xml false 
     166    fi 
     167    cd ${SETTE_DIR} 
     168    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    185169 
    186170    cd ${SETTE_DIR} 
     
    200184    set_namelist namelist_cfg jpnij 4 
    201185    set_namelist namelist_cfg cn_ocerst_in \"GYRE_LONG_00000060_restart\" 
     186    if [ ${USING_MPMD} == "yes" ] ; then 
     187       set_xio_using_server iodef.xml true 
     188    else 
     189       set_xio_using_server iodef.xml false 
     190    fi 
    202191    for (( i=1; i<=$NPROC; i++)) ; do 
    203192        L_NPROC=$(( $i - 1 )) 
     
    205194        ln -sf ../LONG/GYRE_LONG_00000060_restart_${L_NPROC}.nc . 
    206195    done 
    207     cd ${SETTE_DIR} 
    208     . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     196    if [ ${USING_MPMD} == "yes" ] ; then 
     197       set_xio_using_server iodef.xml true 
     198    else 
     199       set_xio_using_server iodef.xml false 
     200    fi 
     201    cd ${SETTE_DIR} 
     202    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    209203    cd ${SETTE_DIR} 
    210204    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     
    215209    export TEST_NAME="REPRO_1_4" 
    216210    cd ${CONFIG_DIR} 
    217     . ./makenemo -m ${CMP_NAM} -n GYRE_4 -r GYRE -j 8 add_key "key_mpp_mpi key_mpp_rep" del_key ${KEY_XIOS} 
     211    . ./makenemo -m ${CMP_NAM} -n GYRE_4 -r GYRE -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} 
    218212    cd ${SETTE_DIR} 
    219213    . param.cfg 
     
    222216    JOB_FILE=${EXE_DIR}/run_job.sh 
    223217    NPROC=4 
    224     \rm ${JOB_FILE} 
     218    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    225219    cd ${EXE_DIR} 
    226220    set_namelist namelist_cfg cn_exp \"GYRE_14\" 
     
    235229    set_namelist namelist_cfg jpnj 4 
    236230    set_namelist namelist_cfg jpnij 4 
    237     cd ${SETTE_DIR} 
    238     . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     231    if [ ${USING_MPMD} == "yes" ] ; then 
     232       set_xio_using_server iodef.xml true 
     233    else 
     234       set_xio_using_server iodef.xml false 
     235    fi 
     236    cd ${SETTE_DIR} 
     237    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    239238    cd ${SETTE_DIR} 
    240239    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     
    245244    JOB_FILE=${EXE_DIR}/run_job.sh 
    246245    NPROC=4 
    247     \rm $JOB_FILE 
     246    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    248247    cd ${EXE_DIR} 
    249248    set_namelist namelist_cfg cn_exp \"GYRE_22\" 
     
    257256    set_namelist namelist_cfg jpnj 2 
    258257    set_namelist namelist_cfg jpnij 4 
    259     cd ${SETTE_DIR} 
    260     . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     258    if [ ${USING_MPMD} == "yes" ] ; then 
     259       set_xio_using_server iodef.xml true 
     260    else 
     261       set_xio_using_server iodef.xml false 
     262    fi 
     263    cd ${SETTE_DIR} 
     264    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    261265    cd ${SETTE_DIR} 
    262266    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     
    269273    export TEST_NAME="LONG" 
    270274    cd ${CONFIG_DIR} 
    271     . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_mpi" del_key ${KEY_XIOS} 
     275    . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8 del_key ${DEL_KEYS} 
    272276    cd ${SETTE_DIR} 
    273277    . param.cfg 
     
    276280    JOB_FILE=${EXE_DIR}/run_job.sh 
    277281    NPROC=4 
    278     \rm ${JOB_FILE} 
     282    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    279283    cd ${EXE_DIR} 
    280284    set_namelist namelist_cfg cn_exp \"O2LP_LONG\" 
     
    299303    set_namelist namelist_pisces_cfg ln_ironsed .false. 
    300304    set_namelist namelist_pisces_cfg ln_hydrofe .false. 
    301     cd ${SETTE_DIR} 
    302     . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     305    if [ ${USING_MPMD} == "yes" ] ; then 
     306       set_xio_using_server iodef.xml true 
     307    else 
     308       set_xio_using_server iodef.xml false 
     309    fi 
     310    cd ${SETTE_DIR} 
     311    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    303312     
    304313    cd ${SETTE_DIR} 
     
    342351        ln -sf ../LONG/O2LP_LONG_00000075_restart_ice_${L_NPROC}.nc . 
    343352    done 
    344     cd ${SETTE_DIR} 
    345     . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     353    if [ ${USING_MPMD} == "yes" ] ; then 
     354       set_xio_using_server iodef.xml true 
     355    else 
     356       set_xio_using_server iodef.xml false 
     357    fi 
     358    cd ${SETTE_DIR} 
     359    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    346360    cd ${SETTE_DIR} 
    347361    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     
    352366    export TEST_NAME="REPRO_4_4" 
    353367    cd ${CONFIG_DIR} 
    354     . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_mpi key_mpp_rep" del_key ${KEY_XIOS} 
     368    . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} 
    355369    cd ${SETTE_DIR} 
    356370    . param.cfg 
     
    359373    JOB_FILE=${EXE_DIR}/run_job.sh 
    360374    NPROC=16 
    361     \rm $JOB_FILE 
     375    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    362376    cd ${EXE_DIR} 
    363377    set_namelist namelist_cfg nn_it000 1 
     
    384398    # put ln_pisdmp to false : no restoring to global mean value 
    385399    set_namelist namelist_pisces_cfg ln_pisdmp .false. 
    386     cd ${SETTE_DIR} 
    387     . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     400    if [ ${USING_MPMD} == "yes" ] ; then 
     401       set_xio_using_server iodef.xml true 
     402    else 
     403       set_xio_using_server iodef.xml false 
     404    fi 
     405    cd ${SETTE_DIR} 
     406    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    388407    cd ${SETTE_DIR} 
    389408    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     
    394413    JOB_FILE=${EXE_DIR}/run_job.sh 
    395414    NPROC=16 
    396     \rm $JOB_FILE 
     415    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    397416    cd ${EXE_DIR} 
    398417    set_namelist namelist_cfg nn_it000 1 
     
    418437    # put ln_pisdmp to false : no restoring to global mean value 
    419438    set_namelist namelist_pisces_cfg ln_pisdmp .false. 
    420     cd ${SETTE_DIR} 
    421     . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     439    if [ ${USING_MPMD} == "yes" ] ; then 
     440       set_xio_using_server iodef.xml true 
     441    else 
     442       set_xio_using_server iodef.xml false 
     443    fi 
     444    cd ${SETTE_DIR} 
     445    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    422446    cd ${SETTE_DIR} 
    423447    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     
    429453    export TEST_NAME="LONG" 
    430454    cd ${CONFIG_DIR} 
    431     . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_mpi key_mpp_rep" del_key ${KEY_XIOS} 
     455    . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} 
    432456    cd ${SETTE_DIR} 
    433457    . param.cfg 
     
    436460    JOB_FILE=${EXE_DIR}/run_job.sh 
    437461    NPROC=4 
    438     \rm $JOB_FILE 
     462    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    439463    cd ${EXE_DIR} 
    440464    set_namelist namelist_cfg cn_exp \"OFFP_LONG\" 
     
    460484    # put ln_pisdmp to false : no restoring to global mean value 
    461485    set_namelist namelist_pisces_cfg ln_pisdmp .false. 
    462     cd ${SETTE_DIR} 
    463     . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     486    if [ ${USING_MPMD} == "yes" ] ; then 
     487       set_xio_using_server iodef.xml true 
     488    else 
     489       set_xio_using_server iodef.xml false 
     490    fi 
     491    cd ${SETTE_DIR} 
     492    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    464493     
    465494    cd ${SETTE_DIR} 
     
    496525    # put ln_pisdmp to false : no restoring to global mean value 
    497526    set_namelist namelist_pisces_cfg ln_pisdmp .false. 
    498     cd ${SETTE_DIR} 
    499     . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME}  ${MPIRUN_FLAG} ${JOB_FILE} 
     527    if [ ${USING_MPMD} == "yes" ] ; then 
     528       set_xio_using_server iodef.xml true 
     529    else 
     530       set_xio_using_server iodef.xml false 
     531    fi 
     532    cd ${SETTE_DIR} 
     533    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME}  ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    500534    cd ${SETTE_DIR} 
    501535    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     
    506540    export TEST_NAME="REPRO_4_4" 
    507541    cd ${CONFIG_DIR} 
    508     . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_mpi key_mpp_rep" del_key ${KEY_XIOS} 
     542    . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} 
    509543    cd ${SETTE_DIR} 
    510544    . param.cfg 
     
    513547    JOB_FILE=${EXE_DIR}/run_job.sh 
    514548    NPROC=16 
    515     \rm $JOB_FILE 
     549    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    516550    cd ${EXE_DIR} 
    517551    set_namelist namelist_cfg nn_it000 1 
     
    536570    # put ln_pisdmp to false : no restoring to global mean value 
    537571    set_namelist namelist_pisces_cfg ln_pisdmp .false. 
    538     cd ${SETTE_DIR} 
    539     . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     572    if [ ${USING_MPMD} == "yes" ] ; then 
     573       set_xio_using_server iodef.xml true 
     574    else 
     575       set_xio_using_server iodef.xml false 
     576    fi 
     577    cd ${SETTE_DIR} 
     578    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    540579    cd ${SETTE_DIR} 
    541580    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     
    546585    JOB_FILE=${EXE_DIR}/run_job.sh 
    547586    NPROC=16 
    548     \rm $JOB_FILE 
     587    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    549588    cd ${EXE_DIR} 
    550589    set_namelist namelist_cfg nn_it000 1 
     
    569608    # put ln_pisdmp to false : no restoring to global mean value 
    570609    set_namelist namelist_pisces_cfg ln_pisdmp .false.  
    571     cd ${SETTE_DIR} 
    572     . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     610    if [ ${USING_MPMD} == "yes" ] ; then 
     611       set_xio_using_server iodef.xml true 
     612    else 
     613       set_xio_using_server iodef.xml false 
     614    fi 
     615    cd ${SETTE_DIR} 
     616    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    573617    cd ${SETTE_DIR} 
    574618    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     
    580624    export TEST_NAME="LONG" 
    581625    cd ${CONFIG_DIR} 
    582     . ./makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 add_key "key_tide" del_key ${KEY_XIOS} 
     626    . ./makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 add_key "key_tide" del_key ${DEL_KEYS} 
    583627    cd ${SETTE_DIR} 
    584628    . param.cfg 
     
    587631    JOB_FILE=${EXE_DIR}/run_job.sh 
    588632    NPROC=32 
    589     \rm $JOB_FILE 
     633    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    590634    cd ${EXE_DIR} 
    591635    set_namelist namelist_cfg nn_it000 1 
     
    602646    set_namelist namelist_cfg jpnj 4 
    603647    set_namelist namelist_cfg jpnij 32 
    604     cd ${SETTE_DIR} 
    605     . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     648    if [ ${USING_MPMD} == "yes" ] ; then 
     649       set_xio_using_server iodef.xml true 
     650    else 
     651       set_xio_using_server iodef.xml false 
     652    fi 
     653    cd ${SETTE_DIR} 
     654    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    606655 
    607656    cd ${SETTE_DIR} 
     
    627676        ln -sf ../LONG/AMM12_00000006_restart_oce_out_${L_NPROC}.nc . 
    628677    done 
    629     cd ${SETTE_DIR} 
    630     . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     678    if [ ${USING_MPMD} == "yes" ] ; then 
     679       set_xio_using_server iodef.xml true 
     680    else 
     681       set_xio_using_server iodef.xml false 
     682    fi 
     683    cd ${SETTE_DIR} 
     684    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    631685    cd ${SETTE_DIR} 
    632686    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     
    637691    export TEST_NAME="REPRO_8_4" 
    638692    cd ${CONFIG_DIR} 
    639     . ./makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 add_key "key_mpp_rep key_tide" del_key ${KEY_XIOS}   
     693    . ./makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 add_key "key_mpp_rep key_tide" del_key ${DEL_KEYS} 
    640694    cd ${SETTE_DIR} 
    641695    . param.cfg 
     
    644698    JOB_FILE=${EXE_DIR}/run_job.sh 
    645699    NPROC=32 
    646     \rm ${JOB_FILE} 
     700    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    647701    cd ${EXE_DIR} 
    648702    set_namelist namelist_cfg nn_it000 1 
     
    657711    set_namelist namelist_cfg jpnj 4 
    658712    set_namelist namelist_cfg jpnij 32 
    659     cd ${SETTE_DIR} 
    660     . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     713    if [ ${USING_MPMD} == "yes" ] ; then 
     714       set_xio_using_server iodef.xml true 
     715    else 
     716       set_xio_using_server iodef.xml false 
     717    fi 
     718    cd ${SETTE_DIR} 
     719    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    661720    cd ${SETTE_DIR} 
    662721    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     
    677736    set_namelist namelist_cfg jpnj 8 
    678737    set_namelist namelist_cfg jpnij 32 
    679     cd ${SETTE_DIR} 
    680     . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
    681     cd ${SETTE_DIR} 
    682     . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    683 fi 
    684  
    685 # TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests) 
     738    if [ ${USING_MPMD} == "yes" ] ; then 
     739       set_xio_using_server iodef.xml true 
     740    else 
     741       set_xio_using_server iodef.xml false 
     742    fi 
     743    cd ${SETTE_DIR} 
     744    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     745    cd ${SETTE_DIR} 
     746    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     747fi 
     748 
     749 
     750# TESTS FOR ORCA2_SAS_LIM CONFIGURATION 
    686751if [ ${config} -eq 9 ] ;  then 
    687     ## ORCA2_LIM with Agulhas AGRIF zoom in MPI 
    688     export TEST_NAME="SHORT" 
    689     cd ${CONFIG_DIR} 
    690     . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM -j 8 add_key "key_mpp_mpi key_mpp_rep key_agrif" del_key "key_zdftmx" del_key ${KEY_XIOS} 
    691     cd ${SETTE_DIR} 
    692     . param.cfg 
    693     . all_functions.sh 
    694     . prepare_exe_dir.sh 
    695     JOB_FILE=${EXE_DIR}/run_job.sh 
    696     NPROC=2 
    697     \rm ${JOB_FILE} 
    698     cd ${EXE_DIR} 
    699     set_namelist namelist_cfg nn_it000 1 
    700     set_namelist namelist_cfg nn_itend 75 
    701     set_namelist namelist_cfg ln_ctl .false. 
    702     set_namelist namelist_cfg ln_clobber .true. 
    703     set_namelist namelist_cfg jpni 1 
    704     set_namelist namelist_cfg jpnj 2 
    705     set_namelist namelist_cfg jpnij 2 
    706     set_namelist 1_namelist_cfg nn_it000 1 
    707     set_namelist 1_namelist_cfg nn_itend 150 
    708     set_namelist 1_namelist_cfg ln_ctl .false. 
    709     set_namelist 1_namelist_cfg ln_clobber .true. 
    710     cd ${SETTE_DIR} 
    711     . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
    712     cd ${SETTE_DIR} 
    713     . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    714 fi 
    715  
    716 # TESTS FOR ORCA2_SAS_LIM CONFIGURATION 
    717 if [ ${config} -eq 10 ] ;  then 
    718752    ## Restartability tests for SAS 
    719753    export TEST_NAME="LONG" 
    720754    cd ${CONFIG_DIR} 
    721     . ./makenemo -m ${CMP_NAM} -n SAS_LONG -r ORCA2_SAS_LIM -j 8 add_key " " del_key ${KEY_XIOS} 
     755    . ./makenemo -m ${CMP_NAM} -n SAS_LONG -r ORCA2_SAS_LIM -j 8 "key_mpp_rep" del_key ${DEL_KEYS} 
    722756    cd ${SETTE_DIR} 
    723757    . param.cfg 
     
    737771    set_namelist namelist_cfg jpnj 4 
    738772    set_namelist namelist_cfg jpnij 32 
    739     cd ${SETTE_DIR} 
    740     . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     773    if [ ${USING_MPMD} == "yes" ] ; then 
     774       set_xio_using_server iodef.xml true 
     775    else 
     776       set_xio_using_server iodef.xml false 
     777    fi 
     778    cd ${SETTE_DIR} 
     779    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    741780 
    742781    cd ${SETTE_DIR} 
     
    759798        ln -sf ../LONG/SAS_00000050_restart_${L_NPROC}.nc . 
    760799    done 
    761     cd ${SETTE_DIR} 
    762     . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
    763     cd ${SETTE_DIR} 
    764     . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    765 fi 
    766  
    767 if [ ${config} -eq 11 ] ;  then 
     800    if [ ${USING_MPMD} == "yes" ] ; then 
     801       set_xio_using_server iodef.xml true 
     802    else 
     803       set_xio_using_server iodef.xml false 
     804    fi 
     805    cd ${SETTE_DIR} 
     806    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     807    cd ${SETTE_DIR} 
     808    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     809fi 
     810 
     811if [ ${config} -eq 10 ] ;  then 
    768812## Reproducibility tests for ORCA2_SAS_LIM 
    769813    export TEST_NAME="REPRO_8_4" 
    770814    cd ${CONFIG_DIR} 
    771     . ./makenemo -m ${CMP_NAM} -n SAS_32 -r ORCA2_SAS_LIM -j 8 add_key " " del_key ${KEY_XIOS} 
     815    . ./makenemo -m ${CMP_NAM} -n SAS_32 -r ORCA2_SAS_LIM -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} 
    772816    cd ${SETTE_DIR} 
    773817    . param.cfg 
     
    786830    set_namelist namelist_cfg jpnj 4 
    787831    set_namelist namelist_cfg jpnij 32 
    788     cd ${SETTE_DIR} 
    789     . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
    790     cd ${SETTE_DIR} 
    791     . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    792  
     832    if [ ${USING_MPMD} == "yes" ] ; then 
     833       set_xio_using_server iodef.xml true 
     834    else 
     835       set_xio_using_server iodef.xml false 
     836    fi 
     837    cd ${SETTE_DIR} 
     838    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE}  ${NUM_XIOSERVERS} 
     839    cd ${SETTE_DIR} 
     840    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    793841    cd ${SETTE_DIR} 
    794842    export TEST_NAME="REPRO_4_8" 
     
    803851    set_namelist namelist_cfg jpnj 8 
    804852    set_namelist namelist_cfg jpnij 32 
    805     cd ${SETTE_DIR} 
    806     . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
    807     cd ${SETTE_DIR} 
    808     . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    809 fi 
     853    if [ ${USING_MPMD} == "yes" ] ; then 
     854       set_xio_using_server iodef.xml true 
     855    else 
     856       set_xio_using_server iodef.xml false 
     857    fi 
     858    cd ${SETTE_DIR} 
     859    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     860    cd ${SETTE_DIR} 
     861    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     862fi 
     863 
     864# TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests) 
     865if [ ${config} -eq 11 ] ;  then 
     866    ## ORCA2_LIM with Agulhas AGRIF zoom in MPI 
     867    export TEST_NAME="SHORT" 
     868    cd ${CONFIG_DIR} 
     869    . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM -j 8 add_key "key_mpp_rep key_agrif" del_key "key_zdftmx" del_key ${DEL_KEYS} 
     870    cd ${SETTE_DIR} 
     871    . param.cfg 
     872    . all_functions.sh 
     873    . prepare_exe_dir.sh 
     874    JOB_FILE=${EXE_DIR}/run_job.sh 
     875    NPROC=2 
     876    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     877    cd ${EXE_DIR} 
     878    set_namelist namelist_cfg nn_it000 1 
     879    set_namelist namelist_cfg nn_itend 75 
     880    set_namelist namelist_cfg ln_ctl .false. 
     881    set_namelist namelist_cfg ln_clobber .true. 
     882    set_namelist namelist_cfg jpni 1 
     883    set_namelist namelist_cfg jpnj 2 
     884    set_namelist namelist_cfg jpnij 2 
     885    set_namelist 1_namelist_cfg nn_it000 1 
     886    set_namelist 1_namelist_cfg nn_itend 150 
     887    set_namelist 1_namelist_cfg ln_ctl .false. 
     888    set_namelist 1_namelist_cfg ln_clobber .true. 
     889    if [ ${USING_MPMD} == "yes" ] ; then 
     890       set_xio_using_server iodef.xml true 
     891    else 
     892       set_xio_using_server iodef.xml false 
     893    fi 
     894    cd ${SETTE_DIR} 
     895    . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     896    cd ${SETTE_DIR} 
     897    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     898fi 
     899 
    810900 
    811901done 
Note: See TracChangeset for help on using the changeset viewer.