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 branches/2014/dev_r4650_UKMO13_CICE_changes_take2/NEMOGCM/SETTE – NEMO

source: branches/2014/dev_r4650_UKMO13_CICE_changes_take2/NEMOGCM/SETTE/sette.sh @ 4921

Last change on this file since 4921 was 4921, checked in by timgraham, 9 years ago

merged with revision 4879 of trunk

  • Property svn:executable set to *
File size: 39.0 KB
Line 
1#!/bin/bash
2############################################################
3# Author : Simona Flavoni for NEMO
4# Contact: sflod@locean-ipsl.upmc.fr
5# 2013   : A.C. Coward added options for testing with XIOS in dettached mode
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#############################################################
14#set -x
15set -o posix
16#set -u
17#set -e
18# ===========
19# DESCRIPTION
20# ===========
21#
22# Variables to be checked by user:
23#
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"
40#
41# Principal script is sette.sh, that calls
42#
43#  makenemo  : to create successive exectuables in ${CONFIG_NAME}/BLD/bin/nemo.exe
44#              and links to opa in ${CONFIG_NAME}/EXP00)
45#
46#  param.cfg : sets and loads following directories:
47#
48#   FORCING_DIR         : is the directory for forcing files (tarfile)
49#   INPUT_DIR           : is the directory for input files storing
50#   TMPDIR              : is the temporary directory (if needed)
51#   NEMO_VALIDATION_DIR : is the validation directory
52#
53#   (NOTE: this file is the same for all configrations to be tested with sette)
54#
55#   all_functions.sh : loads functions used by sette (note: new functions can be added here)
56#   set_namelist     : function declared in all_functions that sets namelist parameters
57#   post_test_tidyup : creates validation storage directory and copies required output files
58#                      (solver.stat and ocean.output) in it after execution of test.
59#
60#  VALIDATION tree is:
61#
62#   NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE)
63#
64#  prepare_exe_dir.sh : defines and creates directory where the test is executed
65#                       execution directory takes name of TEST_NAME defined for every test
66#                       in sette.sh. (each test in executed in its own directory)
67#
68#  prepare_job.sh     : to generate the script run_job.sh
69#
70#  fcm_job.sh         : run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes")
71#                        see sette.sh and BATCH_TEMPLATE directory
72#
73#  NOTE: jobs requiring initial or forcing data need to have an input_CONFIG.cfg in which
74#        can be found paths to the input tar file)
75#  NOTE: if job is not launched for any reason you have the executable ready in ${EXE_DIR}
76#        directory
77#  NOTE: the changed namelists are left in ${EXE_DIR} directory whereas original namelists
78#        remain in ${NEW_CONF}/EXP00
79#
80#  NOTE: a log file, output.sette, is created in ${SETTE_DIR} with the echoes of
81#        executed commands
82#
83#  NOTE: if sette.sh is stopped in output.sette there is written the last command
84#        executed by sette.sh
85#
86# example use: ./sette.sh
87#########################################################################################
88#
89# Compiler among those in NEMOGCM/ARCH
90COMPILER=tobedefined
91export BATCH_COMMAND_PAR="llsubmit"
92export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR
93export INTERACT_FLAG="yes"
94export MPIRUN_FLAG="yes"
95export USING_XIOS="yes"
96#
97export DEL_KEYS="key_iomput"
98if [ ${USING_XIOS} == "yes" ] 
99 then
100   export DEL_KEYS=""
101fi
102#
103# Settings which control the use of stand alone servers (only relevant if using xios)
104#
105export USING_MPMD="no"
106export NUM_XIOSERVERS=4
107export JOB_PREFIX=batch-mpmd
108#
109if [ ${USING_MPMD} == "no" ] 
110 then
111   export NUM_XIOSERVERS=0
112   export JOB_PREFIX=batch
113fi
114#
115#
116if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no"]
117 then
118   echo "Incompatible choices. MPMD mode requires the XIOS server"
119   exit
120fi
121#
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}
133cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit
134# Description of configuration tested:
135# GYRE            : 1 &  2
136# ORCA2_LIM_PISCES: 3 &  4
137# ORCA2_OFF_PISCES: 5 &  6
138# ORCA2_LIM3      : 7 &  8
139# AMM12           : 9 & 10
140# SAS             :11 & 12
141# ORCA2_AGRIF_LIM :13
142for config in 1 2 3 4 5 6 7 8 9 10 11 12 13
143
144do
145
146# TESTS FOR GYRE CONFIGURATION
147if [ ${config} -eq 1 ] ;  then
148    ## Restartability tests for GYRE
149    export TEST_NAME="LONG"
150    cd ${CONFIG_DIR}
151    . ./makenemo -m ${CMP_NAM} -n GYRE_LONG -r GYRE -j 8 del_key ${DEL_KEYS}
152    cd ${SETTE_DIR}
153    . ./param.cfg
154    . ./all_functions.sh
155    . ./prepare_exe_dir.sh
156    JOB_FILE=${EXE_DIR}/run_job.sh
157    NPROC=4
158    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
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.
165    set_namelist namelist_cfg nn_fwb 0
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
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}
177
178    cd ${SETTE_DIR}
179    export TEST_NAME="SHORT"
180    . ./prepare_exe_dir.sh
181    cd ${EXE_DIR}
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.
189    set_namelist namelist_cfg nn_fwb 0
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\"
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
200    for (( i=1; i<=$NPROC; i++)) ; do
201        L_NPROC=$(( $i - 1 ))
202        L_NPROC=`printf "%04d\n" ${L_NPROC}`
203        ln -sf ../LONG/GYRE_LONG_00000060_restart_${L_NPROC}.nc .
204    done
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
210    cd ${SETTE_DIR}
211    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
212    cd ${SETTE_DIR}
213    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
214fi
215
216if [ ${config} -eq 2 ] ;  then
217    ## Reproducibility tests for GYRE
218    export TEST_NAME="REPRO_1_4"
219    cd ${CONFIG_DIR}
220    . ./makenemo -m ${CMP_NAM} -n GYRE_4 -r GYRE -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
221    cd ${SETTE_DIR}
222    . ./param.cfg
223    . ./all_functions.sh
224    . ./prepare_exe_dir.sh
225    JOB_FILE=${EXE_DIR}/run_job.sh
226    NPROC=4
227    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
228    cd ${EXE_DIR}
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
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
245    cd ${SETTE_DIR}
246    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
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"
252    . ./prepare_exe_dir.sh
253    JOB_FILE=${EXE_DIR}/run_job.sh
254    NPROC=4
255    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
256    cd ${EXE_DIR}
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
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
272    cd ${SETTE_DIR}
273    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
274    cd ${SETTE_DIR}
275    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
276
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"
283    cd ${CONFIG_DIR}
284    . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8 del_key ${DEL_KEYS}
285    cd ${SETTE_DIR}
286    . ./param.cfg
287    . ./all_functions.sh
288    . ./prepare_exe_dir.sh
289    JOB_FILE=${EXE_DIR}/run_job.sh
290    NPROC=4
291    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
292    cd ${EXE_DIR}
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.
298    set_namelist namelist_cfg nn_fwb 0
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.
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
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.
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
320    cd ${SETTE_DIR}
321    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
322   
323    cd ${SETTE_DIR}
324    export TEST_NAME="SHORT"
325    . ./prepare_exe_dir.sh
326    cd ${EXE_DIR}
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.
334    set_namelist namelist_cfg nn_fwb 0
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\"
345    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
346    # if not you need input files, and for tests is not necessary
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.
355    # put ln_pisdmp to false : no restoring to global mean value
356    set_namelist namelist_pisces_cfg ln_pisdmp .false.
357    for (( i=1; i<=$NPROC; i++)) ; do
358        L_NPROC=$(( $i - 1 ))
359        L_NPROC=`printf "%04d\n" ${L_NPROC}`
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 .
363    done
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
369    cd ${SETTE_DIR}
370    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
371    cd ${SETTE_DIR}
372    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
373fi
374
375if [ ${config} -eq 4 ] ;  then
376    ## Reproducibility tests for ORCA2_LIM_PISCES
377    export TEST_NAME="REPRO_4_4"
378    cd ${CONFIG_DIR}
379    . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
380    cd ${SETTE_DIR}
381    . ./param.cfg
382    . ./all_functions.sh
383    . ./prepare_exe_dir.sh
384    JOB_FILE=${EXE_DIR}/run_job.sh
385    NPROC=16
386    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
387    cd ${EXE_DIR}
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.
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
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.
409    # put ln_pisdmp to false : no restoring to global mean value
410    set_namelist namelist_pisces_cfg ln_pisdmp .false.
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
416    cd ${SETTE_DIR}
417    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
418    cd ${SETTE_DIR}
419    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
420
421    cd ${SETTE_DIR}
422    export TEST_NAME="REPRO_2_8"
423    . ./prepare_exe_dir.sh
424    JOB_FILE=${EXE_DIR}/run_job.sh
425    NPROC=16
426    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
427    cd ${EXE_DIR}
428    set_namelist namelist_cfg nn_it000 1
429    set_namelist namelist_cfg nn_itend 75
430    set_namelist namelist_cfg ln_clobber .true.
431    set_namelist namelist_cfg nn_fwb 0
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.
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
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.
448    # put ln_pisdmp to false : no restoring to global mean value
449    set_namelist namelist_pisces_cfg ln_pisdmp .false.
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
455    cd ${SETTE_DIR}
456    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
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"
465    cd ${CONFIG_DIR}
466    . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
467    cd ${SETTE_DIR}
468    . ./param.cfg
469    . ./all_functions.sh
470    . ./prepare_exe_dir.sh
471    JOB_FILE=${EXE_DIR}/run_job.sh
472    NPROC=4
473    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
474    cd ${EXE_DIR}
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.
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
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.
495    # put ln_pisdmp to false : no restoring to global mean value
496    set_namelist namelist_pisces_cfg ln_pisdmp .false.
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
502    cd ${SETTE_DIR}
503    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
504   
505    cd ${SETTE_DIR}
506    export TEST_NAME="SHORT"
507    . ./prepare_exe_dir.sh
508    cd ${EXE_DIR}
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\"
521    for (( i=1; i<=$NPROC; i++)) ; do
522        L_NPROC=$(( $i - 1 ))
523        L_NPROC=`printf "%04d\n" ${L_NPROC}`
524        ln -sf ../LONG/OFFP_LONG_00000020_restart_trc_${L_NPROC}.nc .
525    done
526    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
527    # if not you need input files, and for tests is not necessary
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.
536    # put ln_pisdmp to false : no restoring to global mean value
537    set_namelist namelist_pisces_cfg ln_pisdmp .false.
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
543    cd ${SETTE_DIR}
544    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME}  ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
545    cd ${SETTE_DIR}
546    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
547fi
548
549if [ ${config} -eq 6 ] ;  then
550    ## Reproducibility tests for ORCA2_OFF_PISCES
551    export TEST_NAME="REPRO_4_4"
552    cd ${CONFIG_DIR}
553    . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
554    cd ${SETTE_DIR}
555    . ./param.cfg
556    . ./all_functions.sh
557    . ./prepare_exe_dir.sh
558    JOB_FILE=${EXE_DIR}/run_job.sh
559    NPROC=16
560    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
561    cd ${EXE_DIR}
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.
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
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.
581    # put ln_pisdmp to false : no restoring to global mean value
582    set_namelist namelist_pisces_cfg ln_pisdmp .false.
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
588    cd ${SETTE_DIR}
589    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
590    cd ${SETTE_DIR}
591    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
592
593    cd ${SETTE_DIR}
594    export TEST_NAME="REPRO_2_8"
595    . ./prepare_exe_dir.sh
596    JOB_FILE=${EXE_DIR}/run_job.sh
597    NPROC=16
598    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
599    cd ${EXE_DIR}
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.
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
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.
619    # put ln_pisdmp to false : no restoring to global mean value
620    set_namelist namelist_pisces_cfg ln_pisdmp .false.
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
626    cd ${SETTE_DIR}
627    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
628    cd ${SETTE_DIR}
629    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
630fi
631
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
760# TESTS FOR AMM12 CONFIGURATION
761if [ ${config} -eq 9 ] ;  then
762    ## Restartability tests for AMM12
763    export TEST_NAME="LONG"
764    cd ${CONFIG_DIR}
765    . ./makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 add_key "key_tide" del_key ${DEL_KEYS}
766    cd ${SETTE_DIR}
767    . ./param.cfg
768    . ./all_functions.sh
769    . ./prepare_exe_dir.sh
770    JOB_FILE=${EXE_DIR}/run_job.sh
771    NPROC=32
772    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
773    cd ${EXE_DIR}
774    set_namelist namelist_cfg nn_it000 1
775    set_namelist namelist_cfg nn_itend 576
776    set_namelist namelist_cfg nn_stock 288
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
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
788    cd ${SETTE_DIR}
789    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
790
791    cd ${SETTE_DIR}
792    export TEST_NAME="SHORT"
793    . ./prepare_exe_dir.sh
794    cd ${EXE_DIR}
795    set_namelist namelist_cfg nn_it000 289
796    set_namelist namelist_cfg nn_itend 576
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
805    set_namelist namelist_cfg cn_ocerst_in \"AMM12_00000288_restart_oce_out\"
806    set_namelist namelist_cfg nn_date0 20120102
807    for (( i=1; i<=$NPROC; i++)) ; do
808        L_NPROC=$(( $i - 1 ))
809        L_NPROC=`printf "%04d\n" ${L_NPROC}`
810        ln -sf ../LONG/AMM12_00000288_restart_oce_out_${L_NPROC}.nc .
811    done
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
817    cd ${SETTE_DIR}
818    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
819    cd ${SETTE_DIR}
820    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
821fi
822
823if [ ${config} -eq 10 ] ;  then
824## Reproducibility tests for AMM12
825    export TEST_NAME="REPRO_8_4"
826    cd ${CONFIG_DIR}
827    . ./makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 add_key "key_mpp_rep key_tide" del_key ${DEL_KEYS}
828    cd ${SETTE_DIR}
829    . ./param.cfg
830    . ./all_functions.sh
831    . ./prepare_exe_dir.sh
832    JOB_FILE=${EXE_DIR}/run_job.sh
833    NPROC=32
834    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
835    cd ${EXE_DIR}
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
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
849    cd ${SETTE_DIR}
850    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
851    cd ${SETTE_DIR}
852    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
853
854    cd ${SETTE_DIR}
855    export TEST_NAME="REPRO_4_8"
856    . ./prepare_exe_dir.sh
857    cd ${EXE_DIR}
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
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
871    cd ${SETTE_DIR}
872    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
873    cd ${SETTE_DIR}
874    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
875fi
876
877
878# TESTS FOR ORCA2_SAS_LIM CONFIGURATION
879if [ ${config} -eq 11 ] ;  then
880    ## Restartability tests for SAS
881    export TEST_NAME="LONG"
882    cd ${CONFIG_DIR}
883    . ./makenemo -m ${CMP_NAM} -n SAS_LONG -r ORCA2_SAS_LIM -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
884    cd ${SETTE_DIR}
885    . ./param.cfg
886    . ./all_functions.sh
887    . ./prepare_exe_dir.sh
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.
898    set_namelist namelist_cfg nn_fwb 0
899    set_namelist namelist_cfg jpni 8
900    set_namelist namelist_cfg jpnj 4
901    set_namelist namelist_cfg jpnij 32
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
907    cd ${SETTE_DIR}
908    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
909
910    cd ${SETTE_DIR}
911    export TEST_NAME="SHORT"
912    . ./prepare_exe_dir.sh
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.
919    set_namelist namelist_cfg nn_fwb 0
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
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
935    cd ${SETTE_DIR}
936    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
937    cd ${SETTE_DIR}
938    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
939fi
940
941if [ ${config} -eq 12 ] ;  then
942## Reproducibility tests for ORCA2_SAS_LIM
943    export TEST_NAME="REPRO_8_4"
944    cd ${CONFIG_DIR}
945    . ./makenemo -m ${CMP_NAM} -n SAS_32 -r ORCA2_SAS_LIM -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS}
946    cd ${SETTE_DIR}
947    . ./param.cfg
948    . ./all_functions.sh
949    . ./prepare_exe_dir.sh
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.
959    set_namelist namelist_cfg nn_fwb 0
960    set_namelist namelist_cfg jpni 8
961    set_namelist namelist_cfg jpnj 4
962    set_namelist namelist_cfg jpnij 32
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
968    cd ${SETTE_DIR}
969    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE}  ${NUM_XIOSERVERS}
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"
974    . ./prepare_exe_dir.sh
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.
981    set_namelist namelist_cfg nn_fwb 0
982    set_namelist namelist_cfg jpni 4
983    set_namelist namelist_cfg jpnj 8
984    set_namelist namelist_cfg jpnij 32
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
990    cd ${SETTE_DIR}
991    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
992    cd ${SETTE_DIR}
993    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
994fi
995
996# TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests)
997if [ ${config} -eq 13 ] ;  then
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}
1003    . ./param.cfg
1004    . ./all_functions.sh
1005    . ./prepare_exe_dir.sh
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.
1014    set_namelist namelist_cfg nn_fwb 0
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
1033done
Note: See TracBrowser for help on using the repository browser.