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.
sette_reference-configurations.sh in utils/CI/sette_ticket2496 – NEMO

source: utils/CI/sette_ticket2496/sette_reference-configurations.sh @ 14895

Last change on this file since 14895 was 13639, checked in by mocavero, 4 years ago

Added key_mpi3 in sette to activate/deactivate the use of MPI3 neighborhood collectives lbc routines - ticket #2496

  • Property svn:executable set to *
File size: 61.0 KB
RevLine 
[3520]1#!/bin/bash
[3708]2############################################################
[3520]3# Author : Simona Flavoni for NEMO
[4245]4# Contact: sflod@locean-ipsl.upmc.fr
5# 2013   : A.C. Coward added options for testing with XIOS in dettached mode
[3520]6#
7# sette.sh   : principal script of SET TEsts for NEMO (SETTE)
8# ----------------------------------------------------------------------
9# NEMO/SETTE , NEMO Consortium (2010)
10# Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
11# ----------------------------------------------------------------------
12#
13#############################################################
[7744]14#set -vx
[3520]15set -o posix
16#set -u
17#set -e
[4245]18# ===========
[3520]19# DESCRIPTION
20# ===========
21#
22# Variables to be checked by user:
23#
[4245]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"
[13639]40# USING_MPI3        : flag to control the activation of key_mpi3
41#                     "yes" to use the MPI3 neighbourhood collectives for halo exchange
42#                     "no" to use standard point-to-point communications for halo exchange
[3520]43#
44# Principal script is sette.sh, that calls
45#
[4245]46#  makenemo  : to create successive exectuables in ${CONFIG_NAME}/BLD/bin/nemo.exe
[9576]47#              and links to nemo in ${CONFIG_NAME}/EXP00)
[3520]48#
49#  param.cfg : sets and loads following directories:
[13568]50#              This will have been run by the parent sette.sh and values exported here
[3520]51#
[4245]52#   FORCING_DIR         : is the directory for forcing files (tarfile)
53#   INPUT_DIR           : is the directory for input files storing
54#   TMPDIR              : is the temporary directory (if needed)
[3520]55#   NEMO_VALIDATION_DIR : is the validation directory
56#
57#   (NOTE: this file is the same for all configrations to be tested with sette)
58#
[4245]59#   all_functions.sh : loads functions used by sette (note: new functions can be added here)
60#   set_namelist     : function declared in all_functions that sets namelist parameters
61#   post_test_tidyup : creates validation storage directory and copies required output files
[9019]62#                      (run.stat and ocean.output) in it after execution of test.
[3520]63#
[4245]64#  VALIDATION tree is:
[3520]65#
66#   NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE)
67#
68#  prepare_exe_dir.sh : defines and creates directory where the test is executed
[4245]69#                       execution directory takes name of TEST_NAME defined for every test
70#                       in sette.sh. (each test in executed in its own directory)
[3520]71#
[10755]72#  set_valid_dir       : rename ocean.output/run.stat and tracer.stat to avoid checking them in the report
73#
[10698]74#  clean_valid_dir    : rename ocean.output/run.stat and tracer.stat to avoid checking them in the report
75#                       ( not doing it could lead to false positive )
76#
[4245]77#  prepare_job.sh     : to generate the script run_job.sh
[3520]78#
[4245]79#  fcm_job.sh         : run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes")
80#                        see sette.sh and BATCH_TEMPLATE directory
[3520]81#
[4245]82#  NOTE: jobs requiring initial or forcing data need to have an input_CONFIG.cfg in which
83#        can be found paths to the input tar file)
84#  NOTE: if job is not launched for any reason you have the executable ready in ${EXE_DIR}
85#        directory
86#  NOTE: the changed namelists are left in ${EXE_DIR} directory whereas original namelists
87#        remain in ${NEW_CONF}/EXP00
[3520]88#
[4245]89#  NOTE: a log file, output.sette, is created in ${SETTE_DIR} with the echoes of
90#        executed commands
[3520]91#
[4245]92#  NOTE: if sette.sh is stopped in output.sette there is written the last command
93#        executed by sette.sh
[3520]94#
[4245]95# example use: ./sette.sh
96#########################################################################################
[3520]97#
[10687]98# LOAD param value
[10717]99SETTE_DIR=$(cd $(dirname "$0"); pwd)
100MAIN_DIR=$(dirname $SETTE_DIR)
[7743]101
[10687]102export BATCH_COMMAND_PAR=${BATCH_CMD}
103export BATCH_COMMAND_SEQ=${BATCH_CMD}
[4990]104export INTERACT_FLAG="no"
[4245]105export MPIRUN_FLAG="yes"
[9941]106export USING_ICEBERGS="yes"
[13568]107export USING_EXTRA_HALO="no"
[3520]108#
[4245]109export DEL_KEYS="key_iomput"
110if [ ${USING_XIOS} == "yes" ] 
111 then
112   export DEL_KEYS=""
113fi
[3520]114#
[10687]115export ADD_KEYS=""
116if [ ${ADD_NOSIGNEDZERO} == "yes" ]
117 then
118   export ADD_KEYS="key_nosignedzero"
119fi
120#
[13639]121if [ ${USING_MPI3} == "yes" ]
122 then
123   export ADD_KEYS="${ADD_KEYS} key_mpi3"
124fi
125#
[4245]126# Settings which control the use of stand alone servers (only relevant if using xios)
[3520]127#
[10632]128export NUM_XIOSERVERS=4
[11140]129export JOB_PREFIX=${JOB_PREFIX_MPMD}
[3520]130#
[4245]131if [ ${USING_MPMD} == "no" ] 
132 then
133   export NUM_XIOSERVERS=0
[11140]134   export JOB_PREFIX=${JOB_PREFIX_NOMPMD}
[4245]135fi
[3520]136#
137#
[10573]138if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no" ]
[4245]139 then
140   echo "Incompatible choices. MPMD mode requires the XIOS server"
141   exit
142fi
[3520]143
144# Directory to run the tests
[9602]145CONFIG_DIR0=${MAIN_DIR}/cfgs
146TOOLS_DIR=${MAIN_DIR}/tools
[3520]147
148CMP_NAM=${1:-$COMPILER}
149# Copy job_batch_COMPILER file for specific compiler into job_batch_template
150cd ${SETTE_DIR}
[4245]151cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit
[10747]152# Description of available configurations:
153# GYRE_PISCES       :
154# ORCA2_ICE_PISCES  :
155# ORCA2_OFF_PISCES  :
156# AMM12             :
157# SAS               :
158# ORCA2_ICE_OBS     :
159# AGRIF             : test AGRIF in a double zoom configuration in the nordic seas + 1 zoom in the eq. Pacific (AGRIF_DEMO)
160#                       and check that key_agrif without zoom = no key_agrif
[13382]161# WED025           : regional configuration including sea-ice and tides (Spitzbergen)
[4147]162
[13568]163for config in ${TEST_CONFIGS[@]}
[3520]164do
165
[9518]166# -----------
167# GYRE_PISCES
168# -----------
[13568]169if [ ${config} == "GYRE_PISCES" ] && [ ${DO_RESTART} == "1" ] ;  then
[9518]170## Restartability tests for GYRE_PISCES
[13559]171    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
172    then
173   ITEND=12    # 1 day
174    else
175   ITEND=1080  # 90 days
176    fi
177    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) )
[3520]178    export TEST_NAME="LONG"
[9658]179    cd ${MAIN_DIR}
[12569]180    #
181    # syncronisation if target directory/file exist (not done by makenemo)
182    . ${SETTE_DIR}/all_functions.sh
183    sync_config  GYRE_PISCES GYRE_PISCES_ST 'cfgs'
184    clean_config GYRE_PISCES GYRE_PISCES_ST 'cfgs'
185    #
[11497]186    . ./makenemo -m ${CMP_NAM} -n GYRE_PISCES_ST -r GYRE_PISCES -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
[3520]187    cd ${SETTE_DIR}
[4252]188    . ./param.cfg
189    . ./all_functions.sh
190    . ./prepare_exe_dir.sh
[10755]191    set_valid_dir
[10698]192    clean_valid_dir
[3520]193    JOB_FILE=${EXE_DIR}/run_job.sh
[9525]194    NPROC=8
[4245]195    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[4147]196    cd ${EXE_DIR} 
[7715]197    set_namelist namelist_cfg cn_exp \"GYREPIS_LONG\"
[4147]198    set_namelist namelist_cfg nn_it000 1
[13559]199    set_namelist namelist_cfg nn_itend ${ITEND}
200    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
[7646]201    set_namelist namelist_cfg ln_linssh .true.
[9525]202    set_namelist namelist_cfg jpni 2
203    set_namelist namelist_cfg jpnj 4
[10573]204    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
205    set_namelist namelist_cfg sn_cfctl%l_trcstat .true.
[4245]206    if [ ${USING_MPMD} == "yes" ] ; then
207       set_xio_using_server iodef.xml true
208    else
209       set_xio_using_server iodef.xml false
210    fi
211    cd ${SETTE_DIR}
[10755]212    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[3520]213
214    cd ${SETTE_DIR}
215    export TEST_NAME="SHORT"
[4252]216    . ./prepare_exe_dir.sh
[10755]217    set_valid_dir
[10698]218    clean_valid_dir
[3520]219    cd ${EXE_DIR}
[7715]220    set_namelist namelist_cfg cn_exp \"GYREPIS_SHORT\"
[13559]221    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
222    set_namelist namelist_cfg nn_itend ${ITEND}
223    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
[4147]224    set_namelist namelist_cfg ln_rstart .true.
225    set_namelist namelist_cfg nn_rstctl 2
[7646]226    set_namelist namelist_cfg ln_linssh .true.
[9525]227    set_namelist namelist_cfg jpni 2
228    set_namelist namelist_cfg jpnj 4
[10573]229    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
230    set_namelist namelist_cfg sn_cfctl%l_trcstat .true.
[7744]231    set_namelist namelist_top_cfg ln_rsttr .true.
232    set_namelist namelist_top_cfg nn_rsttr 2
[13559]233    set_namelist namelist_cfg cn_ocerst_in \"GYREPIS_LONG_${ITRST}_restart\"
234    set_namelist namelist_top_cfg cn_trcrst_in \"GYREPIS_LONG_${ITRST}_restart_trc\"
[4245]235    if [ ${USING_MPMD} == "yes" ] ; then
236       set_xio_using_server iodef.xml true
237    else
238       set_xio_using_server iodef.xml false
239    fi
[3537]240    for (( i=1; i<=$NPROC; i++)) ; do
241        L_NPROC=$(( $i - 1 ))
242        L_NPROC=`printf "%04d\n" ${L_NPROC}`
[13559]243        ln -sf ../LONG/GYREPIS_LONG_${ITRST}_restart_${L_NPROC}.nc .
244        ln -sf ../LONG/GYREPIS_LONG_${ITRST}_restart_trc_${L_NPROC}.nc .
[3537]245    done
[3520]246    cd ${SETTE_DIR}
[10755]247    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[3520]248    cd ${SETTE_DIR}
[3532]249    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
[3520]250
[13568]251fi
252
253if [ ${config} == "GYRE_PISCES" ] && [ ${DO_REPRO} == "1" ] ;  then
[9518]254## Reproducibility tests for GYRE_PISCES
[9525]255    export TEST_NAME="REPRO_2_4"
[9658]256    cd ${MAIN_DIR}
[3520]257    cd ${SETTE_DIR}
[4252]258    . ./param.cfg
259    . ./all_functions.sh
260    . ./prepare_exe_dir.sh
[10755]261    set_valid_dir
[10698]262    clean_valid_dir
[3520]263    JOB_FILE=${EXE_DIR}/run_job.sh
[9525]264    NPROC=8
[4245]265    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]266    cd ${EXE_DIR}
[7715]267    set_namelist namelist_cfg cn_exp \"GYREPIS_48\"
[4147]268    set_namelist namelist_cfg nn_it000 1
[13559]269    set_namelist namelist_cfg nn_itend ${ITEND}
[7646]270    set_namelist namelist_cfg ln_linssh .true.
[9525]271    set_namelist namelist_cfg jpni 2
272    set_namelist namelist_cfg jpnj 4
[10573]273    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
274    set_namelist namelist_cfg sn_cfctl%l_trcstat .true.
[4245]275    if [ ${USING_MPMD} == "yes" ] ; then
276       set_xio_using_server iodef.xml true
277    else
278       set_xio_using_server iodef.xml false
279    fi
[3520]280    cd ${SETTE_DIR}
[10755]281    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[3520]282    cd ${SETTE_DIR}
283    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
284
285    cd ${SETTE_DIR}
[9525]286    export TEST_NAME="REPRO_4_2"
[4252]287    . ./prepare_exe_dir.sh
[10755]288    set_valid_dir
[10698]289    clean_valid_dir
[3680]290    JOB_FILE=${EXE_DIR}/run_job.sh
[9525]291    NPROC=8
[4245]292    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]293    cd ${EXE_DIR}
[7715]294    set_namelist namelist_cfg cn_exp \"GYREPIS_84\"
[4147]295    set_namelist namelist_cfg nn_it000 1
[13559]296    set_namelist namelist_cfg nn_itend ${ITEND}
[7646]297    set_namelist namelist_cfg ln_linssh .true.
[9525]298    set_namelist namelist_cfg jpni 4
299    set_namelist namelist_cfg jpnj 2
[10573]300    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
301    set_namelist namelist_cfg sn_cfctl%l_trcstat .true.
[4245]302    if [ ${USING_MPMD} == "yes" ] ; then
303       set_xio_using_server iodef.xml true
304    else
305       set_xio_using_server iodef.xml false
306    fi
[3520]307    cd ${SETTE_DIR}
[10755]308    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[3520]309    cd ${SETTE_DIR}
310    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
[3532]311
[3520]312fi
313
[9518]314# -----------------
[9663]315# ORCA2_ICE_PISCES
[9518]316# -----------------
[13568]317if [ ${config} == "ORCA2_ICE_PISCES" ] && [ ${DO_RESTART} == "1" ] ;  then
[9663]318## Restartability tests for ORCA2_ICE_PISCES
[13559]319    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
320    then
321   ITEND=16   # 1 day
322    else
323   ITEND=992  # 62 days
324    fi
325    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) )
[7646]326    export TEST_NAME="LONG"
[9658]327    cd ${MAIN_DIR}
[12569]328    #
329    # syncronisation if target directory/file exist (not done by makenemo)
330    . ${SETTE_DIR}/all_functions.sh
331    sync_config  ORCA2_ICE_PISCES ORCA2_ICE_PISCES_ST 'cfgs'
332    clean_config ORCA2_ICE_PISCES ORCA2_ICE_PISCES_ST 'cfgs'
333    #
[11497]334    . ./makenemo -m ${CMP_NAM} -n ORCA2_ICE_PISCES_ST -r ORCA2_ICE_PISCES -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
[7646]335    cd ${SETTE_DIR}
336    . ./param.cfg
337    . ./all_functions.sh
338    . ./prepare_exe_dir.sh
[10755]339    set_valid_dir
[10698]340    clean_valid_dir
[7646]341    JOB_FILE=${EXE_DIR}/run_job.sh
342    NPROC=32
343    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
344    cd ${EXE_DIR}
345    set_namelist namelist_cfg cn_exp \"O2L3P_LONG\"
346    set_namelist namelist_cfg nn_it000 1
[13559]347    set_namelist namelist_cfg nn_itend ${ITEND}
348    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
[7646]349    set_namelist namelist_cfg jpni 4
350    set_namelist namelist_cfg jpnj 8
[10573]351    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
352    set_namelist namelist_cfg sn_cfctl%l_trcstat .true.
[9933]353    set_namelist namelist_cfg ln_use_calving .true.
[10189]354    set_namelist namelist_cfg ln_wave .true.
355    set_namelist namelist_cfg ln_cdgw .true.
356    set_namelist namelist_cfg ln_sdw  .true.
357    set_namelist namelist_cfg nn_sdrift 1
358    set_namelist namelist_cfg ln_stcor .true.
359    set_namelist namelist_cfg ln_tauwoc .true.
[9904]360    #
[13568]361    if [ ${USING_ICEBERGS} == "no" ]  ; then set_namelist namelist_cfg ln_icebergs .false. ; fi
362    if [ ${USING_ICEBERGS} == "yes" ] ; then set_namelist namelist_cfg ln_icebergs .true. ; fi
363    if [ ${USING_EXTRA_HALO} == "no" ]  ; then set_namelist namelist_cfg nn_hls 1 ; fi
364    if [ ${USING_EXTRA_HALO} == "yes" ] ; then set_namelist namelist_cfg nn_hls 2 ; fi
[10687]365    # for debugging purposes set_namelist namelist_cfg rn_test_box -180.0, 180.0, -90.0, -55.0
[9904]366    #
[9019]367    set_namelist namelist_ice_cfg ln_icediachk .true.
[4147]368    set_namelist namelist_top_cfg ln_trcdta .false.
[12428]369    set_namelist namelist_top_cfg ln_trcbc  .false.
370    # put ln_ironsed, ln_hydrofe to false
[3520]371    # if not you need input files, and for tests is not necessary
[4147]372    set_namelist namelist_pisces_cfg ln_varpar .false.
373    set_namelist namelist_pisces_cfg ln_ironsed .false.
[7646]374    set_namelist namelist_pisces_cfg ln_ironice .false.
[4147]375    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[9203]376    # put ln_pisdmp to false : no restoring to global mean value
377    set_namelist namelist_pisces_cfg ln_pisdmp .false.
[4245]378    if [ ${USING_MPMD} == "yes" ] ; then
379       set_xio_using_server iodef.xml true
380    else
381       set_xio_using_server iodef.xml false
382    fi
[3520]383    cd ${SETTE_DIR}
[10755]384    . ./prepare_job.sh input_ORCA2_ICE_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[3532]385   
386    cd ${SETTE_DIR}
[3520]387    export TEST_NAME="SHORT"
[4252]388    . ./prepare_exe_dir.sh
[10755]389    set_valid_dir
[10698]390    clean_valid_dir
[3520]391    cd ${EXE_DIR}
[7646]392    set_namelist namelist_cfg cn_exp \"O2L3P_SHORT\"
[13559]393    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
394    set_namelist namelist_cfg nn_itend ${ITEND}
395    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
[4147]396    set_namelist namelist_cfg ln_rstart .true.
397    set_namelist namelist_cfg nn_rstctl 2
[7646]398    set_namelist namelist_cfg jpni 4
399    set_namelist namelist_cfg jpnj 8
[10573]400    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
401    set_namelist namelist_cfg sn_cfctl%l_trcstat .true.
[9920]402    set_namelist namelist_cfg nn_test_icebergs -1
[10189]403    set_namelist namelist_cfg ln_wave .true.
404    set_namelist namelist_cfg ln_cdgw .true.
405    set_namelist namelist_cfg ln_sdw  .true.
406    set_namelist namelist_cfg nn_sdrift 1
407    set_namelist namelist_cfg ln_stcor .true.
408    set_namelist namelist_cfg ln_tauwoc .true.
[9904]409    #
[13568]410    if [ ${USING_ICEBERGS} == "no" ]  ; then set_namelist namelist_cfg ln_icebergs .false. ; fi
411    if [ ${USING_ICEBERGS} == "yes" ] ; then set_namelist namelist_cfg ln_icebergs .true. ; fi
412    if [ ${USING_EXTRA_HALO} == "no" ]  ; then set_namelist namelist_cfg nn_hls 1 ; fi
413    if [ ${USING_EXTRA_HALO} == "yes" ] ; then set_namelist namelist_cfg nn_hls 2 ; fi
[10732]414    # for debugging purposes set_namelist namelist_cfg rn_test_box -180.0, 180.0, -90.0, -55.0
[9904]415    #
[9933]416    set_namelist namelist_ice_cfg ln_icediachk .true.
[4147]417    set_namelist namelist_top_cfg ln_rsttr .true.
418    set_namelist namelist_top_cfg nn_rsttr 2
[13559]419    set_namelist namelist_cfg cn_ocerst_in \"O2L3P_LONG_${ITRST}_restart\"
420    set_namelist namelist_cfg cn_icbrst_in \"O2L3P_LONG_${ITRST}_restart_icb\"
421    set_namelist namelist_top_cfg cn_trcrst_in \"O2L3P_LONG_${ITRST}_restart_trc\"
422    set_namelist namelist_ice_cfg cn_icerst_in \"O2L3P_LONG_${ITRST}_restart_ice\"
[12428]423    set_namelist namelist_top_cfg ln_trcbc  .false.
424    # put ln_ironsed, ln_hydrofe to false
[3520]425    # if not you need input files, and for tests is not necessary
[4147]426    set_namelist namelist_pisces_cfg ln_varpar .false.
427    set_namelist namelist_pisces_cfg ln_ironsed .false.
[7646]428    set_namelist namelist_pisces_cfg ln_ironice .false.
[4147]429    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[3680]430    # put ln_pisdmp to false : no restoring to global mean value
[4147]431    set_namelist namelist_pisces_cfg ln_pisdmp .false.
[3537]432    for (( i=1; i<=$NPROC; i++)) ; do
433        L_NPROC=$(( $i - 1 ))
434        L_NPROC=`printf "%04d\n" ${L_NPROC}`
[13559]435        ln -sf ../LONG/O2L3P_LONG_${ITRST}_restart_${L_NPROC}.nc .
436        ln -sf ../LONG/O2L3P_LONG_${ITRST}_restart_trc_${L_NPROC}.nc .
437        ln -sf ../LONG/O2L3P_LONG_${ITRST}_restart_ice_${L_NPROC}.nc .
[9904]438        if [ ${USING_ICEBERGS} == "yes" ]
439            then
[13559]440             ln -sf ../LONG/O2L3P_LONG_${ITRST}_restart_icb_${L_NPROC}.nc O2L3P_LONG_${ITRST}_restart_icb_${L_NPROC}.nc
[9904]441        fi
[3537]442    done
[4245]443    if [ ${USING_MPMD} == "yes" ] ; then
444       set_xio_using_server iodef.xml true
445    else
446       set_xio_using_server iodef.xml false
447    fi
[3520]448    cd ${SETTE_DIR}
[10755]449    . ./prepare_job.sh input_ORCA2_ICE_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[3520]450    cd ${SETTE_DIR}
[3532]451    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
[3520]452
[13568]453fi
454
455if [ ${config} == "ORCA2_ICE_PISCES" ] && [ ${DO_REPRO} == "1" ] ;  then
[9663]456## Reproducibility tests for ORCA2_ICE_PISCES
[7646]457    export TEST_NAME="REPRO_4_8"
[9658]458    cd ${MAIN_DIR}
[3520]459    cd ${SETTE_DIR}
[4252]460    . ./param.cfg
461    . ./all_functions.sh
462    . ./prepare_exe_dir.sh
[10755]463    set_valid_dir
[10698]464    clean_valid_dir
[3520]465    JOB_FILE=${EXE_DIR}/run_job.sh
[7646]466    NPROC=32
[4245]467    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]468    cd ${EXE_DIR}
[9019]469    set_namelist namelist_cfg cn_exp \"O2L3P_48\"
[4147]470    set_namelist namelist_cfg nn_it000 1
[13559]471    set_namelist namelist_cfg nn_itend ${ITEND}
[4147]472    set_namelist namelist_cfg jpni 4
[7646]473    set_namelist namelist_cfg jpnj 8
[10573]474    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
475    set_namelist namelist_cfg sn_cfctl%l_trcstat .true.
[10189]476    set_namelist namelist_cfg ln_wave .true.
477    set_namelist namelist_cfg ln_cdgw .true.
478    set_namelist namelist_cfg ln_sdw  .true.
479    set_namelist namelist_cfg nn_sdrift 1
480    set_namelist namelist_cfg ln_stcor .true.
481    set_namelist namelist_cfg ln_tauwoc .true.
482
[13568]483    if [ ${USING_ICEBERGS} == "no" ]  ; then set_namelist namelist_cfg ln_icebergs .false. ; fi
484    if [ ${USING_ICEBERGS} == "yes" ] ; then set_namelist namelist_cfg ln_icebergs .true. ; fi
485    if [ ${USING_EXTRA_HALO} == "no" ]  ; then set_namelist namelist_cfg nn_hls 1 ; fi
486    if [ ${USING_EXTRA_HALO} == "yes" ] ; then set_namelist namelist_cfg nn_hls 2 ; fi
[10687]487    # for debugging purposes set_namelist namelist_cfg rn_test_box -180.0, 180.0, -90.0, -55.0
488
[4147]489    set_namelist namelist_top_cfg ln_trcdta .false.
[12428]490    set_namelist namelist_top_cfg ln_trcbc  .false.
491    # put ln_ironsed, ln_hydrofe to false
[3520]492    # if not you need input files, and for tests is not necessary
[4147]493    set_namelist namelist_pisces_cfg ln_varpar .false.
494    set_namelist namelist_pisces_cfg ln_ironsed .false.
[7646]495    set_namelist namelist_pisces_cfg ln_ironice .false.
[4147]496    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[3680]497    # put ln_pisdmp to false : no restoring to global mean value
[4147]498    set_namelist namelist_pisces_cfg ln_pisdmp .false.
[4245]499    if [ ${USING_MPMD} == "yes" ] ; then
500       set_xio_using_server iodef.xml true
501    else
502       set_xio_using_server iodef.xml false
503    fi
[3520]504    cd ${SETTE_DIR}
[10755]505    . ./prepare_job.sh input_ORCA2_ICE_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[3520]506    cd ${SETTE_DIR}
[3532]507    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
[3520]508
509    cd ${SETTE_DIR}
[7646]510    export TEST_NAME="REPRO_8_4"
[4252]511    . ./prepare_exe_dir.sh
[10755]512    set_valid_dir
[10698]513    clean_valid_dir
[3680]514    JOB_FILE=${EXE_DIR}/run_job.sh
[7646]515    NPROC=32
[4245]516    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]517    cd ${EXE_DIR}
[9019]518    set_namelist namelist_cfg cn_exp \"O2L3P_84\"
[4147]519    set_namelist namelist_cfg nn_it000 1
[13559]520    set_namelist namelist_cfg nn_itend ${ITEND}
[7646]521    set_namelist namelist_cfg jpni 8
522    set_namelist namelist_cfg jpnj 4
[10573]523    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
524    set_namelist namelist_cfg sn_cfctl%l_trcstat .true.
[10189]525    set_namelist namelist_cfg ln_wave .true.
526    set_namelist namelist_cfg ln_cdgw .true.
527    set_namelist namelist_cfg ln_sdw  .true.
528    set_namelist namelist_cfg nn_sdrift 1
529    set_namelist namelist_cfg ln_stcor .true.
530    set_namelist namelist_cfg ln_tauwoc .true.
[10687]531
[13568]532    if [ ${USING_ICEBERGS} == "no" ]  ; then set_namelist namelist_cfg ln_icebergs .false. ; fi
533    if [ ${USING_ICEBERGS} == "yes" ] ; then set_namelist namelist_cfg ln_icebergs .true. ; fi
534    if [ ${USING_EXTRA_HALO} == "no" ]  ; then set_namelist namelist_cfg nn_hls 1 ; fi
535    if [ ${USING_EXTRA_HALO} == "yes" ] ; then set_namelist namelist_cfg nn_hls 2 ; fi
[10687]536    # for debugging purposes set_namelist namelist_cfg rn_test_box -180.0, 180.0, -90.0, -55.0
537
[4147]538    set_namelist namelist_top_cfg ln_trcdta .false.
[12428]539    set_namelist namelist_top_cfg ln_trcbc  .false.
540    # put ln_ironsed, ln_hydrofe to false
[3520]541    # if not you need input files, and for tests is not necessary
[4147]542    set_namelist namelist_pisces_cfg ln_varpar .false.
543    set_namelist namelist_pisces_cfg ln_ironsed .false.
[7646]544    set_namelist namelist_pisces_cfg ln_ironice .false.
[4147]545    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[3680]546    # put ln_pisdmp to false : no restoring to global mean value
[4147]547    set_namelist namelist_pisces_cfg ln_pisdmp .false.
[4245]548    if [ ${USING_MPMD} == "yes" ] ; then
549       set_xio_using_server iodef.xml true
550    else
551       set_xio_using_server iodef.xml false
552    fi
[3520]553    cd ${SETTE_DIR}
[10755]554    . ./prepare_job.sh input_ORCA2_ICE_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[3520]555    cd ${SETTE_DIR}
556    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
557fi
558
[9518]559# ----------------
560# ORCA2_OFF_PISCES
561# ----------------
[13568]562if [ ${config} == "ORCA2_OFF_PISCES" ] && [ ${DO_RESTART} == "1" ] ;  then
[9518]563## Restartability tests for ORCA2_OFF_PISCES
[13559]564    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
565    then
566   ITEND=16   # 4 days
567    else
568   ITEND=380  # 95 days
569    fi
570    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) )
[3520]571    export TEST_NAME="LONG"
[9658]572    cd ${MAIN_DIR}
[12569]573    #
574    # syncronisation if target directory/file exist (not done by makenemo)
575    . ${SETTE_DIR}/all_functions.sh
576    sync_config  ORCA2_OFF_PISCES ORCA2_OFF_PISCES_ST 'cfgs'
577    clean_config ORCA2_OFF_PISCES ORCA2_OFF_PISCES_ST 'cfgs'
578    #
[11497]579    . ./makenemo -m ${CMP_NAM} -n ORCA2_OFF_PISCES_ST -r ORCA2_OFF_PISCES -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
[3520]580    cd ${SETTE_DIR}
[4252]581    . ./param.cfg
582    . ./all_functions.sh
583    . ./prepare_exe_dir.sh
[10755]584    set_valid_dir
[10698]585    clean_valid_dir
[3520]586    JOB_FILE=${EXE_DIR}/run_job.sh
[7646]587    NPROC=32
[4245]588    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]589    cd ${EXE_DIR}
[4147]590    set_namelist namelist_cfg cn_exp \"OFFP_LONG\"
591    set_namelist namelist_cfg nn_it000 1
[13559]592    set_namelist namelist_cfg nn_itend ${ITEND}
593    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
[7646]594    set_namelist namelist_cfg jpni 4
595    set_namelist namelist_cfg jpnj 8
[10573]596    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
597    set_namelist namelist_cfg sn_cfctl%l_trcstat .true.
[9904]598    set_namelist namelist_cfg ln_qsr_rgb .true.
[4147]599    set_namelist namelist_top_cfg ln_trcdta .false.
[12428]600    set_namelist namelist_top_cfg ln_trcbc  .false.
601    # put ln_ironsed, ln_hydrofe to false
[3520]602    # if not you need input files, and for tests is not necessary
[4147]603    set_namelist namelist_pisces_cfg ln_varpar .false.
604    set_namelist namelist_pisces_cfg ln_ironsed .false.
[7646]605    set_namelist namelist_pisces_cfg ln_ironice .false.
[4147]606    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[3680]607    # put ln_pisdmp to false : no restoring to global mean value
[4147]608    set_namelist namelist_pisces_cfg ln_pisdmp .false.
[4245]609    if [ ${USING_MPMD} == "yes" ] ; then
610       set_xio_using_server iodef.xml true
611    else
612       set_xio_using_server iodef.xml false
613    fi
[3520]614    cd ${SETTE_DIR}
[10755]615    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[3520]616   
617    cd ${SETTE_DIR}
618    export TEST_NAME="SHORT"
[4252]619    . ./prepare_exe_dir.sh
[10755]620    set_valid_dir
[10698]621    clean_valid_dir
[3520]622    cd ${EXE_DIR}
[4147]623    set_namelist namelist_cfg cn_exp \"OFFP_SHORT\"
[13559]624    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
625    set_namelist namelist_cfg nn_itend ${ITEND}
626    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
[7646]627    set_namelist namelist_cfg jpni 4
628    set_namelist namelist_cfg jpnj 8
[10573]629    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
630    set_namelist namelist_cfg sn_cfctl%l_trcstat .true.
[9904]631    set_namelist namelist_cfg ln_qsr_rgb .true.
[4147]632    set_namelist namelist_top_cfg ln_rsttr .true.
633    set_namelist namelist_top_cfg nn_rsttr 2
[13559]634    set_namelist namelist_top_cfg cn_trcrst_in \"OFFP_LONG_${ITRST}_restart_trc\"
[3537]635    for (( i=1; i<=$NPROC; i++)) ; do
636        L_NPROC=$(( $i - 1 ))
637        L_NPROC=`printf "%04d\n" ${L_NPROC}`
[13559]638        ln -sf ../LONG/OFFP_LONG_${ITRST}_restart_trc_${L_NPROC}.nc .
[3537]639    done
[12428]640    set_namelist namelist_top_cfg ln_trcbc  .false.
641    # put ln_ironsed, ln_hydrofe to false
[3520]642    # if not you need input files, and for tests is not necessary
[4147]643    set_namelist namelist_pisces_cfg ln_varpar .false.
644    set_namelist namelist_pisces_cfg ln_ironsed .false.
[7646]645    set_namelist namelist_pisces_cfg ln_ironice .false.
[4147]646    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[3680]647    # put ln_pisdmp to false : no restoring to global mean value
[4147]648    set_namelist namelist_pisces_cfg ln_pisdmp .false.
[4245]649    if [ ${USING_MPMD} == "yes" ] ; then
650       set_xio_using_server iodef.xml true
651    else
652       set_xio_using_server iodef.xml false
653    fi
[3520]654    cd ${SETTE_DIR}
[10755]655    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME}  ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[3520]656    cd ${SETTE_DIR}
657    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
658
[13568]659fi
660
661if [ ${config} == "ORCA2_OFF_PISCES" ] && [ ${DO_REPRO} == "1" ] ;  then
[9518]662## Reproducibility tests for ORCA2_OFF_PISCES
[7646]663    export TEST_NAME="REPRO_4_8"
[9658]664    cd ${MAIN_DIR}
[3520]665    cd ${SETTE_DIR}
[4252]666    . ./param.cfg
667    . ./all_functions.sh
668    . ./prepare_exe_dir.sh
[10755]669    set_valid_dir
[10698]670    clean_valid_dir
[3520]671    JOB_FILE=${EXE_DIR}/run_job.sh
[7646]672    NPROC=32
[4245]673    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]674    cd ${EXE_DIR}
[9019]675    set_namelist namelist_cfg cn_exp \"OFFP_48\"
[4147]676    set_namelist namelist_cfg nn_it000 1
[13559]677    set_namelist namelist_cfg nn_itend ${ITEND}
[4147]678    set_namelist namelist_cfg jpni 4
[7646]679    set_namelist namelist_cfg jpnj 8
[10573]680    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
681    set_namelist namelist_cfg sn_cfctl%l_trcstat .true.
[9904]682    set_namelist namelist_cfg ln_qsr_rgb .true.
[4147]683    set_namelist namelist_top_cfg ln_trcdta .false.
[12428]684    set_namelist namelist_top_cfg ln_trcbc  .false.
685    # put ln_ironsed, ln_hydrofe to false
[3520]686    # if not you need input files, and for tests is not necessary
[4147]687    set_namelist namelist_pisces_cfg ln_varpar .false.
688    set_namelist namelist_pisces_cfg ln_ironsed .false.
[7646]689    set_namelist namelist_pisces_cfg ln_ironice .false.
[4147]690    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[3680]691    # put ln_pisdmp to false : no restoring to global mean value
[4147]692    set_namelist namelist_pisces_cfg ln_pisdmp .false.
[4245]693    if [ ${USING_MPMD} == "yes" ] ; then
694       set_xio_using_server iodef.xml true
695    else
696       set_xio_using_server iodef.xml false
697    fi
[3520]698    cd ${SETTE_DIR}
[10755]699    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[3520]700    cd ${SETTE_DIR}
[3532]701    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
[3520]702
703    cd ${SETTE_DIR}
[7646]704    export TEST_NAME="REPRO_8_4"
[4252]705    . ./prepare_exe_dir.sh
[10755]706    set_valid_dir
[10698]707    clean_valid_dir
[3680]708    JOB_FILE=${EXE_DIR}/run_job.sh
[7646]709    NPROC=32
[4245]710    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]711    cd ${EXE_DIR}
[9019]712    set_namelist namelist_cfg cn_exp \"OFFP_84\"
[4147]713    set_namelist namelist_cfg nn_it000 1
[13559]714    set_namelist namelist_cfg nn_itend ${ITEND}
[7646]715    set_namelist namelist_cfg jpni 8
716    set_namelist namelist_cfg jpnj 4
[10573]717    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
718    set_namelist namelist_cfg sn_cfctl%l_trcstat .true.
[9904]719    set_namelist namelist_cfg ln_qsr_rgb .true.
[4147]720    set_namelist namelist_top_cfg ln_trcdta .false.
[12428]721    set_namelist namelist_top_cfg ln_trcbc  .false.
722    # put ln_ironsed, ln_hydrofe to false
[3520]723    # if not you need input files, and for tests is not necessary
[4147]724    set_namelist namelist_pisces_cfg ln_varpar .false.
725    set_namelist namelist_pisces_cfg ln_ironsed .false.
[7646]726    set_namelist namelist_pisces_cfg ln_ironice .false.
[4147]727    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[3680]728    # put ln_pisdmp to false : no restoring to global mean value
[4147]729    set_namelist namelist_pisces_cfg ln_pisdmp .false.
[4245]730    if [ ${USING_MPMD} == "yes" ] ; then
731       set_xio_using_server iodef.xml true
732    else
733       set_xio_using_server iodef.xml false
734    fi
[3520]735    cd ${SETTE_DIR}
[10755]736    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[3520]737    cd ${SETTE_DIR}
738    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
739fi
740
[9518]741# -----
742# AMM12
743# -----
[13568]744if [ ${config} == "AMM12" ] && [ ${DO_RESTART} == "1" ] ;  then
[3532]745    ## Restartability tests for AMM12
[13559]746    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
747    then
748   ITEND=12   # 3 h
749    else
750   ITEND=576  # 4 days
751    fi
752    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) )
[3532]753    export TEST_NAME="LONG"
[9658]754    cd ${MAIN_DIR}
[12569]755    #
756    # syncronisation if target directory/file exist (not done by makenemo)
757    . ${SETTE_DIR}/all_functions.sh
758    sync_config  AMM12 AMM12_ST 'cfgs'
759    clean_config AMM12 AMM12_ST 'cfgs'
760    #
[11497]761    . ./makenemo -m ${CMP_NAM} -n AMM12_ST -r AMM12 -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
[3520]762    cd ${SETTE_DIR}
[4252]763    . ./param.cfg
764    . ./all_functions.sh
765    . ./prepare_exe_dir.sh
[10755]766    set_valid_dir
[10698]767    clean_valid_dir
[3520]768    JOB_FILE=${EXE_DIR}/run_job.sh
769    NPROC=32
[4245]770    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]771    cd ${EXE_DIR}
[9019]772    set_namelist namelist_cfg cn_exp \"AMM12_LONG\"
[4147]773    set_namelist namelist_cfg nn_it000 1
[13559]774    set_namelist namelist_cfg nn_itend ${ITEND}
775    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
[7646]776    set_namelist namelist_cfg jpni 4
777    set_namelist namelist_cfg jpnj 8
[10573]778    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[4245]779    if [ ${USING_MPMD} == "yes" ] ; then
780       set_xio_using_server iodef.xml true
781    else
782       set_xio_using_server iodef.xml false
783    fi
[3520]784    cd ${SETTE_DIR}
[10755]785    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[3520]786
787    cd ${SETTE_DIR}
[3532]788    export TEST_NAME="SHORT"
[4379]789    . ./prepare_exe_dir.sh
[10755]790    set_valid_dir
[10698]791    clean_valid_dir
[3520]792    cd ${EXE_DIR}
[9019]793    set_namelist namelist_cfg cn_exp \"AMM12_SHORT\"
[13559]794    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
795    set_namelist namelist_cfg nn_itend ${ITEND}
796    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
[7646]797    set_namelist namelist_cfg jpni 4
798    set_namelist namelist_cfg jpnj 8
[10573]799    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[4147]800    set_namelist namelist_cfg ln_rstart .true.
801    set_namelist namelist_cfg nn_rstctl 2
[13559]802    set_namelist namelist_cfg cn_ocerst_in \"AMM12_LONG_${ITRST}_restart\"
[4252]803    set_namelist namelist_cfg nn_date0 20120102
[3537]804    for (( i=1; i<=$NPROC; i++)) ; do
805        L_NPROC=$(( $i - 1 ))
806        L_NPROC=`printf "%04d\n" ${L_NPROC}`
[13559]807        ln -sf ../LONG/AMM12_LONG_${ITRST}_restart_${L_NPROC}.nc .
[3537]808    done
[4245]809    if [ ${USING_MPMD} == "yes" ] ; then
810       set_xio_using_server iodef.xml true
811    else
812       set_xio_using_server iodef.xml false
813    fi
[3520]814    cd ${SETTE_DIR}
[10755]815    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[3520]816    cd ${SETTE_DIR}
[3532]817    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
[3520]818
[13568]819fi
820
821if [ ${config} == "AMM12" ] && [ ${DO_REPRO} == "1" ] ;  then
[3680]822## Reproducibility tests for AMM12
823    export TEST_NAME="REPRO_8_4"
[9658]824    cd ${MAIN_DIR}
[3520]825    cd ${SETTE_DIR}
[4252]826    . ./param.cfg
827    . ./all_functions.sh
828    . ./prepare_exe_dir.sh
[10755]829    set_valid_dir
[10698]830    clean_valid_dir
[3520]831    JOB_FILE=${EXE_DIR}/run_job.sh
832    NPROC=32
[4245]833    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]834    cd ${EXE_DIR}
[9019]835    set_namelist namelist_cfg cn_exp \"AMM12_84\"
[4147]836    set_namelist namelist_cfg nn_it000 1
[13559]837    set_namelist namelist_cfg nn_itend ${ITEND}
[4147]838    set_namelist namelist_cfg jpni 8
839    set_namelist namelist_cfg jpnj 4
[10573]840    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[4245]841    if [ ${USING_MPMD} == "yes" ] ; then
842       set_xio_using_server iodef.xml true
843    else
844       set_xio_using_server iodef.xml false
845    fi
[3520]846    cd ${SETTE_DIR}
[10755]847    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[3520]848    cd ${SETTE_DIR}
849    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
850
851    cd ${SETTE_DIR}
[3680]852    export TEST_NAME="REPRO_4_8"
[4252]853    . ./prepare_exe_dir.sh
[10755]854    set_valid_dir
[10698]855    clean_valid_dir
[5478]856    JOB_FILE=${EXE_DIR}/run_job.sh
857    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]858    cd ${EXE_DIR}
[9019]859    set_namelist namelist_cfg cn_exp \"AMM12_48\"
[4147]860    set_namelist namelist_cfg nn_it000 1
[13559]861    set_namelist namelist_cfg nn_itend ${ITEND}
[4147]862    set_namelist namelist_cfg jpni 4
863    set_namelist namelist_cfg jpnj 8
[10573]864    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[4245]865    if [ ${USING_MPMD} == "yes" ] ; then
866       set_xio_using_server iodef.xml true
867    else
868       set_xio_using_server iodef.xml false
869    fi
[3520]870    cd ${SETTE_DIR}
[10755]871    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[3520]872    cd ${SETTE_DIR}
[3532]873    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
[3520]874fi
875
876
[9518]877# ---------
878# ORCA2_SAS
879# ---------
[13568]880if [ ${config} == "SAS" ] && [ ${DO_RESTART} == "1" ] ;  then
[9518]881## Restartability tests
[13559]882    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
883    then
884   ITEND=16   # 1 day
885    else
886   ITEND=256  # 16 days
887    fi
888    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) )
[4147]889    export TEST_NAME="LONG"
[9658]890    cd ${MAIN_DIR}
[12569]891    #
892    # syncronisation if target directory/file exist (not done by makenemo)
893    . ${SETTE_DIR}/all_functions.sh
894    sync_config  ORCA2_SAS_ICE ORCA2_SAS_ICE_ST 'cfgs'
895    clean_config ORCA2_SAS_ICE ORCA2_SAS_ICE_ST 'cfgs'
896    #
[11497]897    . ./makenemo -m ${CMP_NAM} -n ORCA2_SAS_ICE_ST -r ORCA2_SAS_ICE -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
[4147]898    cd ${SETTE_DIR}
[4252]899    . ./param.cfg
900    . ./all_functions.sh
901    . ./prepare_exe_dir.sh
[10755]902    set_valid_dir
[10698]903    clean_valid_dir
[4147]904    JOB_FILE=${EXE_DIR}/run_job.sh
905    NPROC=32
[7646]906    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[4147]907    cd ${EXE_DIR}
908    set_namelist namelist_cfg cn_exp \"SAS\"
909    set_namelist namelist_cfg nn_it000 1
[13559]910    set_namelist namelist_cfg nn_itend ${ITEND}
911    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
[7646]912    set_namelist namelist_cfg jpni 4
913    set_namelist namelist_cfg jpnj 8
[10573]914    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[9019]915    set_namelist namelist_ice_cfg ln_icediachk .true.
[4245]916    if [ ${USING_MPMD} == "yes" ] ; then
917       set_xio_using_server iodef.xml true
918    else
919       set_xio_using_server iodef.xml false
920    fi
[4147]921    cd ${SETTE_DIR}
[10755]922    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[4147]923
924    cd ${SETTE_DIR}
925    export TEST_NAME="SHORT"
[4252]926    . ./prepare_exe_dir.sh
[10755]927    set_valid_dir
[10698]928    clean_valid_dir
[4147]929    cd ${EXE_DIR}
930    set_namelist namelist_cfg cn_exp \"SAS\"
[13559]931    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
932    set_namelist namelist_cfg nn_itend ${ITEND}
933    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
[7646]934    set_namelist namelist_cfg jpni 4
935    set_namelist namelist_cfg jpnj 8
[10573]936    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[7646]937    set_namelist namelist_cfg ln_rstart .true.
[4147]938    set_namelist namelist_cfg nn_rstctl 2
[9019]939    set_namelist namelist_cfg nn_date0 010109
[13559]940    set_namelist namelist_cfg cn_ocerst_in \"SAS_${ITRST}_restart\"
941    set_namelist namelist_ice_cfg cn_icerst_in \"SAS_${ITRST}_restart_ice\"
[4245]942    if [ ${USING_MPMD} == "yes" ] ; then
943       set_xio_using_server iodef.xml true
944    else
945       set_xio_using_server iodef.xml false
946    fi
[7646]947    for (( i=1; i<=$NPROC; i++)) ; do
948        L_NPROC=$(( $i - 1 ))
949        L_NPROC=`printf "%04d\n" ${L_NPROC}`
[13559]950        ln -sf ../LONG/SAS_${ITRST}_restart_${L_NPROC}.nc .
951        ln -sf ../LONG/SAS_${ITRST}_restart_ice_${L_NPROC}.nc .
[7646]952    done
[4147]953    cd ${SETTE_DIR}
[10755]954    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[4147]955    cd ${SETTE_DIR}
956    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
957
[13568]958fi
959
960if [ ${config} == "SAS" ] && [ ${DO_REPRO} == "1" ] ;  then
[9518]961## Reproducibility tests
[13559]962    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
963    then
964   ITEND=16  # 1 day
965    else
966   ITEND=80  # 5 days
967    fi
[9518]968    export TEST_NAME="REPRO_4_8"
[9658]969    cd ${MAIN_DIR}
[4990]970    cd ${SETTE_DIR}
971    . ./param.cfg
972    . ./all_functions.sh
973    . ./prepare_exe_dir.sh
[10755]974    set_valid_dir
[10698]975    clean_valid_dir
[4990]976    JOB_FILE=${EXE_DIR}/run_job.sh
[9518]977    NPROC=32
[4990]978    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
979    cd ${EXE_DIR}
[9518]980    set_namelist namelist_cfg cn_exp \"SAS_48\"
[4990]981    set_namelist namelist_cfg nn_it000 1
[13559]982    set_namelist namelist_cfg nn_itend ${ITEND}
[9518]983    set_namelist namelist_cfg jpni 4
984    set_namelist namelist_cfg jpnj 8
[10573]985    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[4990]986    if [ ${USING_MPMD} == "yes" ] ; then
987       set_xio_using_server iodef.xml true
988    else
989       set_xio_using_server iodef.xml false
990    fi
991    cd ${SETTE_DIR}
[10755]992    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[4990]993    cd ${SETTE_DIR}
994    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
[9019]995
[4990]996    cd ${SETTE_DIR}
[7646]997    export TEST_NAME="REPRO_8_4"
[4990]998    . ./prepare_exe_dir.sh
[10755]999    set_valid_dir
[10698]1000    clean_valid_dir
[4990]1001    JOB_FILE=${EXE_DIR}/run_job.sh
[7646]1002    NPROC=32
[4990]1003    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1004    cd ${EXE_DIR}
[9518]1005    set_namelist namelist_cfg cn_exp \"SAS_84\"
[4990]1006    set_namelist namelist_cfg nn_it000 1
[13559]1007    set_namelist namelist_cfg nn_itend ${ITEND}
[7646]1008    set_namelist namelist_cfg jpni 8
1009    set_namelist namelist_cfg jpnj 4
[10573]1010    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[4990]1011    if [ ${USING_MPMD} == "yes" ] ; then
1012       set_xio_using_server iodef.xml true
1013    else
1014       set_xio_using_server iodef.xml false
1015    fi
1016    cd ${SETTE_DIR}
[10755]1017    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[4990]1018    cd ${SETTE_DIR}
1019    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1020
1021fi
1022
[9518]1023
1024# --------------
[9663]1025# ORCA2_ICE_OBS
[9518]1026# --------------
[4990]1027## Test assimilation interface code, OBS and ASM for reproducibility
1028## Restartability not tested (ASM code not restartable while increments are being applied)
[13568]1029if [ ${config} == "ORCA2_ICE_OBS" ] && [ ${DO_RESTART} == "1" ] ;  then
[9518]1030## Reproducibility tests
[13559]1031    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
1032    then
1033   ITEND=16  # 1 day
1034    else
1035   ITEND=80  # 5 days
1036    fi
[7646]1037    export TEST_NAME="REPRO_4_8"
[9658]1038    cd ${MAIN_DIR}
[12569]1039    #
1040    # syncronisation if target directory/file exist (not done by makenemo)
1041    . ${SETTE_DIR}/all_functions.sh
1042    sync_config  ORCA2_ICE_PISCES ORCA2_ICE_OBS_ST 'cfgs'
1043    clean_config ORCA2_ICE_PISCES ORCA2_ICE_OBS_ST 'cfgs'
1044    #
[13507]1045    . ./makenemo -m ${CMP_NAM} -n ORCA2_ICE_OBS_ST -r ORCA2_ICE_PISCES -d "OCE ICE"  -j 8 add_key "key_asminc ${ADD_KEYS}" del_key "key_top ${DEL_KEYS}"
[4990]1046    cd ${SETTE_DIR}
1047    . ./param.cfg
1048    . ./all_functions.sh
1049    . ./prepare_exe_dir.sh
[10755]1050    set_valid_dir
[10698]1051    clean_valid_dir
[4990]1052    JOB_FILE=${EXE_DIR}/run_job.sh
[7646]1053    NPROC=32
[4990]1054    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1055    cd ${EXE_DIR}
[9019]1056    set_namelist namelist_cfg cn_exp \"O2L3OBS_48\"
[4990]1057    set_namelist namelist_cfg nn_it000 1
[13559]1058    set_namelist namelist_cfg nn_itend ${ITEND}
[7646]1059    set_namelist namelist_cfg ln_read_cfg .true.
[4990]1060    set_namelist namelist_cfg jpni 4
[7646]1061    set_namelist namelist_cfg jpnj 8
[10573]1062    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
1063    set_namelist namelist_cfg sn_cfctl%l_trcstat .true.
[6140]1064    set_namelist namelist_cfg ln_diaobs .true.
[4990]1065    set_namelist namelist_cfg ln_t3d .true.
1066    set_namelist namelist_cfg ln_s3d .true.
1067    set_namelist namelist_cfg ln_sst .true.
1068    set_namelist namelist_cfg ln_sla .true.
[6140]1069    set_namelist namelist_cfg ln_sic .true.
1070    set_namelist namelist_cfg ln_vel3d .true.
[4990]1071    set_namelist namelist_cfg ln_bkgwri .true.
1072    set_namelist namelist_cfg ln_trainc .true.
1073    set_namelist namelist_cfg ln_dyninc .true.
1074    set_namelist namelist_cfg ln_sshinc .true.
1075    set_namelist namelist_cfg ln_asmiau .true.
[9663]1076    #remove all useless options for pisces (due to ORCA2_ICE_PISCES reference configuration)
[7722]1077    set_namelist namelist_top_cfg ln_trcdta .false.
[12428]1078    set_namelist namelist_top_cfg ln_trcbc  .false.
[7722]1079    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
1080    # if not you need input files, and for tests is not necessary
1081    set_namelist namelist_pisces_cfg ln_varpar .false.
1082    set_namelist namelist_pisces_cfg ln_ironsed .false.
1083    set_namelist namelist_pisces_cfg ln_ironice .false.
1084    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[4990]1085    if [ ${USING_MPMD} == "yes" ] ; then
1086       set_xio_using_server iodef.xml true
1087    else
1088       set_xio_using_server iodef.xml false
1089    fi
1090    cd ${SETTE_DIR}
[10755]1091    . ./prepare_job.sh input_ORCA2_ICE_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[4990]1092    cd ${SETTE_DIR}
1093    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1094
1095   cd ${SETTE_DIR}
[7646]1096    export TEST_NAME="REPRO_8_4"
[4990]1097    . ./prepare_exe_dir.sh
[10755]1098    set_valid_dir
[10698]1099    clean_valid_dir
[4990]1100    JOB_FILE=${EXE_DIR}/run_job.sh
[7646]1101    NPROC=32
[4990]1102    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1103    cd ${EXE_DIR}
[9019]1104    set_namelist namelist_cfg cn_exp \"O2L3OBS_84\"
[4990]1105    set_namelist namelist_cfg nn_it000 1
[13559]1106    set_namelist namelist_cfg nn_itend ${ITEND}
[7646]1107    set_namelist namelist_cfg ln_read_cfg .true.
1108    set_namelist namelist_cfg jpni 8
1109    set_namelist namelist_cfg jpnj 4
[10573]1110    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
1111    set_namelist namelist_cfg sn_cfctl%l_trcstat .true.
[6140]1112    set_namelist namelist_cfg ln_diaobs .true.
[4990]1113    set_namelist namelist_cfg ln_t3d .true.
1114    set_namelist namelist_cfg ln_s3d .true.
1115    set_namelist namelist_cfg ln_sst .true.
1116    set_namelist namelist_cfg ln_sla .true.
[6140]1117    set_namelist namelist_cfg ln_sic .true.
1118    set_namelist namelist_cfg ln_vel3d .true.
[4990]1119    set_namelist namelist_cfg ln_bkgwri .true.
1120    set_namelist namelist_cfg ln_trainc .true.
1121    set_namelist namelist_cfg ln_dyninc .true.
1122    set_namelist namelist_cfg ln_sshinc .true.
1123    set_namelist namelist_cfg ln_asmiau .true.
[9663]1124    #remove all useless options for pisces (due to ORCA2_ICE_PISCES reference configuration)
[7722]1125    set_namelist namelist_top_cfg ln_trcdta .false.
[12428]1126    set_namelist namelist_top_cfg ln_trcbc  .false.
[7722]1127    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
1128    # if not you need input files, and for tests is not necessary
1129    set_namelist namelist_pisces_cfg ln_varpar .false.
1130    set_namelist namelist_pisces_cfg ln_ironsed .false.
1131    set_namelist namelist_pisces_cfg ln_ironice .false.
1132    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[4990]1133    if [ ${USING_MPMD} == "yes" ] ; then
1134       set_xio_using_server iodef.xml true
1135    else
1136       set_xio_using_server iodef.xml false
1137    fi
1138    cd ${SETTE_DIR}
[10755]1139    . ./prepare_job.sh input_ORCA2_ICE_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[4990]1140    cd ${SETTE_DIR}
1141    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1142fi
[5589]1143
[9483]1144# ------------
[9663]1145# AGRIF ICE
[9483]1146# -----------
[13568]1147if [ ${config} == "AGRIF" ] && [ ${DO_RESTART} == "1" ] ;  then
[9518]1148## Restartability tests
[13559]1149    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
1150    then
1151   ITEND=4   # 6h
1152    else
1153   ITEND=20  # 1d and 6h
1154    fi
1155    ITRST=$(   printf "%08d" $(( ${ITEND} / 2 )) )
1156    ITRST_1=$( printf "%08d" $(( ${ITEND} / 2 )) )
1157    ITRST_2=$( printf "%08d" $(( ${ITEND} * 4 / 2 )) )
1158    ITRST_3=$( printf "%08d" $(( ${ITEND} * 4 * 3 / 2 )) )
[9483]1159    export TEST_NAME="LONG"
[9658]1160    cd ${MAIN_DIR}
[12569]1161    #
1162    # syncronisation if target directory/file exist (not done by makenemo)
1163    . ${SETTE_DIR}/all_functions.sh
1164    sync_config  AGRIF_DEMO AGRIF_DEMO_ST 'cfgs'
1165    clean_config AGRIF_DEMO AGRIF_DEMO_ST 'cfgs'
1166    #
[11497]1167    . ./makenemo -m ${CMP_NAM} -n AGRIF_DEMO_ST -r AGRIF_DEMO -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
[9483]1168    cd ${SETTE_DIR}
1169    . ./param.cfg
1170    . ./all_functions.sh
1171    . ./prepare_exe_dir.sh
[10755]1172    set_valid_dir
[10698]1173    clean_valid_dir
[9483]1174    JOB_FILE=${EXE_DIR}/run_job.sh
[9776]1175    NPROC=16
[9483]1176    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1177    cd ${EXE_DIR}
1178    set_namelist namelist_cfg cn_exp \"AGRIF_LONG\"
1179    set_namelist namelist_cfg nn_it000 1
[13559]1180    set_namelist namelist_cfg nn_itend ${ITEND}
1181    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
[10573]1182    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[9483]1183    set_namelist 1_namelist_cfg cn_exp \"AGRIF_LONG\"
1184    set_namelist 1_namelist_cfg nn_it000 1
[13559]1185    set_namelist 1_namelist_cfg nn_itend ${ITEND}
1186    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} / 2 ))
[10573]1187    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
[9483]1188    set_namelist 2_namelist_cfg cn_exp \"AGRIF_LONG\"
1189    set_namelist 2_namelist_cfg nn_it000 1
[13559]1190    set_namelist 2_namelist_cfg nn_itend $(( ${ITEND} * 4 ))
1191    set_namelist 2_namelist_cfg nn_stock $(( ${ITEND} * 4 / 2 ))
[10573]1192    set_namelist 2_namelist_cfg sn_cfctl%l_runstat .true.
[9776]1193    set_namelist 3_namelist_cfg cn_exp \"AGRIF_LONG\"
1194    set_namelist 3_namelist_cfg nn_it000 1
[13559]1195    set_namelist 3_namelist_cfg nn_itend $(( ${ITEND} * 4 * 3 ))
1196    set_namelist 3_namelist_cfg nn_stock $(( ${ITEND} * 4 * 3 / 2 ))
[10573]1197    set_namelist 3_namelist_cfg sn_cfctl%l_runstat .true.
[9507]1198
[9483]1199    if [ ${USING_MPMD} == "yes" ] ; then
1200       set_xio_using_server iodef.xml true
1201    else
1202       set_xio_using_server iodef.xml false
1203    fi
1204    cd ${SETTE_DIR}
[10755]1205    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[9483]1206   
1207    cd ${SETTE_DIR}
1208    export TEST_NAME="SHORT"
1209    . ./prepare_exe_dir.sh
[10755]1210    set_valid_dir
[10698]1211    clean_valid_dir
[9483]1212    cd ${EXE_DIR}
1213    set_namelist namelist_cfg cn_exp \"AGRIF_SHORT\"
[13559]1214    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
1215    set_namelist namelist_cfg nn_itend ${ITEND}
1216    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
[10573]1217    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[9483]1218    set_namelist namelist_cfg ln_rstart .true.
1219    set_namelist namelist_cfg nn_rstctl 2
1220    set_namelist 1_namelist_cfg cn_exp \"AGRIF_SHORT\"
[13559]1221    set_namelist 1_namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
1222    set_namelist 1_namelist_cfg nn_itend ${ITEND}
1223    set_namelist 1_namelist_cfg nn_stock $(( ${ITEND} / 2 ))
[10573]1224    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
[9483]1225    set_namelist 1_namelist_cfg ln_rstart .true.
1226    set_namelist 1_namelist_cfg nn_rstctl 2
1227    set_namelist 2_namelist_cfg cn_exp \"AGRIF_SHORT\"
[13559]1228    set_namelist 2_namelist_cfg nn_it000 $(( ${ITEND} * 4 / 2 + 1 ))
1229    set_namelist 2_namelist_cfg nn_itend $(( ${ITEND} * 4 ))
1230    set_namelist 2_namelist_cfg nn_stock $(( ${ITEND} * 4 / 2 ))
[10573]1231    set_namelist 2_namelist_cfg sn_cfctl%l_runstat .true.
[9483]1232    set_namelist 2_namelist_cfg ln_rstart .true.
1233    set_namelist 2_namelist_cfg nn_rstctl 2
[9776]1234    set_namelist 3_namelist_cfg cn_exp \"AGRIF_SHORT\"
[13559]1235    set_namelist 3_namelist_cfg nn_it000 $(( ${ITEND} * 4 * 3 / 2 + 1 ))
1236    set_namelist 3_namelist_cfg nn_itend $(( ${ITEND} * 4 * 3 ))
1237    set_namelist 3_namelist_cfg nn_stock $(( ${ITEND} * 4 * 3 / 2 ))
[10573]1238    set_namelist 3_namelist_cfg sn_cfctl%l_runstat .true.
[9776]1239    set_namelist 3_namelist_cfg ln_rstart .true.
1240    set_namelist 3_namelist_cfg nn_rstctl 2
[13559]1241    set_namelist namelist_cfg cn_ocerst_in \"AGRIF_LONG_${ITRST}_restart\"
1242    set_namelist namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_${ITRST}_restart_ice\"
1243    set_namelist 1_namelist_cfg cn_ocerst_in \"AGRIF_LONG_${ITRST_1}_restart\"
1244    set_namelist 1_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_${ITRST_1}_restart_ice\"
1245    set_namelist 2_namelist_cfg cn_ocerst_in \"AGRIF_LONG_${ITRST_2}_restart\"
1246    set_namelist 2_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_${ITRST_2}_restart_ice\"
1247    set_namelist 3_namelist_cfg cn_ocerst_in \"AGRIF_LONG_${ITRST_3}_restart\"
1248    set_namelist 3_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_${ITRST_3}_restart_ice\"
[9483]1249
1250    for (( i=1; i<=$NPROC; i++)) ; do
1251        L_NPROC=$(( $i - 1 ))
1252        L_NPROC=`printf "%04d\n" ${L_NPROC}`
[13559]1253        ln -sf ../LONG/AGRIF_LONG_${ITRST}_restart_${L_NPROC}.nc .
1254        ln -sf ../LONG/AGRIF_LONG_${ITRST}_restart_ice_${L_NPROC}.nc .
1255        ln -sf ../LONG/1_AGRIF_LONG_${ITRST_1}_restart_${L_NPROC}.nc .
1256        ln -sf ../LONG/1_AGRIF_LONG_${ITRST_1}_restart_ice_${L_NPROC}.nc .
1257        ln -sf ../LONG/2_AGRIF_LONG_${ITRST_2}_restart_${L_NPROC}.nc .
1258        ln -sf ../LONG/2_AGRIF_LONG_${ITRST_2}_restart_ice_${L_NPROC}.nc .
1259        ln -sf ../LONG/3_AGRIF_LONG_${ITRST_3}_restart_${L_NPROC}.nc .
1260        ln -sf ../LONG/3_AGRIF_LONG_${ITRST_3}_restart_ice_${L_NPROC}.nc .
[9483]1261    done
1262    if [ ${USING_MPMD} == "yes" ] ; then
1263       set_xio_using_server iodef.xml true
1264    else
1265       set_xio_using_server iodef.xml false
1266    fi
1267    cd ${SETTE_DIR}
[10755]1268    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[9483]1269    cd ${SETTE_DIR}
1270    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1271
[13568]1272fi
1273
1274if [ ${config} == "AGRIF" ] && [ ${DO_REPRO} == "1" ] ;  then
[9518]1275## Reproducibility tests
[11800]1276    export TEST_NAME="REPRO_2_8"
[9658]1277    cd ${MAIN_DIR}
[9483]1278    cd ${SETTE_DIR}
1279    . ./param.cfg
1280    . ./all_functions.sh
1281    . ./prepare_exe_dir.sh
[10755]1282    set_valid_dir
[10698]1283    clean_valid_dir
[9483]1284    JOB_FILE=${EXE_DIR}/run_job.sh
[11800]1285    NPROC=16
[9483]1286    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1287    cd ${EXE_DIR}
[11800]1288    set_namelist namelist_cfg cn_exp \"AGRIF_28\"
[9483]1289    set_namelist namelist_cfg nn_it000 1
[13559]1290    set_namelist namelist_cfg nn_itend ${ITEND}
[11800]1291    set_namelist namelist_cfg jpni 2
[9483]1292    set_namelist namelist_cfg jpnj 8
[10573]1293    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[11800]1294    set_namelist 1_namelist_cfg cn_exp \"AGRIF_28\"
[9483]1295    set_namelist 1_namelist_cfg nn_it000 1
[13559]1296    set_namelist 1_namelist_cfg nn_itend ${ITEND}
[11800]1297    set_namelist 1_namelist_cfg jpni 2
[9483]1298    set_namelist 1_namelist_cfg jpnj 8
[10573]1299    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
[11800]1300    set_namelist 2_namelist_cfg cn_exp \"AGRIF_28\"
[9483]1301    set_namelist 2_namelist_cfg nn_it000 1
[13559]1302    set_namelist 2_namelist_cfg nn_itend $(( ${ITEND} * 4 ))
[11800]1303    set_namelist 2_namelist_cfg jpni 2
[9483]1304    set_namelist 2_namelist_cfg jpnj 8
[10573]1305    set_namelist 2_namelist_cfg sn_cfctl%l_runstat .true.
[11800]1306    set_namelist 3_namelist_cfg cn_exp \"AGRIF_28\"
[9776]1307    set_namelist 3_namelist_cfg nn_it000 1
[13559]1308    set_namelist 3_namelist_cfg nn_itend $(( ${ITEND} * 4 * 3 ))
[11800]1309    set_namelist 3_namelist_cfg jpni 2
[9776]1310    set_namelist 3_namelist_cfg jpnj 8
[10573]1311    set_namelist 3_namelist_cfg sn_cfctl%l_runstat .true.
[9483]1312
1313    if [ ${USING_MPMD} == "yes" ] ; then
1314       set_xio_using_server iodef.xml true
1315    else
1316       set_xio_using_server iodef.xml false
1317    fi
1318    cd ${SETTE_DIR}
[10755]1319    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[9483]1320    cd ${SETTE_DIR}
1321    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1322
1323    cd ${SETTE_DIR}
[11800]1324    export TEST_NAME="REPRO_4_4"
[9483]1325    . ./prepare_exe_dir.sh
[10755]1326    set_valid_dir
[10698]1327    clean_valid_dir
[9483]1328    JOB_FILE=${EXE_DIR}/run_job.sh
[11800]1329    NPROC=16
[9483]1330    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1331    cd ${EXE_DIR}
[11800]1332    set_namelist namelist_cfg cn_exp \"AGRIF_44\"
[9483]1333    set_namelist namelist_cfg nn_it000 1
[13559]1334    set_namelist namelist_cfg nn_itend ${ITEND}
[11800]1335    set_namelist namelist_cfg jpni 4
[9483]1336    set_namelist namelist_cfg jpnj 4
[10573]1337    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[11800]1338    set_namelist 1_namelist_cfg cn_exp \"AGRIF_44\"
[9483]1339    set_namelist 1_namelist_cfg nn_it000 1
[13559]1340    set_namelist 1_namelist_cfg nn_itend ${ITEND}
[11800]1341    set_namelist 1_namelist_cfg jpni 4
[9483]1342    set_namelist 1_namelist_cfg jpnj 4
[10573]1343    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true.
[11800]1344    set_namelist 2_namelist_cfg cn_exp \"AGRIF_44\"
[9483]1345    set_namelist 2_namelist_cfg nn_it000 1
[13559]1346    set_namelist 2_namelist_cfg nn_itend $(( ${ITEND} * 4 ))
[11800]1347    set_namelist 2_namelist_cfg jpni 4
[9483]1348    set_namelist 2_namelist_cfg jpnj 4
[10573]1349    set_namelist 2_namelist_cfg sn_cfctl%l_runstat .true.
[12428]1350    set_namelist 3_namelist_cfg cn_exp \"AGRIF_44\"
[9776]1351    set_namelist 3_namelist_cfg nn_it000 1
[13559]1352    set_namelist 3_namelist_cfg nn_itend $(( ${ITEND} * 4 * 3 ))
[11800]1353    set_namelist 3_namelist_cfg jpni 4
[9776]1354    set_namelist 3_namelist_cfg jpnj 4
[10573]1355    set_namelist 3_namelist_cfg sn_cfctl%l_runstat .true.
[9483]1356
1357    if [ ${USING_MPMD} == "yes" ] ; then
1358       set_xio_using_server iodef.xml true
1359    else
1360       set_xio_using_server iodef.xml false
1361    fi
1362    cd ${SETTE_DIR}
[10755]1363    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[9483]1364    cd ${SETTE_DIR}
1365    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1366
[13568]1367fi
1368
1369if [ ${config} == "AGRIF" ] && [ ${DO_CORRUPT} == "1" ] ;  then
[9507]1370## test code corruption with AGRIF (phase 1) ==> Compile with key_agrif but run with no zoom
[13559]1371    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
1372    then
1373   ITEND=16   # 1d
1374    else
1375   ITEND=150  # 5d and 9h
1376    fi
[9507]1377    export TEST_NAME="ORCA2"
[9658]1378    cd ${MAIN_DIR}
[9483]1379    cd ${SETTE_DIR}
1380    . ./param.cfg
1381    . ./all_functions.sh
1382    . ./prepare_exe_dir.sh
[10755]1383    set_valid_dir
[10698]1384    clean_valid_dir
[9483]1385    JOB_FILE=${EXE_DIR}/run_job.sh
1386    NPROC=32
1387    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1388    cd ${EXE_DIR}
[9507]1389    set_namelist namelist_cfg cn_exp \"ORCA2\"
[9483]1390    set_namelist namelist_cfg nn_it000 1
[13559]1391    set_namelist namelist_cfg nn_itend ${ITEND}
[10573]1392    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[9507]1393
[9483]1394#   Set the number of fine grids to zero:   
1395    sed -i "1s/.*/0/" ${EXE_DIR}/AGRIF_FixedGrids.in
1396
1397    if [ ${USING_MPMD} == "yes" ] ; then
1398       set_xio_using_server iodef.xml true
1399    else
1400       set_xio_using_server iodef.xml false
1401    fi
1402    cd ${SETTE_DIR}
[10755]1403    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[9483]1404    cd ${SETTE_DIR}
1405    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1406
1407fi
1408
[9525]1409
[9776]1410## test code corruption with AGRIF (phase 2) ==> Compile without key_agrif (to be compared with AGRIF_DEMO_ST/ORCA2)
[13568]1411if [ ${config} == "AGRIF" ] && [ ${DO_CORRUPT} == "1" ] ;  then
[9507]1412    export TEST_NAME="ORCA2"
[9658]1413    cd ${MAIN_DIR}
[12569]1414    #
1415    # syncronisation if target directory/file exist (not done by makenemo)
1416    . ${SETTE_DIR}/all_functions.sh
1417    sync_config  AGRIF_DEMO AGRIF_DEMO_NOAGRIF_ST 'cfgs'
1418    clean_config AGRIF_DEMO AGRIF_DEMO_NOAGRIF_ST 'cfgs'
1419    #
[13507]1420    . ./makenemo -m ${CMP_NAM} -n AGRIF_DEMO_NOAGRIF_ST -r AGRIF_DEMO -j 8 add_key "${ADD_KEYS}" del_key "key_agrif ${DEL_KEYS}"
[9483]1421    cd ${SETTE_DIR}
1422    . ./param.cfg
1423    . ./all_functions.sh
1424    . ./prepare_exe_dir.sh
[10755]1425    set_valid_dir
[10698]1426    clean_valid_dir
[9483]1427    JOB_FILE=${EXE_DIR}/run_job.sh
1428    NPROC=32
1429    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1430    cd ${EXE_DIR}
[9507]1431    set_namelist namelist_cfg cn_exp \"ORCA2\"
[9483]1432    set_namelist namelist_cfg nn_it000 1
[13559]1433    set_namelist namelist_cfg nn_itend ${ITEND}
[10573]1434    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[9483]1435#
1436    if [ ${USING_MPMD} == "yes" ] ; then
1437       set_xio_using_server iodef.xml true
1438    else
1439       set_xio_using_server iodef.xml false
1440    fi
1441    cd ${SETTE_DIR}
[10755]1442    . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[9483]1443    cd ${SETTE_DIR}
1444    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1445
1446fi
1447
[9553]1448# -------
[13382]1449# WED025
[9553]1450# -------
[13568]1451if [ ${config} == "WED025" ] && [ ${DO_RESTART} == "1" ] ;  then
[9553]1452## Restartability tests
[13559]1453    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ]
1454    then
1455   ITEND=12   # 4h
1456    else
1457   ITEND=720  # 10 days
1458    fi
1459    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) )
[9553]1460    export TEST_NAME="LONG"
[9658]1461    cd ${MAIN_DIR}
[12569]1462    #
1463    # syncronisation if target directory/file exist (not done by makenemo)
1464    . ${SETTE_DIR}/all_functions.sh
[13382]1465    sync_config  WED025 WED025_ST 'cfgs'
1466    clean_config WED025 WED025_ST 'cfgs'
[12569]1467    #
[13382]1468    . ./makenemo -m ${CMP_NAM} -n WED025_ST -r WED025 -j 8 add_key "${ADD_KEYS}" del_key "${DEL_KEYS}"
[9553]1469    cd ${SETTE_DIR}
1470    . ./param.cfg
1471    . ./all_functions.sh
1472    . ./prepare_exe_dir.sh
[10755]1473    set_valid_dir
[10698]1474    clean_valid_dir
[9553]1475    JOB_FILE=${EXE_DIR}/run_job.sh
1476    NPROC=32
1477    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1478    cd ${EXE_DIR}
[13382]1479    set_namelist namelist_cfg cn_exp \"WED025_LONG\"
[9553]1480    set_namelist namelist_cfg nn_it000 1
[13559]1481    set_namelist namelist_cfg nn_itend ${ITEND}
1482    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
[13382]1483    set_namelist namelist_cfg nn_date0 20000115
[9553]1484    set_namelist namelist_cfg jpni 4
1485    set_namelist namelist_cfg jpnj 8
[10573]1486    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[9744]1487    #set_namelist namelist_ice_cfg ln_icediachk .true.
[9553]1488    if [ ${USING_MPMD} == "yes" ] ; then
1489       set_xio_using_server iodef.xml true
1490    else
1491       set_xio_using_server iodef.xml false
1492    fi
1493    cd ${SETTE_DIR}
[13382]1494    . ./prepare_job.sh input_WED025.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[9553]1495   
1496    cd ${SETTE_DIR}
1497    export TEST_NAME="SHORT"
1498    . ./prepare_exe_dir.sh
[10755]1499    set_valid_dir
[10698]1500    clean_valid_dir
[9553]1501    cd ${EXE_DIR}
[13382]1502    set_namelist namelist_cfg cn_exp \"WED025_SHORT\"
[13559]1503    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 ))
1504    set_namelist namelist_cfg nn_itend ${ITEND}
1505    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 ))
[9553]1506    set_namelist namelist_cfg ln_rstart .true.
1507    set_namelist namelist_cfg nn_rstctl 2
1508    set_namelist namelist_cfg jpni 4
1509    set_namelist namelist_cfg jpnj 8
[10573]1510    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[13559]1511    set_namelist namelist_cfg cn_ocerst_in \"WED025_LONG_${ITRST}_restart\"
1512    set_namelist namelist_ice_cfg cn_icerst_in \"WED025_LONG_${ITRST}_restart_ice\"
[9553]1513    for (( i=1; i<=$NPROC; i++)) ; do
1514        L_NPROC=$(( $i - 1 ))
1515        L_NPROC=`printf "%04d\n" ${L_NPROC}`
[13559]1516        ln -sf ../LONG/WED025_LONG_${ITRST}_restart_${L_NPROC}.nc .
1517        ln -sf ../LONG/WED025_LONG_${ITRST}_restart_ice_${L_NPROC}.nc .
[9553]1518    done
1519    if [ ${USING_MPMD} == "yes" ] ; then
1520       set_xio_using_server iodef.xml true
1521    else
1522       set_xio_using_server iodef.xml false
1523    fi
1524    cd ${SETTE_DIR}
[13382]1525    . ./prepare_job.sh input_WED025.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[9553]1526    cd ${SETTE_DIR}
1527    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1528
[13568]1529fi
1530
1531if [ ${config} == "WED025" ] && [ ${DO_REPRO} == "1" ] ;  then
[9553]1532## Reproducibility tests
[13382]1533    export TEST_NAME="REPRO_5_6"
[9658]1534    cd ${MAIN_DIR}
[9553]1535    cd ${SETTE_DIR}
1536    . ./param.cfg
1537    . ./all_functions.sh
1538    . ./prepare_exe_dir.sh
[10755]1539    set_valid_dir
[10698]1540    clean_valid_dir
[9553]1541    JOB_FILE=${EXE_DIR}/run_job.sh
1542    NPROC=32
1543    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1544    cd ${EXE_DIR}
[13382]1545    set_namelist namelist_cfg cn_exp \"WED025_56\"
[9553]1546    set_namelist namelist_cfg nn_it000 1
[13559]1547    set_namelist namelist_cfg nn_itend ${ITEND}
[13382]1548    set_namelist namelist_cfg nn_date0 20000115
1549    set_namelist namelist_cfg jpni 6
1550    set_namelist namelist_cfg jpnj 7
[10573]1551    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[9553]1552    if [ ${USING_MPMD} == "yes" ] ; then
1553       set_xio_using_server iodef.xml true
1554    else
1555       set_xio_using_server iodef.xml false
1556    fi
1557    cd ${SETTE_DIR}
[13382]1558    . ./prepare_job.sh input_WED025.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[9553]1559    cd ${SETTE_DIR}
1560    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1561
1562    cd ${SETTE_DIR}
1563    export TEST_NAME="REPRO_8_4"
1564    . ./prepare_exe_dir.sh
[10755]1565    set_valid_dir
[10698]1566    clean_valid_dir
[9553]1567    JOB_FILE=${EXE_DIR}/run_job.sh
1568    NPROC=32
1569    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1570    cd ${EXE_DIR}
[13382]1571    set_namelist namelist_cfg cn_exp \"WED025_84\"
[9553]1572    set_namelist namelist_cfg nn_it000 1
[13559]1573    set_namelist namelist_cfg nn_itend ${ITEND}
[13382]1574    set_namelist namelist_cfg nn_date0 20000115
[9553]1575    set_namelist namelist_cfg jpni 8
1576    set_namelist namelist_cfg jpnj 4
[10573]1577    set_namelist namelist_cfg sn_cfctl%l_runstat .true.
[9553]1578    if [ ${USING_MPMD} == "yes" ] ; then
1579       set_xio_using_server iodef.xml true
1580    else
1581       set_xio_using_server iodef.xml false
1582    fi
1583    cd ${SETTE_DIR}
[13382]1584    . ./prepare_job.sh input_WED025.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID}
[9553]1585    cd ${SETTE_DIR}
1586    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1587fi
1588
1589
[3520]1590done
[13568]1591#
1592# Return to SETTE_DIR (last fcm_job.sh will have moved to EXE_DIR)
1593cd ${SETTE_DIR}
Note: See TracBrowser for help on using the repository browser.