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.sh in trunk/NEMOGCM/SETTE – NEMO

source: trunk/NEMOGCM/SETTE/sette.sh @ 4796

Last change on this file since 4796 was 4796, checked in by flavoni, 10 years ago

add ORCA2_LIM3 in SETTE, preparing ORCA2_LIM3 to be a reference configuration, see ticket #1396

  • Property svn:executable set to *
File size: 39.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#############################################################
[3532]14#set -x
[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"
[3520]40#
41# Principal script is sette.sh, that calls
42#
[4245]43#  makenemo  : to create successive exectuables in ${CONFIG_NAME}/BLD/bin/nemo.exe
44#              and links to opa in ${CONFIG_NAME}/EXP00)
[3520]45#
46#  param.cfg : sets and loads following directories:
47#
[4245]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)
[3520]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#
[4245]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.
[3520]59#
[4245]60#  VALIDATION tree is:
[3520]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
[4245]65#                       execution directory takes name of TEST_NAME defined for every test
66#                       in sette.sh. (each test in executed in its own directory)
[3520]67#
[4245]68#  prepare_job.sh     : to generate the script run_job.sh
[3520]69#
[4245]70#  fcm_job.sh         : run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes")
71#                        see sette.sh and BATCH_TEMPLATE directory
[3520]72#
[4245]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
[3520]79#
[4245]80#  NOTE: a log file, output.sette, is created in ${SETTE_DIR} with the echoes of
81#        executed commands
[3520]82#
[4245]83#  NOTE: if sette.sh is stopped in output.sette there is written the last command
84#        executed by sette.sh
[3520]85#
[4245]86# example use: ./sette.sh
87#########################################################################################
[3520]88#
[4245]89# Compiler among those in NEMOGCM/ARCH
[4316]90COMPILER=tobedefined
[4245]91export BATCH_COMMAND_PAR="llsubmit"
92export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR
[4316]93export INTERACT_FLAG="yes"
[4245]94export MPIRUN_FLAG="yes"
95export USING_XIOS="yes"
[3520]96#
[4245]97export DEL_KEYS="key_iomput"
98if [ ${USING_XIOS} == "yes" ] 
99 then
100   export DEL_KEYS=""
101fi
[3520]102#
[4245]103# Settings which control the use of stand alone servers (only relevant if using xios)
[3520]104#
[4245]105export USING_MPMD="no"
106export NUM_XIOSERVERS=4
107export JOB_PREFIX=batch-mpmd
[3520]108#
[4245]109if [ ${USING_MPMD} == "no" ] 
110 then
111   export NUM_XIOSERVERS=0
112   export JOB_PREFIX=batch
113fi
[3520]114#
115#
[4245]116if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no"]
117 then
118   echo "Incompatible choices. MPMD mode requires the XIOS server"
119   exit
120fi
[3520]121#
122
123# Directory to run the tests
124SETTE_DIR=$(cd $(dirname "$0"); pwd)
125MAIN_DIR=${SETTE_DIR%/SETTE}
126CONFIG_DIR=${MAIN_DIR}/CONFIG
127TOOLS_DIR=${MAIN_DIR}/TOOLS
128COMPIL_DIR=${TOOLS_DIR}/COMPILE
129
130CMP_NAM=${1:-$COMPILER}
131# Copy job_batch_COMPILER file for specific compiler into job_batch_template
132cd ${SETTE_DIR}
[4245]133cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit
[4316]134# Description of configuration tested:
135# GYRE            : 1 &  2
136# ORCA2_LIM_PISCES: 3 &  4
137# ORCA2_OFF_PISCES: 5 &  6
[4796]138# ORCA2_LIM3      : 7 &  8
139# AMM12           : 9 & 10
140# SAS             :11 & 12
[4316]141# ORCA2_AGRIF_LIM: 11
[4147]142for config in 1 2 3 4 5 6 7 8 9 10 11
143
[3520]144do
145
[3680]146# TESTS FOR GYRE CONFIGURATION
[3520]147if [ ${config} -eq 1 ] ;  then
[3680]148    ## Restartability tests for GYRE
[3520]149    export TEST_NAME="LONG"
[4147]150    cd ${CONFIG_DIR}
[4245]151    . ./makenemo -m ${CMP_NAM} -n GYRE_LONG -r GYRE -j 8 del_key ${DEL_KEYS}
[3520]152    cd ${SETTE_DIR}
[4252]153    . ./param.cfg
154    . ./all_functions.sh
155    . ./prepare_exe_dir.sh
[3520]156    JOB_FILE=${EXE_DIR}/run_job.sh
[3532]157    NPROC=4
[4245]158    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[4147]159    cd ${EXE_DIR} 
160    set_namelist namelist_cfg cn_exp \"GYRE_LONG\"
161    set_namelist namelist_cfg nn_it000 1
162    set_namelist namelist_cfg nn_itend 120
163    set_namelist namelist_cfg nn_stock 60
164    set_namelist namelist_cfg ln_clobber .true.
[4318]165    set_namelist namelist_cfg nn_fwb 0
[4147]166    set_namelist namelist_cfg nn_solv 2
167    set_namelist namelist_cfg jpni 2
168    set_namelist namelist_cfg jpnj 2
169    set_namelist namelist_cfg jpnij 4
[4245]170    if [ ${USING_MPMD} == "yes" ] ; then
171       set_xio_using_server iodef.xml true
172    else
173       set_xio_using_server iodef.xml false
174    fi
175    cd ${SETTE_DIR}
176    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[3520]177
178    cd ${SETTE_DIR}
179    export TEST_NAME="SHORT"
[4252]180    . ./prepare_exe_dir.sh
[3520]181    cd ${EXE_DIR}
[4147]182    set_namelist namelist_cfg cn_exp \"GYRE_SHORT\"
183    set_namelist namelist_cfg nn_it000 61
184    set_namelist namelist_cfg nn_itend 120
185    set_namelist namelist_cfg nn_stock 60
186    set_namelist namelist_cfg ln_rstart .true.
187    set_namelist namelist_cfg nn_rstctl 2
188    set_namelist namelist_cfg ln_clobber .true.
[4316]189    set_namelist namelist_cfg nn_fwb 0
[4147]190    set_namelist namelist_cfg nn_solv 2
191    set_namelist namelist_cfg jpni 2
192    set_namelist namelist_cfg jpnj 2
193    set_namelist namelist_cfg jpnij 4
194    set_namelist namelist_cfg cn_ocerst_in \"GYRE_LONG_00000060_restart\"
[4245]195    if [ ${USING_MPMD} == "yes" ] ; then
196       set_xio_using_server iodef.xml true
197    else
198       set_xio_using_server iodef.xml false
199    fi
[3537]200    for (( i=1; i<=$NPROC; i++)) ; do
201        L_NPROC=$(( $i - 1 ))
202        L_NPROC=`printf "%04d\n" ${L_NPROC}`
[3680]203        ln -sf ../LONG/GYRE_LONG_00000060_restart_${L_NPROC}.nc .
[3537]204    done
[4245]205    if [ ${USING_MPMD} == "yes" ] ; then
206       set_xio_using_server iodef.xml true
207    else
208       set_xio_using_server iodef.xml false
209    fi
[3520]210    cd ${SETTE_DIR}
[4245]211    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[3520]212    cd ${SETTE_DIR}
[3532]213    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
[3520]214fi
215
216if [ ${config} -eq 2 ] ;  then
[3680]217    ## Reproducibility tests for GYRE
[3520]218    export TEST_NAME="REPRO_1_4"
[4147]219    cd ${CONFIG_DIR}
[4245]220    . ./makenemo -m ${CMP_NAM} -n GYRE_4 -r GYRE -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
[3520]221    cd ${SETTE_DIR}
[4252]222    . ./param.cfg
223    . ./all_functions.sh
224    . ./prepare_exe_dir.sh
[3520]225    JOB_FILE=${EXE_DIR}/run_job.sh
226    NPROC=4
[4245]227    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]228    cd ${EXE_DIR}
[4147]229    set_namelist namelist_cfg cn_exp \"GYRE_14\"
230    set_namelist namelist_cfg nn_it000 1
231    set_namelist namelist_cfg nn_itend 60
232    set_namelist namelist_cfg nn_fwb 0
233    set_namelist namelist_cfg nn_bench 0
234    set_namelist namelist_cfg ln_ctl .false.
235    set_namelist namelist_cfg ln_clobber .true.
236    set_namelist namelist_cfg nn_solv 2
237    set_namelist namelist_cfg jpni 1
238    set_namelist namelist_cfg jpnj 4
239    set_namelist namelist_cfg jpnij 4
[4245]240    if [ ${USING_MPMD} == "yes" ] ; then
241       set_xio_using_server iodef.xml true
242    else
243       set_xio_using_server iodef.xml false
244    fi
[3520]245    cd ${SETTE_DIR}
[4245]246    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[3520]247    cd ${SETTE_DIR}
248    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
249
250    cd ${SETTE_DIR}
251    export TEST_NAME="REPRO_2_2"
[4252]252    . ./prepare_exe_dir.sh
[3680]253    JOB_FILE=${EXE_DIR}/run_job.sh
254    NPROC=4
[4245]255    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]256    cd ${EXE_DIR}
[4147]257    set_namelist namelist_cfg cn_exp \"GYRE_22\"
258    set_namelist namelist_cfg nn_it000 1
259    set_namelist namelist_cfg nn_itend 60
260    set_namelist namelist_cfg nn_fwb 0
261    set_namelist namelist_cfg ln_ctl .false.
262    set_namelist namelist_cfg ln_clobber .true.
263    set_namelist namelist_cfg nn_solv 2
264    set_namelist namelist_cfg jpni 2
265    set_namelist namelist_cfg jpnj 2
266    set_namelist namelist_cfg jpnij 4
[4245]267    if [ ${USING_MPMD} == "yes" ] ; then
268       set_xio_using_server iodef.xml true
269    else
270       set_xio_using_server iodef.xml false
271    fi
[3520]272    cd ${SETTE_DIR}
[4245]273    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[3520]274    cd ${SETTE_DIR}
275    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
[3532]276
[3520]277fi
278
279# TESTS FOR ORCA2_LIM_PISCES CONFIGURATION
280if [ ${config} -eq 3 ] ;  then
281    ## Restartability tests for ORCA2_LIM_PISCES
282    export TEST_NAME="LONG"
[4147]283    cd ${CONFIG_DIR}
[4245]284    . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8 del_key ${DEL_KEYS}
[3520]285    cd ${SETTE_DIR}
[4252]286    . ./param.cfg
287    . ./all_functions.sh
288    . ./prepare_exe_dir.sh
[3520]289    JOB_FILE=${EXE_DIR}/run_job.sh
[3532]290    NPROC=4
[4245]291    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]292    cd ${EXE_DIR}
[4147]293    set_namelist namelist_cfg cn_exp \"O2LP_LONG\"
294    set_namelist namelist_cfg nn_it000 1
295    set_namelist namelist_cfg nn_itend 150
296    set_namelist namelist_cfg nn_stock 75
297    set_namelist namelist_cfg ln_clobber .true.
[4316]298    set_namelist namelist_cfg nn_fwb 0
[4147]299    set_namelist namelist_cfg jpni 2
300    set_namelist namelist_cfg jpnj 2
301    set_namelist namelist_cfg jpnij 4
302    set_namelist namelist_cfg nn_solv 2
303    set_namelist namelist_top_cfg ln_trcdta .false.
304    set_namelist namelist_top_cfg ln_diatrc .false.
[3520]305    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
306    # if not you need input files, and for tests is not necessary
[4147]307    set_namelist namelist_pisces_cfg ln_presatm .false.
308    set_namelist namelist_pisces_cfg ln_varpar .false.
309    set_namelist namelist_pisces_cfg ln_dust .false.
310    set_namelist namelist_pisces_cfg ln_solub .false.
311    set_namelist namelist_pisces_cfg ln_river .false.
312    set_namelist namelist_pisces_cfg ln_ndepo .false.
313    set_namelist namelist_pisces_cfg ln_ironsed .false.
314    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[4245]315    if [ ${USING_MPMD} == "yes" ] ; then
316       set_xio_using_server iodef.xml true
317    else
318       set_xio_using_server iodef.xml false
319    fi
[3520]320    cd ${SETTE_DIR}
[4245]321    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[3532]322   
323    cd ${SETTE_DIR}
[3520]324    export TEST_NAME="SHORT"
[4252]325    . ./prepare_exe_dir.sh
[3520]326    cd ${EXE_DIR}
[4147]327    set_namelist namelist_cfg cn_exp \"O2LP_SHORT\"
328    set_namelist namelist_cfg nn_it000 76
329    set_namelist namelist_cfg nn_itend 150
330    set_namelist namelist_cfg nn_stock 75
331    set_namelist namelist_cfg ln_rstart .true.
332    set_namelist namelist_cfg nn_rstctl 2
333    set_namelist namelist_cfg ln_clobber .true.
[4316]334    set_namelist namelist_cfg nn_fwb 0
[4147]335    set_namelist namelist_cfg jpni 2
336    set_namelist namelist_cfg jpnj 2
337    set_namelist namelist_cfg jpnij 4
338    set_namelist namelist_cfg nn_solv 2
339    set_namelist namelist_top_cfg ln_diatrc .false.
340    set_namelist namelist_top_cfg ln_rsttr .true.
341    set_namelist namelist_top_cfg nn_rsttr 2
342    set_namelist namelist_cfg cn_ocerst_in \"O2LP_LONG_00000075_restart\"
343    set_namelist namelist_ice_cfg cn_icerst_in \"O2LP_LONG_00000075_restart_ice\"
344    set_namelist namelist_top_cfg cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\"
[3520]345    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
346    # if not you need input files, and for tests is not necessary
[4147]347    set_namelist namelist_pisces_cfg ln_presatm .false.
348    set_namelist namelist_pisces_cfg ln_varpar .false.
349    set_namelist namelist_pisces_cfg ln_dust .false.
350    set_namelist namelist_pisces_cfg ln_solub .false.
351    set_namelist namelist_pisces_cfg ln_river .false.
352    set_namelist namelist_pisces_cfg ln_ndepo .false.
353    set_namelist namelist_pisces_cfg ln_ironsed .false.
354    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[3680]355    # put ln_pisdmp to false : no restoring to global mean value
[4147]356    set_namelist namelist_pisces_cfg ln_pisdmp .false.
[3537]357    for (( i=1; i<=$NPROC; i++)) ; do
358        L_NPROC=$(( $i - 1 ))
359        L_NPROC=`printf "%04d\n" ${L_NPROC}`
[3555]360        ln -sf ../LONG/O2LP_LONG_00000075_restart_${L_NPROC}.nc .
361        ln -sf ../LONG/O2LP_LONG_00000075_restart_trc_${L_NPROC}.nc .
362        ln -sf ../LONG/O2LP_LONG_00000075_restart_ice_${L_NPROC}.nc .
[3537]363    done
[4245]364    if [ ${USING_MPMD} == "yes" ] ; then
365       set_xio_using_server iodef.xml true
366    else
367       set_xio_using_server iodef.xml false
368    fi
[3520]369    cd ${SETTE_DIR}
[4245]370    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[3520]371    cd ${SETTE_DIR}
[3532]372    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
[3520]373fi
374
375if [ ${config} -eq 4 ] ;  then
[3680]376    ## Reproducibility tests for ORCA2_LIM_PISCES
[3520]377    export TEST_NAME="REPRO_4_4"
[4147]378    cd ${CONFIG_DIR}
[4245]379    . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
[3520]380    cd ${SETTE_DIR}
[4252]381    . ./param.cfg
382    . ./all_functions.sh
383    . ./prepare_exe_dir.sh
[3520]384    JOB_FILE=${EXE_DIR}/run_job.sh
385    NPROC=16
[4245]386    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]387    cd ${EXE_DIR}
[4147]388    set_namelist namelist_cfg nn_it000 1
389    set_namelist namelist_cfg nn_itend 75
390    set_namelist namelist_cfg nn_fwb 0
391    set_namelist namelist_cfg ln_ctl .false.
392    set_namelist namelist_cfg ln_clobber .true.
393    set_namelist namelist_cfg jpni 4
394    set_namelist namelist_cfg jpnj 4
395    set_namelist namelist_cfg jpnij 16
396    set_namelist namelist_cfg nn_solv 2
397    set_namelist namelist_top_cfg ln_trcdta .false.
398    set_namelist namelist_top_cfg ln_diatrc .false.
[3520]399    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
400    # if not you need input files, and for tests is not necessary
[4147]401    set_namelist namelist_pisces_cfg ln_presatm .false.
402    set_namelist namelist_pisces_cfg ln_varpar .false.
403    set_namelist namelist_pisces_cfg ln_dust .false.
404    set_namelist namelist_pisces_cfg ln_solub .false.
405    set_namelist namelist_pisces_cfg ln_river .false.
406    set_namelist namelist_pisces_cfg ln_ndepo .false.
407    set_namelist namelist_pisces_cfg ln_ironsed .false.
408    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[3680]409    # put ln_pisdmp to false : no restoring to global mean value
[4147]410    set_namelist namelist_pisces_cfg ln_pisdmp .false.
[4245]411    if [ ${USING_MPMD} == "yes" ] ; then
412       set_xio_using_server iodef.xml true
413    else
414       set_xio_using_server iodef.xml false
415    fi
[3520]416    cd ${SETTE_DIR}
[4245]417    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[3520]418    cd ${SETTE_DIR}
[3532]419    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
[3520]420
421    cd ${SETTE_DIR}
422    export TEST_NAME="REPRO_2_8"
[4252]423    . ./prepare_exe_dir.sh
[3680]424    JOB_FILE=${EXE_DIR}/run_job.sh
425    NPROC=16
[4245]426    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]427    cd ${EXE_DIR}
[4147]428    set_namelist namelist_cfg nn_it000 1
429    set_namelist namelist_cfg nn_itend 75
430    set_namelist namelist_cfg ln_clobber .true.
[4316]431    set_namelist namelist_cfg nn_fwb 0
[4147]432    set_namelist namelist_cfg jpni 2
433    set_namelist namelist_cfg jpnj 8
434    set_namelist namelist_cfg jpnij 16
435    set_namelist namelist_cfg nn_solv 2
436    set_namelist namelist_top_cfg ln_trcdta .false.
437    set_namelist namelist_top_cfg ln_diatrc .false.
[3520]438    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
439    # if not you need input files, and for tests is not necessary
[4147]440    set_namelist namelist_pisces_cfg ln_presatm .false.
441    set_namelist namelist_pisces_cfg ln_varpar .false.
442    set_namelist namelist_pisces_cfg ln_dust .false.
443    set_namelist namelist_pisces_cfg ln_solub .false.
444    set_namelist namelist_pisces_cfg ln_river .false.
445    set_namelist namelist_pisces_cfg ln_ndepo .false.
446    set_namelist namelist_pisces_cfg ln_ironsed .false.
447    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[3680]448    # put ln_pisdmp to false : no restoring to global mean value
[4147]449    set_namelist namelist_pisces_cfg ln_pisdmp .false.
[4245]450    if [ ${USING_MPMD} == "yes" ] ; then
451       set_xio_using_server iodef.xml true
452    else
453       set_xio_using_server iodef.xml false
454    fi
[3520]455    cd ${SETTE_DIR}
[4245]456    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[3520]457    cd ${SETTE_DIR}
458    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
459fi
460
461# TESTS FOR ORCA2_OFF_PISCES CONFIGURATION
462if [ ${config} -eq 5 ] ;  then
463    ## Restartability tests for ORCA2_OFF_PISCES
464    export TEST_NAME="LONG"
[4147]465    cd ${CONFIG_DIR}
[4245]466    . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
[3520]467    cd ${SETTE_DIR}
[4252]468    . ./param.cfg
469    . ./all_functions.sh
470    . ./prepare_exe_dir.sh
[3520]471    JOB_FILE=${EXE_DIR}/run_job.sh
[3532]472    NPROC=4
[4245]473    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]474    cd ${EXE_DIR}
[4147]475    set_namelist namelist_cfg cn_exp \"OFFP_LONG\"
476    set_namelist namelist_cfg nn_it000 1
477    set_namelist namelist_cfg nn_itend 40
478    set_namelist namelist_cfg nn_stock 20
479    set_namelist namelist_cfg ln_clobber .true.
480    set_namelist namelist_cfg jpni 2
481    set_namelist namelist_cfg jpnj 2
482    set_namelist namelist_cfg jpnij 4
483    set_namelist namelist_top_cfg ln_trcdta .false.
484    set_namelist namelist_top_cfg ln_diatrc .false.
[3520]485    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
486    # if not you need input files, and for tests is not necessary
[4147]487    set_namelist namelist_pisces_cfg ln_presatm .false.
488    set_namelist namelist_pisces_cfg ln_varpar .false.
489    set_namelist namelist_pisces_cfg ln_dust .false.
490    set_namelist namelist_pisces_cfg ln_solub .false.
491    set_namelist namelist_pisces_cfg ln_river .false.
492    set_namelist namelist_pisces_cfg ln_ndepo .false.
493    set_namelist namelist_pisces_cfg ln_ironsed .false.
494    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[3680]495    # put ln_pisdmp to false : no restoring to global mean value
[4147]496    set_namelist namelist_pisces_cfg ln_pisdmp .false.
[4245]497    if [ ${USING_MPMD} == "yes" ] ; then
498       set_xio_using_server iodef.xml true
499    else
500       set_xio_using_server iodef.xml false
501    fi
[3520]502    cd ${SETTE_DIR}
[4245]503    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[3520]504   
505    cd ${SETTE_DIR}
506    export TEST_NAME="SHORT"
[4252]507    . ./prepare_exe_dir.sh
[3520]508    cd ${EXE_DIR}
[4147]509    set_namelist namelist_cfg cn_exp \"OFFP_SHORT\"
510    set_namelist namelist_cfg nn_it000 21
511    set_namelist namelist_cfg nn_itend 40
512    set_namelist namelist_cfg nn_stock 20
513    set_namelist namelist_cfg ln_clobber .true.
514    set_namelist namelist_cfg jpni 2
515    set_namelist namelist_cfg jpnj 2
516    set_namelist namelist_cfg jpnij 4
517    set_namelist namelist_top_cfg ln_diatrc .false.
518    set_namelist namelist_top_cfg ln_rsttr .true.
519    set_namelist namelist_top_cfg nn_rsttr 2
520    set_namelist namelist_top_cfg cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\"
[3537]521    for (( i=1; i<=$NPROC; i++)) ; do
522        L_NPROC=$(( $i - 1 ))
523        L_NPROC=`printf "%04d\n" ${L_NPROC}`
[3555]524        ln -sf ../LONG/OFFP_LONG_00000020_restart_trc_${L_NPROC}.nc .
[3537]525    done
[3520]526    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
527    # if not you need input files, and for tests is not necessary
[4147]528    set_namelist namelist_pisces_cfg ln_presatm .false.
529    set_namelist namelist_pisces_cfg ln_varpar .false.
530    set_namelist namelist_pisces_cfg ln_dust .false.
531    set_namelist namelist_pisces_cfg ln_solub .false.
532    set_namelist namelist_pisces_cfg ln_river .false.
533    set_namelist namelist_pisces_cfg ln_ndepo .false.
534    set_namelist namelist_pisces_cfg ln_ironsed .false.
535    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[3680]536    # put ln_pisdmp to false : no restoring to global mean value
[4147]537    set_namelist namelist_pisces_cfg ln_pisdmp .false.
[4245]538    if [ ${USING_MPMD} == "yes" ] ; then
539       set_xio_using_server iodef.xml true
540    else
541       set_xio_using_server iodef.xml false
542    fi
[3520]543    cd ${SETTE_DIR}
[4245]544    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME}  ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[3520]545    cd ${SETTE_DIR}
546    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
547fi
548
549if [ ${config} -eq 6 ] ;  then
[3680]550    ## Reproducibility tests for ORCA2_OFF_PISCES
[3520]551    export TEST_NAME="REPRO_4_4"
[4147]552    cd ${CONFIG_DIR}
[4245]553    . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
[3520]554    cd ${SETTE_DIR}
[4252]555    . ./param.cfg
556    . ./all_functions.sh
557    . ./prepare_exe_dir.sh
[3520]558    JOB_FILE=${EXE_DIR}/run_job.sh
559    NPROC=16
[4245]560    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]561    cd ${EXE_DIR}
[4147]562    set_namelist namelist_cfg nn_it000 1
563    set_namelist namelist_cfg nn_itend 40
564    set_namelist namelist_cfg ln_ctl .false.
565    set_namelist namelist_cfg ln_clobber .true.
566    set_namelist namelist_cfg jpni 4
567    set_namelist namelist_cfg jpnj 4
568    set_namelist namelist_cfg jpnij 16
569    set_namelist namelist_top_cfg ln_trcdta .false.
570    set_namelist namelist_top_cfg ln_diatrc .false.
[3520]571    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
572    # if not you need input files, and for tests is not necessary
[4147]573    set_namelist namelist_pisces_cfg ln_presatm .false.
574    set_namelist namelist_pisces_cfg ln_varpar .false.
575    set_namelist namelist_pisces_cfg ln_dust .false.
576    set_namelist namelist_pisces_cfg ln_solub .false.
577    set_namelist namelist_pisces_cfg ln_river .false.
578    set_namelist namelist_pisces_cfg ln_ndepo .false.
579    set_namelist namelist_pisces_cfg ln_ironsed .false.
580    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[3680]581    # put ln_pisdmp to false : no restoring to global mean value
[4147]582    set_namelist namelist_pisces_cfg ln_pisdmp .false.
[4245]583    if [ ${USING_MPMD} == "yes" ] ; then
584       set_xio_using_server iodef.xml true
585    else
586       set_xio_using_server iodef.xml false
587    fi
[3520]588    cd ${SETTE_DIR}
[4245]589    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[3520]590    cd ${SETTE_DIR}
[3532]591    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
[3520]592
593    cd ${SETTE_DIR}
594    export TEST_NAME="REPRO_2_8"
[4252]595    . ./prepare_exe_dir.sh
[3680]596    JOB_FILE=${EXE_DIR}/run_job.sh
597    NPROC=16
[4245]598    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]599    cd ${EXE_DIR}
[4147]600    set_namelist namelist_cfg nn_it000 1
601    set_namelist namelist_cfg nn_itend 40
602    set_namelist namelist_cfg ln_ctl .false.
603    set_namelist namelist_cfg ln_clobber .true.
604    set_namelist namelist_cfg jpni 2
605    set_namelist namelist_cfg jpnj 8
606    set_namelist namelist_cfg jpnij 16
607    set_namelist namelist_top_cfg ln_trcdta .false.
608    set_namelist namelist_top_cfg ln_diatrc .false.
[3520]609    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
610    # if not you need input files, and for tests is not necessary
[4147]611    set_namelist namelist_pisces_cfg ln_presatm .false.
612    set_namelist namelist_pisces_cfg ln_varpar .false.
613    set_namelist namelist_pisces_cfg ln_dust .false.
614    set_namelist namelist_pisces_cfg ln_solub .false.
615    set_namelist namelist_pisces_cfg ln_river .false.
616    set_namelist namelist_pisces_cfg ln_ndepo .false.
617    set_namelist namelist_pisces_cfg ln_ironsed .false.
618    set_namelist namelist_pisces_cfg ln_hydrofe .false.
[3680]619    # put ln_pisdmp to false : no restoring to global mean value
[4147]620    set_namelist namelist_pisces_cfg ln_pisdmp .false.
[4245]621    if [ ${USING_MPMD} == "yes" ] ; then
622       set_xio_using_server iodef.xml true
623    else
624       set_xio_using_server iodef.xml false
625    fi
[3520]626    cd ${SETTE_DIR}
[4245]627    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[3520]628    cd ${SETTE_DIR}
629    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
630fi
631
[4796]632
633# TESTS FOR ORCA2_LIM3 CONFIGURATION
634if [ ${config} -eq 7 ] ;  then
635    ## Restartability tests for ORCA2_LIM3
636    export TEST_NAME="LONG"
637    cd ${CONFIG_DIR}
638    . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3_LONG -r ORCA2_LIM3 -j 8 del_key ${DEL_KEYS}
639    cd ${SETTE_DIR}
640    . ./param.cfg
641    . ./all_functions.sh
642    . ./prepare_exe_dir.sh
643    JOB_FILE=${EXE_DIR}/run_job.sh
644    NPROC=4
645    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
646    cd ${EXE_DIR}
647    set_namelist namelist_cfg cn_exp \"O2L3_LONG\"
648    set_namelist namelist_cfg nn_it000 1
649    set_namelist namelist_cfg nn_itend 150
650    set_namelist namelist_cfg nn_stock 75
651    set_namelist namelist_cfg ln_clobber .true.
652    set_namelist namelist_cfg nn_fwb 0
653    set_namelist namelist_cfg jpni 2
654    set_namelist namelist_cfg jpnj 2
655    set_namelist namelist_cfg jpnij 4
656    set_namelist namelist_cfg nn_solv 2
657    if [ ${USING_MPMD} == "yes" ] ; then
658       set_xio_using_server iodef.xml true
659    else
660       set_xio_using_server iodef.xml false
661    fi
662    cd ${SETTE_DIR}
663    . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
664   
665    cd ${SETTE_DIR}
666    export TEST_NAME="SHORT"
667    . ./prepare_exe_dir.sh
668    cd ${EXE_DIR}
669    set_namelist namelist_cfg cn_exp \"O2L3_SHORT\"
670    set_namelist namelist_cfg nn_it000 76
671    set_namelist namelist_cfg nn_itend 150
672    set_namelist namelist_cfg nn_stock 75
673    set_namelist namelist_cfg ln_rstart .true.
674    set_namelist namelist_cfg nn_rstctl 2
675    set_namelist namelist_cfg ln_clobber .true.
676    set_namelist namelist_cfg nn_fwb 0
677    set_namelist namelist_cfg jpni 2
678    set_namelist namelist_cfg jpnj 2
679    set_namelist namelist_cfg jpnij 4
680    set_namelist namelist_cfg nn_solv 2
681    set_namelist namelist_cfg cn_ocerst_in \"O2L3_LONG_00000075_restart\"
682    set_namelist namelist_ice_cfg cn_icerst_in \"O2L3_LONG_00000075_restart_ice\"
683    for (( i=1; i<=$NPROC; i++)) ; do
684        L_NPROC=$(( $i - 1 ))
685        L_NPROC=`printf "%04d\n" ${L_NPROC}`
686        ln -sf ../LONG/O2L3_LONG_00000075_restart_${L_NPROC}.nc .
687        ln -sf ../LONG/O2L3_LONG_00000075_restart_ice_${L_NPROC}.nc .
688    done
689    if [ ${USING_MPMD} == "yes" ] ; then
690       set_xio_using_server iodef.xml true
691    else
692       set_xio_using_server iodef.xml false
693    fi
694    cd ${SETTE_DIR}
695    . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
696    cd ${SETTE_DIR}
697    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
698fi
699
700if [ ${config} -eq 8 ] ;  then
701    ## Reproducibility tests for ORCA2_LIM3
702    export TEST_NAME="REPRO_4_4"
703    cd ${CONFIG_DIR}
704    . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3_16 -r ORCA2_LIM3 -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
705    cd ${SETTE_DIR}
706    . ./param.cfg
707    . ./all_functions.sh
708    . ./prepare_exe_dir.sh
709    JOB_FILE=${EXE_DIR}/run_job.sh
710    NPROC=16
711    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
712    cd ${EXE_DIR}
713    set_namelist namelist_cfg nn_it000 1
714    set_namelist namelist_cfg nn_itend 75
715    set_namelist namelist_cfg nn_fwb 0
716    set_namelist namelist_cfg ln_ctl .false.
717    set_namelist namelist_cfg ln_clobber .true.
718    set_namelist namelist_cfg jpni 4
719    set_namelist namelist_cfg jpnj 4
720    set_namelist namelist_cfg jpnij 16
721    set_namelist namelist_cfg nn_solv 2
722    if [ ${USING_MPMD} == "yes" ] ; then
723       set_xio_using_server iodef.xml true
724    else
725       set_xio_using_server iodef.xml false
726    fi
727    cd ${SETTE_DIR}
728    . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
729    cd ${SETTE_DIR}
730    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
731
732    cd ${SETTE_DIR}
733    export TEST_NAME="REPRO_2_8"
734    . ./prepare_exe_dir.sh
735    JOB_FILE=${EXE_DIR}/run_job.sh
736    NPROC=16
737    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
738    cd ${EXE_DIR}
739    set_namelist namelist_cfg nn_it000 1
740    set_namelist namelist_cfg nn_itend 75
741    set_namelist namelist_cfg ln_clobber .true.
742    set_namelist namelist_cfg nn_fwb 0
743    set_namelist namelist_cfg jpni 2
744    set_namelist namelist_cfg jpnj 8
745    set_namelist namelist_cfg jpnij 16
746    set_namelist namelist_cfg nn_solv 2
747    if [ ${USING_MPMD} == "yes" ] ; then
748       set_xio_using_server iodef.xml true
749    else
750       set_xio_using_server iodef.xml false
751    fi
752
753    cd ${SETTE_DIR}
754    . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
755    cd ${SETTE_DIR}
756    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
757fi
758
759
[3680]760# TESTS FOR AMM12 CONFIGURATION
[4796]761if [ ${config} -eq 9 ] ;  then
[3532]762    ## Restartability tests for AMM12
763    export TEST_NAME="LONG"
[4147]764    cd ${CONFIG_DIR}
[4245]765    . ./makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 add_key "key_tide" del_key ${DEL_KEYS}
[3520]766    cd ${SETTE_DIR}
[4252]767    . ./param.cfg
768    . ./all_functions.sh
769    . ./prepare_exe_dir.sh
[3520]770    JOB_FILE=${EXE_DIR}/run_job.sh
771    NPROC=32
[4245]772    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]773    cd ${EXE_DIR}
[4147]774    set_namelist namelist_cfg nn_it000 1
[4252]775    set_namelist namelist_cfg nn_itend 576
776    set_namelist namelist_cfg nn_stock 288
[4147]777    set_namelist namelist_cfg nn_fwb 0
778    set_namelist namelist_cfg ln_ctl .false.
779    set_namelist namelist_cfg ln_clobber .true.
780    set_namelist namelist_cfg jpni 8
781    set_namelist namelist_cfg jpnj 4
782    set_namelist namelist_cfg jpnij 32
[4245]783    if [ ${USING_MPMD} == "yes" ] ; then
784       set_xio_using_server iodef.xml true
785    else
786       set_xio_using_server iodef.xml false
787    fi
[3520]788    cd ${SETTE_DIR}
[4245]789    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[3520]790
791    cd ${SETTE_DIR}
[3532]792    export TEST_NAME="SHORT"
[4379]793    . ./prepare_exe_dir.sh
[3520]794    cd ${EXE_DIR}
[4252]795    set_namelist namelist_cfg nn_it000 289
796    set_namelist namelist_cfg nn_itend 576
[4147]797    set_namelist namelist_cfg nn_fwb 0
798    set_namelist namelist_cfg ln_ctl .false.
799    set_namelist namelist_cfg ln_clobber .true.
800    set_namelist namelist_cfg jpni 8
801    set_namelist namelist_cfg jpnj 4
802    set_namelist namelist_cfg jpnij 32
803    set_namelist namelist_cfg ln_rstart .true.
804    set_namelist namelist_cfg nn_rstctl 2
[4252]805    set_namelist namelist_cfg cn_ocerst_in \"AMM12_00000288_restart_oce_out\"
806    set_namelist namelist_cfg nn_date0 20120102
[3537]807    for (( i=1; i<=$NPROC; i++)) ; do
808        L_NPROC=$(( $i - 1 ))
809        L_NPROC=`printf "%04d\n" ${L_NPROC}`
[4252]810        ln -sf ../LONG/AMM12_00000288_restart_oce_out_${L_NPROC}.nc .
[3537]811    done
[4245]812    if [ ${USING_MPMD} == "yes" ] ; then
813       set_xio_using_server iodef.xml true
814    else
815       set_xio_using_server iodef.xml false
816    fi
[3520]817    cd ${SETTE_DIR}
[4245]818    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[3520]819    cd ${SETTE_DIR}
[3532]820    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
[3520]821fi
822
[4796]823if [ ${config} -eq 10 ] ;  then
[3680]824## Reproducibility tests for AMM12
825    export TEST_NAME="REPRO_8_4"
[4147]826    cd ${CONFIG_DIR}
[4245]827    . ./makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 add_key "key_mpp_rep key_tide" del_key ${DEL_KEYS}
[3520]828    cd ${SETTE_DIR}
[4252]829    . ./param.cfg
830    . ./all_functions.sh
831    . ./prepare_exe_dir.sh
[3520]832    JOB_FILE=${EXE_DIR}/run_job.sh
833    NPROC=32
[4245]834    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
[3520]835    cd ${EXE_DIR}
[4147]836    set_namelist namelist_cfg nn_it000 1
837    set_namelist namelist_cfg nn_itend 576
838    set_namelist namelist_cfg nn_fwb 0
839    set_namelist namelist_cfg ln_ctl .false.
840    set_namelist namelist_cfg ln_clobber .true.
841    set_namelist namelist_cfg jpni 8
842    set_namelist namelist_cfg jpnj 4
843    set_namelist namelist_cfg jpnij 32
[4245]844    if [ ${USING_MPMD} == "yes" ] ; then
845       set_xio_using_server iodef.xml true
846    else
847       set_xio_using_server iodef.xml false
848    fi
[3520]849    cd ${SETTE_DIR}
[4245]850    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[3520]851    cd ${SETTE_DIR}
852    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
853
854    cd ${SETTE_DIR}
[3680]855    export TEST_NAME="REPRO_4_8"
[4252]856    . ./prepare_exe_dir.sh
[3520]857    cd ${EXE_DIR}
[4147]858    set_namelist namelist_cfg nn_it000 1
859    set_namelist namelist_cfg nn_itend 576
860    set_namelist namelist_cfg nn_fwb 0
861    set_namelist namelist_cfg ln_ctl .false.
862    set_namelist namelist_cfg ln_clobber .true.
863    set_namelist namelist_cfg jpni 4
864    set_namelist namelist_cfg jpnj 8
865    set_namelist namelist_cfg jpnij 32
[4245]866    if [ ${USING_MPMD} == "yes" ] ; then
867       set_xio_using_server iodef.xml true
868    else
869       set_xio_using_server iodef.xml false
870    fi
[3520]871    cd ${SETTE_DIR}
[4245]872    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[3520]873    cd ${SETTE_DIR}
[3532]874    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
[3520]875fi
876
877
[4147]878# TESTS FOR ORCA2_SAS_LIM CONFIGURATION
[4796]879if [ ${config} -eq 11 ] ;  then
[4147]880    ## Restartability tests for SAS
881    export TEST_NAME="LONG"
882    cd ${CONFIG_DIR}
[4260]883    . ./makenemo -m ${CMP_NAM} -n SAS_LONG -r ORCA2_SAS_LIM -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
[4147]884    cd ${SETTE_DIR}
[4252]885    . ./param.cfg
886    . ./all_functions.sh
887    . ./prepare_exe_dir.sh
[4147]888    JOB_FILE=${EXE_DIR}/run_job.sh
889    NPROC=32
890    \rm $JOB_FILE
891    cd ${EXE_DIR}
892    set_namelist namelist_cfg cn_exp \"SAS\"
893    set_namelist namelist_cfg nn_it000 1
894    set_namelist namelist_cfg nn_itend 100
895    set_namelist namelist_cfg nn_stock 50
896    set_namelist namelist_cfg ln_ctl .false.
897    set_namelist namelist_cfg ln_clobber .true.
[4316]898    set_namelist namelist_cfg nn_fwb 0
[4147]899    set_namelist namelist_cfg jpni 8
900    set_namelist namelist_cfg jpnj 4
901    set_namelist namelist_cfg jpnij 32
[4245]902    if [ ${USING_MPMD} == "yes" ] ; then
903       set_xio_using_server iodef.xml true
904    else
905       set_xio_using_server iodef.xml false
906    fi
[4147]907    cd ${SETTE_DIR}
[4245]908    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[4147]909
910    cd ${SETTE_DIR}
911    export TEST_NAME="SHORT"
[4252]912    . ./prepare_exe_dir.sh
[4147]913    cd ${EXE_DIR}
914    set_namelist namelist_cfg cn_exp \"SAS\"
915    set_namelist namelist_cfg nn_it000 51
916    set_namelist namelist_cfg nn_itend 100
917    set_namelist namelist_cfg ln_ctl .false.
918    set_namelist namelist_cfg ln_clobber .true.
[4316]919    set_namelist namelist_cfg nn_fwb 0
[4147]920    set_namelist namelist_cfg jpni 8
921    set_namelist namelist_cfg jpnj 4
922    set_namelist namelist_cfg jpnij 32
923    set_namelist namelist_cfg nn_rstctl 2
924    set_namelist namelist_cfg cn_ocerst_in \"SAS_00000050_restart\"
925    for (( i=1; i<=$NPROC; i++)) ; do
926        L_NPROC=$(( $i - 1 ))
927        L_NPROC=`printf "%04d\n" ${L_NPROC}`
928        ln -sf ../LONG/SAS_00000050_restart_${L_NPROC}.nc .
929    done
[4245]930    if [ ${USING_MPMD} == "yes" ] ; then
931       set_xio_using_server iodef.xml true
932    else
933       set_xio_using_server iodef.xml false
934    fi
[4147]935    cd ${SETTE_DIR}
[4245]936    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[4147]937    cd ${SETTE_DIR}
938    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
939fi
940
[4796]941if [ ${config} -eq 12 ] ;  then
[4147]942## Reproducibility tests for ORCA2_SAS_LIM
943    export TEST_NAME="REPRO_8_4"
944    cd ${CONFIG_DIR}
[4245]945    . ./makenemo -m ${CMP_NAM} -n SAS_32 -r ORCA2_SAS_LIM -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
[4147]946    cd ${SETTE_DIR}
[4252]947    . ./param.cfg
948    . ./all_functions.sh
949    . ./prepare_exe_dir.sh
[4147]950    JOB_FILE=${EXE_DIR}/run_job.sh
951    NPROC=32
952    \rm ${JOB_FILE}
953    cd ${EXE_DIR}
954    set_namelist namelist_cfg cn_exp \"SAS\"
955    set_namelist namelist_cfg nn_it000 51
956    set_namelist namelist_cfg nn_itend 100
957    set_namelist namelist_cfg ln_ctl .false.
958    set_namelist namelist_cfg ln_clobber .true.
[4316]959    set_namelist namelist_cfg nn_fwb 0
[4147]960    set_namelist namelist_cfg jpni 8
961    set_namelist namelist_cfg jpnj 4
962    set_namelist namelist_cfg jpnij 32
[4245]963    if [ ${USING_MPMD} == "yes" ] ; then
964       set_xio_using_server iodef.xml true
965    else
966       set_xio_using_server iodef.xml false
967    fi
[4147]968    cd ${SETTE_DIR}
[4245]969    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE}  ${NUM_XIOSERVERS}
[4147]970    cd ${SETTE_DIR}
971    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
972    cd ${SETTE_DIR}
973    export TEST_NAME="REPRO_4_8"
[4252]974    . ./prepare_exe_dir.sh
[4147]975    cd ${EXE_DIR}
976    set_namelist namelist_cfg cn_exp \"SAS\"
977    set_namelist namelist_cfg nn_it000 51
978    set_namelist namelist_cfg nn_itend 100
979    set_namelist namelist_cfg ln_ctl .false.
980    set_namelist namelist_cfg ln_clobber .true.
[4316]981    set_namelist namelist_cfg nn_fwb 0
[4147]982    set_namelist namelist_cfg jpni 4
983    set_namelist namelist_cfg jpnj 8
984    set_namelist namelist_cfg jpnij 32
[4245]985    if [ ${USING_MPMD} == "yes" ] ; then
986       set_xio_using_server iodef.xml true
987    else
988       set_xio_using_server iodef.xml false
989    fi
[4147]990    cd ${SETTE_DIR}
[4245]991    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
[4147]992    cd ${SETTE_DIR}
993    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
994fi
995
[4245]996# TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests)
[4796]997if [ ${config} -eq 13 ] ;  then
[4245]998    ## ORCA2_LIM with Agulhas AGRIF zoom in MPI
999    export TEST_NAME="SHORT"
1000    cd ${CONFIG_DIR}
1001    . ./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}
1002    cd ${SETTE_DIR}
[4252]1003    . ./param.cfg
1004    . ./all_functions.sh
1005    . ./prepare_exe_dir.sh
[4245]1006    JOB_FILE=${EXE_DIR}/run_job.sh
1007    NPROC=2
1008    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1009    cd ${EXE_DIR}
1010    set_namelist namelist_cfg nn_it000 1
1011    set_namelist namelist_cfg nn_itend 75
1012    set_namelist namelist_cfg ln_ctl .false.
1013    set_namelist namelist_cfg ln_clobber .true.
[4316]1014    set_namelist namelist_cfg nn_fwb 0
[4245]1015    set_namelist namelist_cfg jpni 1
1016    set_namelist namelist_cfg jpnj 2
1017    set_namelist namelist_cfg jpnij 2
1018    set_namelist 1_namelist_cfg nn_it000 1
1019    set_namelist 1_namelist_cfg nn_itend 150
1020    set_namelist 1_namelist_cfg ln_ctl .false.
1021    set_namelist 1_namelist_cfg ln_clobber .true.
1022    if [ ${USING_MPMD} == "yes" ] ; then
1023       set_xio_using_server iodef.xml true
1024    else
1025       set_xio_using_server iodef.xml false
1026    fi
1027    cd ${SETTE_DIR}
1028    . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1029    cd ${SETTE_DIR}
1030    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1031fi
1032
[3520]1033done
Note: See TracBrowser for help on using the repository browser.