source: trunk/NEMOGCM/SETTE/new_sette.sh @ 8852

Last change on this file since 8852 was 8852, checked in by clevy, 3 years ago

improve SETTE report reliability , ticket #1983

  • Property svn:executable set to *
File size: 52.7 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 -vx
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=X64_ADA
91
92export BATCH_COMMAND_PAR="llsubmit"
93export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR
94export INTERACT_FLAG="no"
95export MPIRUN_FLAG="yes"
96export USING_XIOS="yes"
97#
98export DEL_KEYS="key_iomput"
99if [ ${USING_XIOS} == "yes" ] 
100 then
101   export DEL_KEYS=""
102fi
103#
104# Settings which control the use of stand alone servers (only relevant if using xios)
105#
106export USING_MPMD="no"
107export NUM_XIOSERVERS=4
108export JOB_PREFIX=batch-mpmd
109#
110if [ ${USING_MPMD} == "no" ] 
111 then
112   export NUM_XIOSERVERS=0
113   export JOB_PREFIX=batch
114fi
115#
116#
117if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no"]
118 then
119   echo "Incompatible choices. MPMD mode requires the XIOS server"
120   exit
121fi
122
123# Directory to run the tests
124SETTE_DIR=$(cd $(dirname "$0"); pwd)
125MAIN_DIR=$(dirname $SETTE_DIR)
126CONFIG_DIR0=${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_PISCES       :  1
136# ORCA2_LIM3_PISCES :  2
137# ORCA2_OFF_PISCES  :  3
138# AMM12             :  4
139# SAS               :  5     fos SAS there is no solver so is useless to test REPRO
140# ISOMIP            :  6
141# ORCA2_LIM3_OBS    :  7
142# ORCA2_AGRIF_LIM3  :  8
143# ORCA2AGR          :  9 & 10  AGRIF active with no zoom, compared to no AGRIF cpp key
144
145for config in 1 2 3 4 5 6 7 8 9 10
146do
147
148# TESTS FOR GYRE_PISCES CONFIGURATION
149if [ ${config} -eq 1 ] ;  then
150    ## Restartability tests for GYRE_PISCES
151    export TEST_NAME="LONG"
152    cd ${CONFIG_DIR0}
153    . ./makenemo -m ${CMP_NAM} -n GYREPIS_ST -r GYRE_PISCES -j 8 del_key ${DEL_KEYS}
154    cd ${SETTE_DIR}
155    . ./param.cfg
156    . ./all_functions.sh
157    . ./prepare_exe_dir.sh
158    JOB_FILE=${EXE_DIR}/run_job.sh
159    NPROC=32
160    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
161    cd ${EXE_DIR} 
162    set_namelist namelist_cfg cn_exp \"GYREPIS_LONG\"
163    set_namelist namelist_cfg nn_it000 1
164    set_namelist namelist_cfg nn_itend 120
165    set_namelist namelist_cfg nn_stock 60
166    set_namelist namelist_cfg ln_clobber .true.
167    set_namelist namelist_cfg ln_linssh .true.
168    set_namelist namelist_cfg ln_read_cfg .false.
169    set_namelist namelist_cfg nn_fwb 0
170    set_namelist namelist_cfg jpni 4
171    set_namelist namelist_cfg jpnj 8
172    set_namelist namelist_cfg jpnij 32
173    if [ ${USING_MPMD} == "yes" ] ; then
174       set_xio_using_server iodef.xml true
175    else
176       set_xio_using_server iodef.xml false
177    fi
178    cd ${SETTE_DIR}
179    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
180
181    cd ${SETTE_DIR}
182    export TEST_NAME="SHORT"
183    . ./prepare_exe_dir.sh
184    cd ${EXE_DIR}
185    set_namelist namelist_cfg cn_exp \"GYREPIS_SHORT\"
186    set_namelist namelist_cfg nn_it000 61
187    set_namelist namelist_cfg nn_itend 120
188    set_namelist namelist_cfg nn_stock 60
189    set_namelist namelist_cfg ln_rstart .true.
190    set_namelist namelist_cfg nn_rstctl 2
191    set_namelist namelist_cfg ln_clobber .true.
192    set_namelist namelist_cfg ln_linssh .true.
193    set_namelist namelist_cfg ln_read_cfg .false.
194    set_namelist namelist_cfg nn_fwb 0
195    set_namelist namelist_cfg jpni 4
196    set_namelist namelist_cfg jpnj 8
197    set_namelist namelist_cfg jpnij 32
198    set_namelist namelist_top_cfg ln_rsttr .true.
199    set_namelist namelist_top_cfg nn_rsttr 2
200    set_namelist namelist_cfg cn_ocerst_in \"GYREPIS_LONG_00000060_restart\"
201    set_namelist namelist_top_cfg cn_trcrst_in \"GYREPIS_LONG_00000060_restart_trc\"
202    if [ ${USING_MPMD} == "yes" ] ; then
203       set_xio_using_server iodef.xml true
204    else
205       set_xio_using_server iodef.xml false
206    fi
207    for (( i=1; i<=$NPROC; i++)) ; do
208        L_NPROC=$(( $i - 1 ))
209        L_NPROC=`printf "%04d\n" ${L_NPROC}`
210        ln -sf ../LONG/GYREPIS_LONG_00000060_restart_${L_NPROC}.nc .
211        ln -sf ../LONG/GYREPIS_LONG_00000060_restart_trc_${L_NPROC}.nc .
212    done
213    if [ ${USING_MPMD} == "yes" ] ; then
214       set_xio_using_server iodef.xml true
215    else
216       set_xio_using_server iodef.xml false
217    fi
218    cd ${SETTE_DIR}
219    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
220    cd ${SETTE_DIR}
221    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
222
223    ## Reproducibility tests for GYRE_PISCES
224    export TEST_NAME="REPRO_4_8"
225    cd ${CONFIG_DIR0}
226    cd ${SETTE_DIR}
227    . ./param.cfg
228    . ./all_functions.sh
229    . ./prepare_exe_dir.sh
230    JOB_FILE=${EXE_DIR}/run_job.sh
231    NPROC=32
232    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
233    cd ${EXE_DIR}
234    set_namelist namelist_cfg cn_exp \"GYREPIS_48\"
235    set_namelist namelist_cfg nn_it000 1
236    set_namelist namelist_cfg nn_itend 60
237    set_namelist namelist_cfg nn_fwb 0
238    set_namelist namelist_cfg ln_ctl .false.
239    set_namelist namelist_cfg ln_clobber .true.
240    set_namelist namelist_cfg ln_linssh .true.
241    set_namelist namelist_cfg ln_read_cfg .false.
242    set_namelist namelist_cfg jpni 4
243    set_namelist namelist_cfg jpnj 8
244    set_namelist namelist_cfg jpnij 32
245    if [ ${USING_MPMD} == "yes" ] ; then
246       set_xio_using_server iodef.xml true
247    else
248       set_xio_using_server iodef.xml false
249    fi
250    cd ${SETTE_DIR}
251    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
252    cd ${SETTE_DIR}
253    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
254
255    cd ${SETTE_DIR}
256    export TEST_NAME="REPRO_8_4"
257    . ./prepare_exe_dir.sh
258    JOB_FILE=${EXE_DIR}/run_job.sh
259    NPROC=32
260    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
261    cd ${EXE_DIR}
262    set_namelist namelist_cfg cn_exp \"GYREPIS_84\"
263    set_namelist namelist_cfg nn_it000 1
264    set_namelist namelist_cfg nn_itend 60
265    set_namelist namelist_cfg nn_fwb 0
266    set_namelist namelist_cfg ln_ctl .false.
267    set_namelist namelist_cfg ln_clobber .true.
268    set_namelist namelist_cfg ln_linssh .true.
269    set_namelist namelist_cfg ln_read_cfg .false.
270    set_namelist namelist_cfg jpni 8
271    set_namelist namelist_cfg jpnj 4
272    set_namelist namelist_cfg jpnij 32
273    if [ ${USING_MPMD} == "yes" ] ; then
274       set_xio_using_server iodef.xml true
275    else
276       set_xio_using_server iodef.xml false
277    fi
278    cd ${SETTE_DIR}
279    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
280    cd ${SETTE_DIR}
281    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
282
283fi
284
285# TESTS FOR ORCA2_LIM3_PISCES CONFIGURATION
286if [ ${config} -eq 2 ] ;  then
287    ## Restartability tests for ORCA2_LIM3_PISCES
288    export TEST_NAME="LONG"
289    cd ${CONFIG_DIR0}
290    . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3PIS_ST -r ORCA2_LIM3_PISCES -j 8 del_key ${DEL_KEYS}
291    cd ${SETTE_DIR}
292    . ./param.cfg
293    . ./all_functions.sh
294    . ./prepare_exe_dir.sh
295    JOB_FILE=${EXE_DIR}/run_job.sh
296    NPROC=32
297    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
298    cd ${EXE_DIR}
299    set_namelist namelist_cfg cn_exp \"O2L3P_LONG\"
300    set_namelist namelist_cfg nn_it000 1
301    set_namelist namelist_cfg nn_itend 150
302    set_namelist namelist_cfg nn_stock 75
303    set_namelist namelist_cfg ln_clobber .true.
304    set_namelist namelist_cfg ln_read_cfg .true.
305    set_namelist namelist_cfg ln_linssh .false.
306    set_namelist namelist_cfg nn_fwb 0
307    set_namelist namelist_cfg jpni 4
308    set_namelist namelist_cfg jpnj 8
309    set_namelist namelist_cfg jpnij 32
310    set_namelist namelist_top_cfg ln_trcdta .false.
311    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
312    # if not you need input files, and for tests is not necessary
313    set_namelist namelist_pisces_cfg ln_presatm .false.
314    set_namelist namelist_pisces_cfg ln_varpar .false.
315    set_namelist namelist_pisces_cfg ln_dust .false.
316    set_namelist namelist_pisces_cfg ln_solub .false.
317    set_namelist namelist_pisces_cfg ln_river .false.
318    set_namelist namelist_pisces_cfg ln_ndepo .false.
319    set_namelist namelist_pisces_cfg ln_ironsed .false.
320    set_namelist namelist_pisces_cfg ln_ironice .false.
321    set_namelist namelist_pisces_cfg ln_hydrofe .false.
322    if [ ${USING_MPMD} == "yes" ] ; then
323       set_xio_using_server iodef.xml true
324    else
325       set_xio_using_server iodef.xml false
326    fi
327    cd ${SETTE_DIR}
328    . ./prepare_job.sh input_ORCA2_LIM3_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
329   
330    cd ${SETTE_DIR}
331    export TEST_NAME="SHORT"
332    . ./prepare_exe_dir.sh
333    cd ${EXE_DIR}
334    set_namelist namelist_cfg cn_exp \"O2L3P_SHORT\"
335    set_namelist namelist_cfg nn_it000 76
336    set_namelist namelist_cfg nn_itend 150
337    set_namelist namelist_cfg nn_stock 75
338    set_namelist namelist_cfg ln_rstart .true.
339    set_namelist namelist_cfg nn_rstctl 2
340    set_namelist namelist_cfg ln_clobber .true.
341    set_namelist namelist_cfg ln_read_cfg .true.
342    set_namelist namelist_cfg ln_linssh .false.
343    set_namelist namelist_cfg ln_icebergs .true.
344    set_namelist namelist_cfg nn_fwb 0
345    set_namelist namelist_cfg jpni 4
346    set_namelist namelist_cfg jpnj 8
347    set_namelist namelist_cfg jpnij 32
348    set_namelist namelist_top_cfg ln_rsttr .true.
349    set_namelist namelist_top_cfg nn_rsttr 2
350    set_namelist namelist_cfg cn_ocerst_in \"O2L3P_LONG_00000075_restart\"
351    set_namelist namelist_ice_cfg cn_icerst_in \"O2L3P_LONG_00000075_restart_ice\"
352    set_namelist namelist_top_cfg cn_trcrst_in \"O2L3P_LONG_00000075_restart_trc\"
353    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
354    # if not you need input files, and for tests is not necessary
355    set_namelist namelist_pisces_cfg ln_presatm .false.
356    set_namelist namelist_pisces_cfg ln_varpar .false.
357    set_namelist namelist_pisces_cfg ln_dust .false.
358    set_namelist namelist_pisces_cfg ln_solub .false.
359    set_namelist namelist_pisces_cfg ln_river .false.
360    set_namelist namelist_pisces_cfg ln_ndepo .false.
361    set_namelist namelist_pisces_cfg ln_ironsed .false.
362    set_namelist namelist_pisces_cfg ln_ironice .false.
363    set_namelist namelist_pisces_cfg ln_hydrofe .false.
364    # put ln_pisdmp to false : no restoring to global mean value
365    set_namelist namelist_pisces_cfg ln_pisdmp .false.
366    for (( i=1; i<=$NPROC; i++)) ; do
367        L_NPROC=$(( $i - 1 ))
368        L_NPROC=`printf "%04d\n" ${L_NPROC}`
369        ln -sf ../LONG/O2L3P_LONG_00000075_restart_${L_NPROC}.nc .
370        ln -sf ../LONG/O2L3P_LONG_00000075_restart_trc_${L_NPROC}.nc .
371        ln -sf ../LONG/O2L3P_LONG_00000075_restart_ice_${L_NPROC}.nc .
372        ln -sf ../LONG/O2L3P_LONG_icebergs_00000075_restart_${L_NPROC}.nc O2L3P_LONG_00000075_restart_icebergs_${L_NPROC}.nc
373    done
374    if [ ${USING_MPMD} == "yes" ] ; then
375       set_xio_using_server iodef.xml true
376    else
377       set_xio_using_server iodef.xml false
378    fi
379    cd ${SETTE_DIR}
380    . ./prepare_job.sh input_ORCA2_LIM3_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
381    cd ${SETTE_DIR}
382    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
383
384    ## Reproducibility tests for ORCA2_LIM3_PISCES
385    export TEST_NAME="REPRO_4_8"
386    cd ${CONFIG_DIR0}
387    cd ${SETTE_DIR}
388    . ./param.cfg
389    . ./all_functions.sh
390    . ./prepare_exe_dir.sh
391    JOB_FILE=${EXE_DIR}/run_job.sh
392    NPROC=32
393    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
394    cd ${EXE_DIR}
395    set_namelist namelist_cfg nn_it000 1
396    set_namelist namelist_cfg nn_itend 75
397    set_namelist namelist_cfg nn_fwb 0
398    set_namelist namelist_cfg ln_ctl .false.
399    set_namelist namelist_cfg ln_clobber .true.
400    set_namelist namelist_cfg ln_read_cfg .true.
401    set_namelist namelist_cfg ln_linssh .false.
402    set_namelist namelist_cfg ln_icebergs .true.
403    set_namelist namelist_cfg jpni 4
404    set_namelist namelist_cfg jpnj 8
405    set_namelist namelist_cfg jpnij 32
406    set_namelist namelist_top_cfg ln_trcdta .false.
407    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
408    # if not you need input files, and for tests is not necessary
409    set_namelist namelist_pisces_cfg ln_presatm .false.
410    set_namelist namelist_pisces_cfg ln_varpar .false.
411    set_namelist namelist_pisces_cfg ln_dust .false.
412    set_namelist namelist_pisces_cfg ln_solub .false.
413    set_namelist namelist_pisces_cfg ln_river .false.
414    set_namelist namelist_pisces_cfg ln_ndepo .false.
415    set_namelist namelist_pisces_cfg ln_ironsed .false.
416    set_namelist namelist_pisces_cfg ln_ironice .false.
417    set_namelist namelist_pisces_cfg ln_hydrofe .false.
418    # put ln_pisdmp to false : no restoring to global mean value
419    set_namelist namelist_pisces_cfg ln_pisdmp .false.
420    if [ ${USING_MPMD} == "yes" ] ; then
421       set_xio_using_server iodef.xml true
422    else
423       set_xio_using_server iodef.xml false
424    fi
425    cd ${SETTE_DIR}
426    . ./prepare_job.sh input_ORCA2_LIM3_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
427    cd ${SETTE_DIR}
428    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
429
430    cd ${SETTE_DIR}
431    export TEST_NAME="REPRO_8_4"
432    . ./prepare_exe_dir.sh
433    JOB_FILE=${EXE_DIR}/run_job.sh
434    NPROC=32
435    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
436    cd ${EXE_DIR}
437    set_namelist namelist_cfg nn_it000 1
438    set_namelist namelist_cfg nn_itend 75
439    set_namelist namelist_cfg ln_clobber .true.
440    set_namelist namelist_cfg ln_read_cfg .true.
441    set_namelist namelist_cfg ln_linssh .false.
442    set_namelist namelist_cfg ln_icebergs .true.
443    set_namelist namelist_cfg nn_fwb 0
444    set_namelist namelist_cfg jpni 8
445    set_namelist namelist_cfg jpnj 4
446    set_namelist namelist_cfg jpnij 32
447    set_namelist namelist_top_cfg ln_trcdta .false.
448    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
449    # if not you need input files, and for tests is not necessary
450    set_namelist namelist_pisces_cfg ln_presatm .false.
451    set_namelist namelist_pisces_cfg ln_varpar .false.
452    set_namelist namelist_pisces_cfg ln_dust .false.
453    set_namelist namelist_pisces_cfg ln_solub .false.
454    set_namelist namelist_pisces_cfg ln_river .false.
455    set_namelist namelist_pisces_cfg ln_ndepo .false.
456    set_namelist namelist_pisces_cfg ln_ironsed .false.
457    set_namelist namelist_pisces_cfg ln_ironice .false.
458    set_namelist namelist_pisces_cfg ln_hydrofe .false.
459    # put ln_pisdmp to false : no restoring to global mean value
460    set_namelist namelist_pisces_cfg ln_pisdmp .false.
461    if [ ${USING_MPMD} == "yes" ] ; then
462       set_xio_using_server iodef.xml true
463    else
464       set_xio_using_server iodef.xml false
465    fi
466    cd ${SETTE_DIR}
467    . ./prepare_job.sh input_ORCA2_LIM3_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
468    cd ${SETTE_DIR}
469    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
470fi
471
472# TESTS FOR ORCA2_OFF_PISCES CONFIGURATION
473if [ ${config} -eq 3 ] ;  then
474    ## Restartability tests for ORCA2_OFF_PISCES
475    export TEST_NAME="LONG"
476    cd ${CONFIG_DIR0}
477    . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_ST -r ORCA2_OFF_PISCES -j 8 del_key ${DEL_KEYS}
478    cd ${SETTE_DIR}
479    . ./param.cfg
480    . ./all_functions.sh
481    . ./prepare_exe_dir.sh
482    JOB_FILE=${EXE_DIR}/run_job.sh
483    NPROC=32
484    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
485    cd ${EXE_DIR}
486    set_namelist namelist_cfg cn_exp \"OFFP_LONG\"
487    set_namelist namelist_cfg nn_it000 1
488    set_namelist namelist_cfg nn_itend 40
489    set_namelist namelist_cfg nn_stock 20
490    set_namelist namelist_cfg ln_clobber .true.
491    set_namelist namelist_cfg ln_read_cfg .true.
492    set_namelist namelist_cfg ln_linssh .true.
493    set_namelist namelist_cfg jpni 4
494    set_namelist namelist_cfg jpnj 8
495    set_namelist namelist_cfg jpnij 32
496    set_namelist namelist_top_cfg ln_trcdta .false.
497    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
498    # if not you need input files, and for tests is not necessary
499    set_namelist namelist_pisces_cfg ln_presatm .false.
500    set_namelist namelist_pisces_cfg ln_varpar .false.
501    set_namelist namelist_pisces_cfg ln_dust .false.
502    set_namelist namelist_pisces_cfg ln_solub .false.
503    set_namelist namelist_pisces_cfg ln_river .false.
504    set_namelist namelist_pisces_cfg ln_ndepo .false.
505    set_namelist namelist_pisces_cfg ln_ironsed .false.
506    set_namelist namelist_pisces_cfg ln_ironice .false.
507    set_namelist namelist_pisces_cfg ln_hydrofe .false.
508    # put ln_pisdmp to false : no restoring to global mean value
509    set_namelist namelist_pisces_cfg ln_pisdmp .false.
510    if [ ${USING_MPMD} == "yes" ] ; then
511       set_xio_using_server iodef.xml true
512    else
513       set_xio_using_server iodef.xml false
514    fi
515    cd ${SETTE_DIR}
516    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
517   
518    cd ${SETTE_DIR}
519    export TEST_NAME="SHORT"
520    . ./prepare_exe_dir.sh
521    cd ${EXE_DIR}
522    set_namelist namelist_cfg cn_exp \"OFFP_SHORT\"
523    set_namelist namelist_cfg nn_it000 21
524    set_namelist namelist_cfg nn_itend 40
525    set_namelist namelist_cfg nn_stock 20
526    set_namelist namelist_cfg ln_clobber .true.
527    set_namelist namelist_cfg ln_read_cfg .true.
528    set_namelist namelist_cfg ln_linssh .true.
529    set_namelist namelist_cfg jpni 4
530    set_namelist namelist_cfg jpnj 8
531    set_namelist namelist_cfg jpnij 32
532    set_namelist namelist_top_cfg ln_rsttr .true.
533    set_namelist namelist_top_cfg nn_rsttr 2
534    set_namelist namelist_top_cfg cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\"
535    for (( i=1; i<=$NPROC; i++)) ; do
536        L_NPROC=$(( $i - 1 ))
537        L_NPROC=`printf "%04d\n" ${L_NPROC}`
538        ln -sf ../LONG/OFFP_LONG_00000020_restart_trc_${L_NPROC}.nc .
539    done
540    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
541    # if not you need input files, and for tests is not necessary
542    set_namelist namelist_pisces_cfg ln_presatm .false.
543    set_namelist namelist_pisces_cfg ln_varpar .false.
544    set_namelist namelist_pisces_cfg ln_dust .false.
545    set_namelist namelist_pisces_cfg ln_solub .false.
546    set_namelist namelist_pisces_cfg ln_river .false.
547    set_namelist namelist_pisces_cfg ln_ndepo .false.
548    set_namelist namelist_pisces_cfg ln_ironsed .false.
549    set_namelist namelist_pisces_cfg ln_ironice .false.
550    set_namelist namelist_pisces_cfg ln_hydrofe .false.
551    # put ln_pisdmp to false : no restoring to global mean value
552    set_namelist namelist_pisces_cfg ln_pisdmp .false.
553    if [ ${USING_MPMD} == "yes" ] ; then
554       set_xio_using_server iodef.xml true
555    else
556       set_xio_using_server iodef.xml false
557    fi
558    cd ${SETTE_DIR}
559    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME}  ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
560    cd ${SETTE_DIR}
561    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
562
563    ## Reproducibility tests for ORCA2_OFF_PISCES
564    export TEST_NAME="REPRO_4_8"
565    cd ${CONFIG_DIR0}
566    cd ${SETTE_DIR}
567    . ./param.cfg
568    . ./all_functions.sh
569    . ./prepare_exe_dir.sh
570    JOB_FILE=${EXE_DIR}/run_job.sh
571    NPROC=32
572    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
573    cd ${EXE_DIR}
574    set_namelist namelist_cfg nn_it000 1
575    set_namelist namelist_cfg nn_itend 40
576    set_namelist namelist_cfg ln_ctl .false.
577    set_namelist namelist_cfg ln_clobber .true.
578    set_namelist namelist_cfg ln_read_cfg .true.
579    set_namelist namelist_cfg ln_linssh .true.
580    set_namelist namelist_cfg jpni 4
581    set_namelist namelist_cfg jpnj 8
582    set_namelist namelist_cfg jpnij 32
583    set_namelist namelist_top_cfg ln_trcdta .false.
584    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
585    # if not you need input files, and for tests is not necessary
586    set_namelist namelist_pisces_cfg ln_presatm .false.
587    set_namelist namelist_pisces_cfg ln_varpar .false.
588    set_namelist namelist_pisces_cfg ln_dust .false.
589    set_namelist namelist_pisces_cfg ln_solub .false.
590    set_namelist namelist_pisces_cfg ln_river .false.
591    set_namelist namelist_pisces_cfg ln_ndepo .false.
592    set_namelist namelist_pisces_cfg ln_ironsed .false.
593    set_namelist namelist_pisces_cfg ln_ironice .false.
594    set_namelist namelist_pisces_cfg ln_hydrofe .false.
595    # put ln_pisdmp to false : no restoring to global mean value
596    set_namelist namelist_pisces_cfg ln_pisdmp .false.
597    if [ ${USING_MPMD} == "yes" ] ; then
598       set_xio_using_server iodef.xml true
599    else
600       set_xio_using_server iodef.xml false
601    fi
602    cd ${SETTE_DIR}
603    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
604    cd ${SETTE_DIR}
605    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
606
607    cd ${SETTE_DIR}
608    export TEST_NAME="REPRO_8_4"
609    . ./prepare_exe_dir.sh
610    JOB_FILE=${EXE_DIR}/run_job.sh
611    NPROC=32
612    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
613    cd ${EXE_DIR}
614    set_namelist namelist_cfg nn_it000 1
615    set_namelist namelist_cfg nn_itend 40
616    set_namelist namelist_cfg ln_ctl .false.
617    set_namelist namelist_cfg ln_clobber .true.
618    set_namelist namelist_cfg ln_read_cfg .true.
619    set_namelist namelist_cfg ln_linssh .true.
620    set_namelist namelist_cfg jpni 8
621    set_namelist namelist_cfg jpnj 4
622    set_namelist namelist_cfg jpnij 32
623    set_namelist namelist_top_cfg ln_trcdta .false.
624    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
625    # if not you need input files, and for tests is not necessary
626    set_namelist namelist_pisces_cfg ln_presatm .false.
627    set_namelist namelist_pisces_cfg ln_varpar .false.
628    set_namelist namelist_pisces_cfg ln_dust .false.
629    set_namelist namelist_pisces_cfg ln_solub .false.
630    set_namelist namelist_pisces_cfg ln_river .false.
631    set_namelist namelist_pisces_cfg ln_ndepo .false.
632    set_namelist namelist_pisces_cfg ln_ironsed .false.
633    set_namelist namelist_pisces_cfg ln_ironice .false.
634    set_namelist namelist_pisces_cfg ln_hydrofe .false.
635    # put ln_pisdmp to false : no restoring to global mean value
636    set_namelist namelist_pisces_cfg ln_pisdmp .false.
637    if [ ${USING_MPMD} == "yes" ] ; then
638       set_xio_using_server iodef.xml true
639    else
640       set_xio_using_server iodef.xml false
641    fi
642    cd ${SETTE_DIR}
643    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
644    cd ${SETTE_DIR}
645    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
646fi
647
648# TESTS FOR AMM12 CONFIGURATION
649if [ ${config} -eq 4 ] ;  then
650    ## Restartability tests for AMM12
651    export TEST_NAME="LONG"
652    cd ${CONFIG_DIR0}
653    . ./makenemo -m ${CMP_NAM} -n AMM12_ST -r AMM12 -j 8 del_key ${DEL_KEYS}
654    cd ${SETTE_DIR}
655    . ./param.cfg
656    . ./all_functions.sh
657    . ./prepare_exe_dir.sh
658    JOB_FILE=${EXE_DIR}/run_job.sh
659    NPROC=32
660    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
661    cd ${EXE_DIR}
662    set_namelist namelist_cfg nn_it000 1
663    set_namelist namelist_cfg nn_itend 576
664    set_namelist namelist_cfg nn_stock 288
665    set_namelist namelist_cfg nn_fwb 0
666    set_namelist namelist_cfg ln_ctl .false.
667    set_namelist namelist_cfg ln_clobber .true.
668    set_namelist namelist_cfg ln_read_cfg .true.
669    set_namelist namelist_cfg ln_linssh .false.
670    set_namelist namelist_cfg jpni 4
671    set_namelist namelist_cfg jpnj 8
672    set_namelist namelist_cfg jpnij 32
673    if [ ${USING_MPMD} == "yes" ] ; then
674       set_xio_using_server iodef.xml true
675    else
676       set_xio_using_server iodef.xml false
677    fi
678    cd ${SETTE_DIR}
679    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
680
681    cd ${SETTE_DIR}
682    export TEST_NAME="SHORT"
683    . ./prepare_exe_dir.sh
684    cd ${EXE_DIR}
685    set_namelist namelist_cfg nn_it000 289
686    set_namelist namelist_cfg nn_itend 576
687    set_namelist namelist_cfg nn_fwb 0
688    set_namelist namelist_cfg ln_ctl .false.
689    set_namelist namelist_cfg ln_clobber .true.
690    set_namelist namelist_cfg ln_read_cfg .true.
691    set_namelist namelist_cfg ln_linssh .false.
692    set_namelist namelist_cfg jpni 4
693    set_namelist namelist_cfg jpnj 8
694    set_namelist namelist_cfg jpnij 32
695    set_namelist namelist_cfg ln_rstart .true.
696    set_namelist namelist_cfg nn_rstctl 2
697    set_namelist namelist_cfg cn_ocerst_in \"AMM12_00000288_restart_oce_out\"
698    set_namelist namelist_cfg nn_date0 20120102
699    for (( i=1; i<=$NPROC; i++)) ; do
700        L_NPROC=$(( $i - 1 ))
701        L_NPROC=`printf "%04d\n" ${L_NPROC}`
702        ln -sf ../LONG/AMM12_00000288_restart_oce_out_${L_NPROC}.nc .
703    done
704    if [ ${USING_MPMD} == "yes" ] ; then
705       set_xio_using_server iodef.xml true
706    else
707       set_xio_using_server iodef.xml false
708    fi
709    cd ${SETTE_DIR}
710    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
711    cd ${SETTE_DIR}
712    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
713
714## Reproducibility tests for AMM12
715    export TEST_NAME="REPRO_8_4"
716    cd ${CONFIG_DIR0}
717    cd ${SETTE_DIR}
718    . ./param.cfg
719    . ./all_functions.sh
720    . ./prepare_exe_dir.sh
721    JOB_FILE=${EXE_DIR}/run_job.sh
722    NPROC=32
723    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
724    cd ${EXE_DIR}
725    set_namelist namelist_cfg nn_it000 1
726    set_namelist namelist_cfg nn_itend 576
727    set_namelist namelist_cfg nn_fwb 0
728    set_namelist namelist_cfg ln_ctl .false.
729    set_namelist namelist_cfg ln_clobber .true.
730    set_namelist namelist_cfg ln_read_cfg .true.
731    set_namelist namelist_cfg ln_linssh .false.
732    set_namelist namelist_cfg jpni 8
733    set_namelist namelist_cfg jpnj 4
734    set_namelist namelist_cfg jpnij 32
735    if [ ${USING_MPMD} == "yes" ] ; then
736       set_xio_using_server iodef.xml true
737    else
738       set_xio_using_server iodef.xml false
739    fi
740    cd ${SETTE_DIR}
741    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
742    cd ${SETTE_DIR}
743    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
744
745    cd ${SETTE_DIR}
746    export TEST_NAME="REPRO_4_8"
747    . ./prepare_exe_dir.sh
748    JOB_FILE=${EXE_DIR}/run_job.sh
749    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
750    cd ${EXE_DIR}
751    set_namelist namelist_cfg nn_it000 1
752    set_namelist namelist_cfg nn_itend 576
753    set_namelist namelist_cfg nn_fwb 0
754    set_namelist namelist_cfg ln_ctl .false.
755    set_namelist namelist_cfg ln_clobber .true.
756    set_namelist namelist_cfg ln_read_cfg .true.
757    set_namelist namelist_cfg ln_linssh .false.
758    set_namelist namelist_cfg jpni 4
759    set_namelist namelist_cfg jpnj 8
760    set_namelist namelist_cfg jpnij 32
761    if [ ${USING_MPMD} == "yes" ] ; then
762       set_xio_using_server iodef.xml true
763    else
764       set_xio_using_server iodef.xml false
765    fi
766    cd ${SETTE_DIR}
767    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
768    cd ${SETTE_DIR}
769    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
770fi
771
772
773# TESTS FOR ORCA2_SAS_LIM3 CONFIGURATION
774if [ ${config} -eq 5 ] ;  then
775    ## Restartability tests for SAS
776    export TEST_NAME="LONG"
777    cd ${CONFIG_DIR0}
778    . ./makenemo -m ${CMP_NAM} -n SAS_ST -r ORCA2_SAS_LIM3 -j 8 del_key ${DEL_KEYS}
779    cd ${SETTE_DIR}
780    . ./param.cfg
781    . ./all_functions.sh
782    . ./prepare_exe_dir.sh
783    JOB_FILE=${EXE_DIR}/run_job.sh
784    NPROC=32
785    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
786    cd ${EXE_DIR}
787    set_namelist namelist_cfg cn_exp \"SAS\"
788    set_namelist namelist_cfg nn_it000 1
789    set_namelist namelist_cfg nn_itend 240
790    set_namelist namelist_cfg nn_stock 120
791    set_namelist namelist_cfg ln_ctl .false.
792    set_namelist namelist_cfg ln_clobber .true.
793    set_namelist namelist_cfg ln_read_cfg .true.
794    set_namelist namelist_cfg ln_linssh .true.
795    set_namelist namelist_cfg nn_fwb 0
796    set_namelist namelist_cfg jpni 4
797    set_namelist namelist_cfg jpnj 8
798    set_namelist namelist_cfg jpnij 32
799    if [ ${USING_MPMD} == "yes" ] ; then
800       set_xio_using_server iodef.xml true
801    else
802       set_xio_using_server iodef.xml false
803    fi
804    cd ${SETTE_DIR}
805    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
806
807    cd ${SETTE_DIR}
808    export TEST_NAME="SHORT"
809    . ./prepare_exe_dir.sh
810    cd ${EXE_DIR}
811    set_namelist namelist_cfg cn_exp \"SAS\"
812    set_namelist namelist_cfg nn_it000 121
813    set_namelist namelist_cfg nn_itend 240
814    set_namelist namelist_cfg ln_ctl .false.
815    set_namelist namelist_cfg ln_clobber .true.
816    set_namelist namelist_cfg ln_read_cfg .true.
817    set_namelist namelist_cfg ln_linssh .true.
818    set_namelist namelist_cfg nn_fwb 0
819    set_namelist namelist_cfg jpni 4
820    set_namelist namelist_cfg jpnj 8
821    set_namelist namelist_cfg jpnij 32
822    set_namelist namelist_cfg ln_rstart .true.
823    set_namelist namelist_cfg nn_rstctl 2
824    set_namelist namelist_cfg nn_date0 010109
825    set_namelist namelist_cfg cn_ocerst_in \"SAS_00000120_restart\"
826    set_namelist namelist_ice_cfg cn_icerst_in \"SAS_00000120_restart_ice\"
827    if [ ${USING_MPMD} == "yes" ] ; then
828       set_xio_using_server iodef.xml true
829    else
830       set_xio_using_server iodef.xml false
831    fi
832    for (( i=1; i<=$NPROC; i++)) ; do
833        L_NPROC=$(( $i - 1 ))
834        L_NPROC=`printf "%04d\n" ${L_NPROC}`
835        ln -sf ../LONG/SAS_00000120_restart_${L_NPROC}.nc .
836        ln -sf ../LONG/SAS_00000120_restart_ice_${L_NPROC}.nc .
837    done
838    cd ${SETTE_DIR}
839    . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
840    cd ${SETTE_DIR}
841    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
842fi
843
844# TESTS FOR ISOMIP CONFIGURATION
845if [ ${config} -eq 6 ] ;  then
846    ## Restartability tests for ISOMIP
847    export TEST_NAME="LONG"
848    cd ${CONFIG_DIR0}
849    . ./makenemo -m ${CMP_NAM} -n ISOMIP_ST -r ISOMIP -a TEST_CASES -j 8 del_key ${DEL_KEYS}
850    cd ${SETTE_DIR}
851    . ./param.cfg
852    . ./all_functions.sh
853    . ./prepare_exe_dir.sh
854    JOB_FILE=${EXE_DIR}/run_job.sh
855    NPROC=32
856    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
857    cd ${EXE_DIR}
858    set_namelist namelist_cfg cn_exp \"ISOMIP_LONG\"
859    set_namelist namelist_cfg nn_it000 1
860    set_namelist namelist_cfg nn_itend 96
861    set_namelist namelist_cfg nn_stock 48
862    set_namelist namelist_cfg ln_clobber .true.
863    set_namelist namelist_cfg ln_read_cfg .false.
864    set_namelist namelist_cfg jpni 4
865    set_namelist namelist_cfg jpnj 8
866    set_namelist namelist_cfg jpnij 32
867    if [ ${USING_MPMD} == "yes" ] ; then
868       set_xio_using_server iodef.xml true
869    else
870       set_xio_using_server iodef.xml false
871    fi
872    cd ${SETTE_DIR}
873    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
874
875    cd ${SETTE_DIR}
876    export TEST_NAME="SHORT"
877    . ./prepare_exe_dir.sh
878    cd ${EXE_DIR}
879    set_namelist namelist_cfg cn_exp \"ISOMIP_SHORT\"
880    set_namelist namelist_cfg nn_it000 49
881    set_namelist namelist_cfg nn_itend 96
882    set_namelist namelist_cfg nn_stock 48
883    set_namelist namelist_cfg ln_rstart .true.
884    set_namelist namelist_cfg nn_rstctl 2
885    set_namelist namelist_cfg ln_clobber .true.
886    set_namelist namelist_cfg ln_read_cfg .false.
887    set_namelist namelist_cfg jpni 4
888    set_namelist namelist_cfg jpnj 8
889    set_namelist namelist_cfg jpnij 32
890    set_namelist namelist_cfg cn_ocerst_in \"ISOMIP_LONG_00000048_restart\"
891    if [ ${USING_MPMD} == "yes" ] ; then
892       set_xio_using_server iodef.xml true
893    else
894       set_xio_using_server iodef.xml false
895    fi
896    for (( i=1; i<=$NPROC; i++)) ; do
897        L_NPROC=$(( $i - 1 ))
898        L_NPROC=`printf "%04d\n" ${L_NPROC}`
899        ln -sf ../LONG/ISOMIP_LONG_00000048_restart_${L_NPROC}.nc .
900    done
901    if [ ${USING_MPMD} == "yes" ] ; then
902       set_xio_using_server iodef.xml true
903    else
904       set_xio_using_server iodef.xml false
905    fi
906    cd ${SETTE_DIR}
907    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
908    cd ${SETTE_DIR}
909    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
910
911    ## Reproducibility tests for ISOMIP
912    export TEST_NAME="REPRO_4_8"
913    cd ${CONFIG_DIR0}
914    cd ${SETTE_DIR}
915    . ./param.cfg
916    . ./all_functions.sh
917    . ./prepare_exe_dir.sh
918    JOB_FILE=${EXE_DIR}/run_job.sh
919    NPROC=32
920    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
921    cd ${EXE_DIR}
922    set_namelist namelist_cfg cn_exp \"ISOMIP_14\"
923    set_namelist namelist_cfg nn_it000 1
924    set_namelist namelist_cfg nn_itend 48
925    set_namelist namelist_cfg ln_ctl .false.
926    set_namelist namelist_cfg ln_clobber .true.
927    set_namelist namelist_cfg ln_read_cfg .false.
928    set_namelist namelist_cfg jpni 4
929    set_namelist namelist_cfg jpnj 8
930    set_namelist namelist_cfg jpnij 32
931    if [ ${USING_MPMD} == "yes" ] ; then
932       set_xio_using_server iodef.xml true
933    else
934       set_xio_using_server iodef.xml false
935    fi
936    cd ${SETTE_DIR}
937    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
938    cd ${SETTE_DIR}
939    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
940
941    cd ${SETTE_DIR}
942    export TEST_NAME="REPRO_8_4"
943    . ./prepare_exe_dir.sh
944    JOB_FILE=${EXE_DIR}/run_job.sh
945    NPROC=32
946    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
947    cd ${EXE_DIR}
948    set_namelist namelist_cfg cn_exp \"ISOMIP_22\"
949    set_namelist namelist_cfg nn_it000 1
950    set_namelist namelist_cfg nn_itend 48
951    set_namelist namelist_cfg ln_ctl .false.
952    set_namelist namelist_cfg ln_clobber .true.
953    set_namelist namelist_cfg ln_read_cfg .false.
954    set_namelist namelist_cfg jpni 8
955    set_namelist namelist_cfg jpnj 4
956    set_namelist namelist_cfg jpnij 32
957    if [ ${USING_MPMD} == "yes" ] ; then
958       set_xio_using_server iodef.xml true
959    else
960       set_xio_using_server iodef.xml false
961    fi
962    cd ${SETTE_DIR}
963    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
964    cd ${SETTE_DIR}
965    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
966
967fi
968
969## Test assimilation interface code, OBS and ASM for reproducibility
970## Restartability not tested (ASM code not restartable while increments are being applied)
971if [ ${config} -eq 7 ] ; then
972   ## Reproducibility tests for ORCA2_LIM3_OBS
973    export TEST_NAME="REPRO_4_8"
974    cd ${CONFIG_DIR0}
975    . ./makenemo -m ${CMP_NAM} -n ORCA2_LIM3_OBS_ST -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3"  -j 8 add_key "key_asminc" del_key "key_top"
976    cd ${SETTE_DIR}
977    . ./param.cfg
978    . ./all_functions.sh
979    . ./prepare_exe_dir.sh
980    JOB_FILE=${EXE_DIR}/run_job.sh
981    NPROC=32
982    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
983    cd ${EXE_DIR}
984    set_namelist namelist_cfg nn_it000 1
985    set_namelist namelist_cfg nn_itend 75
986    set_namelist namelist_cfg nn_fwb 0
987    set_namelist namelist_cfg ln_ctl .false.
988    set_namelist namelist_cfg ln_clobber .true.
989    set_namelist namelist_cfg ln_read_cfg .true.
990    set_namelist namelist_cfg ln_linssh .false.
991    set_namelist namelist_cfg ln_icebergs .false.
992    set_namelist namelist_cfg jpni 4
993    set_namelist namelist_cfg jpnj 8
994    set_namelist namelist_cfg jpnij 32
995    set_namelist namelist_cfg ln_diaobs .true.
996    set_namelist namelist_cfg ln_t3d .true.
997    set_namelist namelist_cfg ln_s3d .true.
998    set_namelist namelist_cfg ln_sst .true.
999    set_namelist namelist_cfg ln_sla .true.
1000    set_namelist namelist_cfg ln_sic .true.
1001    set_namelist namelist_cfg ln_vel3d .true.
1002    set_namelist namelist_cfg ln_bkgwri .true.
1003    set_namelist namelist_cfg ln_trainc .true.
1004    set_namelist namelist_cfg ln_dyninc .true.
1005    set_namelist namelist_cfg ln_sshinc .true.
1006    set_namelist namelist_cfg ln_asmiau .true.
1007    #remove all useless options for pisces (due to ORCA2_LIM3_PISCES reference configuration)
1008    set_namelist namelist_top_cfg ln_trcdta .false.
1009    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
1010    # if not you need input files, and for tests is not necessary
1011    set_namelist namelist_pisces_cfg ln_presatm .false.
1012    set_namelist namelist_pisces_cfg ln_varpar .false.
1013    set_namelist namelist_pisces_cfg ln_dust .false.
1014    set_namelist namelist_pisces_cfg ln_solub .false.
1015    set_namelist namelist_pisces_cfg ln_river .false.
1016    set_namelist namelist_pisces_cfg ln_ndepo .false.
1017    set_namelist namelist_pisces_cfg ln_ironsed .false.
1018    set_namelist namelist_pisces_cfg ln_ironice .false.
1019    set_namelist namelist_pisces_cfg ln_hydrofe .false.
1020    if [ ${USING_MPMD} == "yes" ] ; then
1021       set_xio_using_server iodef.xml true
1022    else
1023       set_xio_using_server iodef.xml false
1024    fi
1025    cd ${SETTE_DIR}
1026    . ./prepare_job.sh input_ORCA2_LIM3_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1027    cd ${SETTE_DIR}
1028    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1029
1030   cd ${SETTE_DIR}
1031    export TEST_NAME="REPRO_8_4"
1032    . ./prepare_exe_dir.sh
1033    JOB_FILE=${EXE_DIR}/run_job.sh
1034    NPROC=32
1035    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1036    cd ${EXE_DIR}
1037    set_namelist namelist_cfg nn_it000 1
1038    set_namelist namelist_cfg nn_itend 75
1039    set_namelist namelist_cfg nn_fwb 0
1040    set_namelist namelist_cfg ln_ctl .false.
1041    set_namelist namelist_cfg ln_clobber .true.
1042    set_namelist namelist_cfg ln_read_cfg .true.
1043    set_namelist namelist_cfg ln_linssh .false.
1044    set_namelist namelist_cfg ln_icebergs .false.
1045    set_namelist namelist_cfg jpni 8
1046    set_namelist namelist_cfg jpnj 4
1047    set_namelist namelist_cfg jpnij 32
1048    set_namelist namelist_cfg ln_diaobs .true.
1049    set_namelist namelist_cfg ln_t3d .true.
1050    set_namelist namelist_cfg ln_s3d .true.
1051    set_namelist namelist_cfg ln_sst .true.
1052    set_namelist namelist_cfg ln_sla .true.
1053    set_namelist namelist_cfg ln_sic .true.
1054    set_namelist namelist_cfg ln_vel3d .true.
1055    set_namelist namelist_cfg ln_bkgwri .true.
1056    set_namelist namelist_cfg ln_trainc .true.
1057    set_namelist namelist_cfg ln_dyninc .true.
1058    set_namelist namelist_cfg ln_sshinc .true.
1059    set_namelist namelist_cfg ln_asmiau .true.
1060    #remove all useless options for pisces (due to ORCA2_LIM3_PISCES reference configuration)
1061    set_namelist namelist_top_cfg ln_trcdta .false.
1062    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
1063    # if not you need input files, and for tests is not necessary
1064    set_namelist namelist_pisces_cfg ln_presatm .false.
1065    set_namelist namelist_pisces_cfg ln_varpar .false.
1066    set_namelist namelist_pisces_cfg ln_dust .false.
1067    set_namelist namelist_pisces_cfg ln_solub .false.
1068    set_namelist namelist_pisces_cfg ln_river .false.
1069    set_namelist namelist_pisces_cfg ln_ndepo .false.
1070    set_namelist namelist_pisces_cfg ln_ironsed .false.
1071    set_namelist namelist_pisces_cfg ln_ironice .false.
1072    set_namelist namelist_pisces_cfg ln_hydrofe .false.
1073    if [ ${USING_MPMD} == "yes" ] ; then
1074       set_xio_using_server iodef.xml true
1075    else
1076       set_xio_using_server iodef.xml false
1077    fi
1078    cd ${SETTE_DIR}
1079    . ./prepare_job.sh input_ORCA2_LIM3_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1080    cd ${SETTE_DIR}
1081    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1082fi
1083# TEST FOR ORCA2_LIM3_AGRIF : AGULHAS AGRIF
1084if [ ${config} -eq 8 ] ;  then
1085## Restartability tests
1086    export TEST_NAME="LONG"
1087    cd ${CONFIG_DIR0}
1088    . ./makenemo -m ${CMP_NAM} -n ORCA2AGR_ST -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC" -j 8 add_key "key_agrif key_zdftmx" del_key "key_zdftmx_new key_top"
1089    cd ${SETTE_DIR}
1090    . ./param.cfg
1091    . ./all_functions.sh
1092    . ./prepare_exe_dir.sh
1093    JOB_FILE=${EXE_DIR}/run_job.sh
1094    NPROC=4
1095    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1096    cd ${EXE_DIR}
1097    set_namelist namelist_cfg cn_exp \"O2LP_LONG\"
1098    set_namelist namelist_cfg nn_it000 1
1099    set_namelist namelist_cfg nn_itend 150
1100    set_namelist namelist_cfg nn_stock 75
1101    set_namelist namelist_cfg ln_clobber .true.
1102    set_namelist namelist_cfg ln_read_cfg .true.
1103    set_namelist namelist_cfg ln_linssh .true.
1104    set_namelist namelist_cfg ln_hpg_sco .false.
1105    set_namelist namelist_cfg ln_hpg_zps .true.
1106    set_namelist namelist_cfg nn_fwb 0
1107    set_namelist namelist_cfg jpni 2
1108    set_namelist namelist_cfg jpnj 2
1109    set_namelist namelist_cfg jpnij 4
1110    set_namelist 1_namelist_cfg cn_exp \"O2LP_LONG\"
1111    set_namelist 1_namelist_cfg nn_it000 1
1112    set_namelist 1_namelist_cfg nn_itend 300
1113    set_namelist 1_namelist_cfg nn_stock 150
1114    set_namelist 1_namelist_cfg nn_fsbc 1
1115    set_namelist 1_namelist_cfg ln_ctl .false.
1116    set_namelist 1_namelist_cfg ln_clobber .true.
1117    set_namelist 1_namelist_cfg ln_read_cfg .true.
1118    set_namelist 1_namelist_cfg ln_linssh .true.
1119    set_namelist 1_namelist_cfg ln_hpg_sco .false.
1120    set_namelist 1_namelist_cfg ln_hpg_zps .true.
1121#
1122    if [ ${USING_MPMD} == "yes" ] ; then
1123       set_xio_using_server iodef.xml true
1124    else
1125       set_xio_using_server iodef.xml false
1126    fi
1127    cd ${SETTE_DIR}
1128    . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1129
1130    cd ${SETTE_DIR}
1131    export TEST_NAME="SHORT"
1132    . ./prepare_exe_dir.sh
1133    cd ${EXE_DIR}
1134    set_namelist namelist_cfg cn_exp \"O2LP_SHORT\"
1135    set_namelist namelist_cfg nn_it000 76
1136    set_namelist namelist_cfg nn_itend 150
1137    set_namelist namelist_cfg nn_stock 75
1138    set_namelist namelist_cfg ln_rstart .true.
1139    set_namelist namelist_cfg nn_rstctl 2
1140    set_namelist namelist_cfg ln_clobber .true.
1141    set_namelist namelist_cfg ln_read_cfg .true.
1142    set_namelist namelist_cfg ln_linssh .true.
1143    set_namelist namelist_cfg ln_hpg_sco .false.
1144    set_namelist namelist_cfg ln_hpg_zps .true.
1145    set_namelist namelist_cfg nn_fwb 0
1146    set_namelist namelist_cfg jpni 2
1147    set_namelist namelist_cfg jpnj 2
1148    set_namelist namelist_cfg jpnij 4
1149    set_namelist 1_namelist_cfg cn_exp \"O2LP_SHORT\"
1150    set_namelist 1_namelist_cfg nn_it000 151
1151    set_namelist 1_namelist_cfg nn_itend 300
1152    set_namelist 1_namelist_cfg nn_stock 150
1153    set_namelist 1_namelist_cfg nn_fsbc 1
1154    set_namelist 1_namelist_cfg ln_rstart .true.
1155    set_namelist 1_namelist_cfg nn_rstctl 2
1156    set_namelist 1_namelist_cfg ln_clobber .true.
1157    set_namelist 1_namelist_cfg ln_read_cfg .true.
1158    set_namelist 1_namelist_cfg ln_linssh .true.
1159    set_namelist 1_namelist_cfg ln_hpg_sco .false.
1160    set_namelist 1_namelist_cfg ln_hpg_zps .true.
1161    set_namelist namelist_cfg cn_ocerst_in \"O2LP_LONG_00000075_restart\"
1162    set_namelist namelist_ice_cfg cn_icerst_in \"O2LP_LONG_00000075_restart_ice\"
1163    set_namelist 1_namelist_cfg cn_ocerst_in \"O2LP_LONG_00000150_restart\"
1164    set_namelist 1_namelist_ice_cfg cn_icerst_in \"O2LP_LONG_00000150_restart_ice\"
1165    for (( i=1; i<=$NPROC; i++)) ; do
1166        L_NPROC=$(( $i - 1 ))
1167        L_NPROC=`printf "%04d\n" ${L_NPROC}`
1168        ln -sf ../LONG/O2LP_LONG_00000075_restart_${L_NPROC}.nc .
1169        ln -sf ../LONG/O2LP_LONG_00000075_restart_ice_${L_NPROC}.nc .
1170        ln -sf ../LONG/1_O2LP_LONG_00000150_restart_${L_NPROC}.nc .
1171        ln -sf ../LONG/1_O2LP_LONG_00000150_restart_ice_${L_NPROC}.nc .
1172    done
1173    if [ ${USING_MPMD} == "yes" ] ; then
1174       set_xio_using_server iodef.xml true
1175    else
1176       set_xio_using_server iodef.xml false
1177    fi
1178    cd ${SETTE_DIR}
1179    . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1180    cd ${SETTE_DIR}
1181    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1182
1183
1184## Reproducibility tests for ORCA2_LIM3_AGRIF
1185    export TEST_NAME="REPRO_4_4"
1186    cd ${CONFIG_DIR0}
1187    cd ${SETTE_DIR}
1188    . ./param.cfg
1189    . ./all_functions.sh
1190    . ./prepare_exe_dir.sh
1191    JOB_FILE=${EXE_DIR}/run_job.sh
1192    NPROC=16
1193    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1194    cd ${EXE_DIR}
1195    set_namelist namelist_cfg nn_it000 1
1196    set_namelist namelist_cfg nn_itend 75
1197    set_namelist namelist_cfg ln_ctl .false.
1198    set_namelist namelist_cfg ln_clobber .true.
1199    set_namelist namelist_cfg ln_read_cfg .true.
1200    set_namelist namelist_cfg ln_linssh .true.
1201    set_namelist namelist_cfg ln_hpg_sco .false.
1202    set_namelist namelist_cfg ln_hpg_zps .true.
1203    set_namelist namelist_cfg nn_fwb 0
1204    set_namelist namelist_cfg jpni 4
1205    set_namelist namelist_cfg jpnj 4
1206    set_namelist namelist_cfg jpnij 16
1207    set_namelist 1_namelist_cfg nn_it000 1
1208    set_namelist 1_namelist_cfg nn_itend 150
1209    set_namelist 1_namelist_cfg nn_fsbc 1
1210    set_namelist 1_namelist_cfg ln_ctl .false.
1211    set_namelist 1_namelist_cfg ln_clobber .true.
1212    set_namelist 1_namelist_cfg ln_read_cfg .true.
1213    set_namelist 1_namelist_cfg ln_linssh .true.
1214    set_namelist 1_namelist_cfg ln_hpg_sco .false.
1215    set_namelist 1_namelist_cfg ln_hpg_zps .true.
1216
1217    if [ ${USING_MPMD} == "yes" ] ; then
1218       set_xio_using_server iodef.xml true
1219    else
1220       set_xio_using_server iodef.xml false
1221    fi
1222    cd ${SETTE_DIR}
1223    . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1224    cd ${SETTE_DIR}
1225    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1226
1227    cd ${SETTE_DIR}
1228    export TEST_NAME="REPRO_2_8"
1229    . ./prepare_exe_dir.sh
1230    JOB_FILE=${EXE_DIR}/run_job.sh
1231    NPROC=16
1232    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1233    cd ${EXE_DIR}
1234    set_namelist namelist_cfg nn_it000 1
1235    set_namelist namelist_cfg nn_itend 75
1236    set_namelist namelist_cfg ln_ctl .false.
1237    set_namelist namelist_cfg ln_clobber .true.
1238    set_namelist namelist_cfg ln_read_cfg .true.
1239    set_namelist namelist_cfg ln_linssh .true.
1240    set_namelist namelist_cfg ln_hpg_sco .false.
1241    set_namelist namelist_cfg ln_hpg_zps .true.
1242    set_namelist namelist_cfg nn_fwb 0
1243    set_namelist namelist_cfg jpni 2
1244    set_namelist namelist_cfg jpnj 8
1245    set_namelist namelist_cfg jpnij 16
1246    set_namelist 1_namelist_cfg nn_it000 1
1247    set_namelist 1_namelist_cfg nn_itend 150
1248    set_namelist 1_namelist_cfg nn_fsbc 1
1249    set_namelist 1_namelist_cfg ln_ctl .false.
1250    set_namelist 1_namelist_cfg ln_clobber .true.
1251    set_namelist 1_namelist_cfg ln_read_cfg .true.
1252    set_namelist 1_namelist_cfg ln_linssh .true.
1253    set_namelist 1_namelist_cfg ln_hpg_sco .false.
1254    set_namelist 1_namelist_cfg ln_hpg_zps .true.
1255
1256    if [ ${USING_MPMD} == "yes" ] ; then
1257       set_xio_using_server iodef.xml true
1258    else
1259       set_xio_using_server iodef.xml false
1260    fi
1261    cd ${SETTE_DIR}
1262    . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1263    cd ${SETTE_DIR}
1264    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1265fi
1266
1267# test code corruption with AGRIF
1268if [ ${config} -eq 9 ] ;  then
1269
1270# Compile with AGRIF but run with no zoom
1271    export TEST_NAME="AGRIFNOZ"
1272    cd ${CONFIG_DIR0}
1273    . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_NOZOOM_ST -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC" -j 8 add_key "key_agrif" del_key "key_zdftmx key_top"
1274    cd ${SETTE_DIR}
1275    . ./param.cfg
1276    . ./all_functions.sh
1277    . ./prepare_exe_dir.sh
1278    JOB_FILE=${EXE_DIR}/run_job.sh
1279    NPROC=4
1280    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1281    cd ${EXE_DIR}
1282    set_namelist namelist_cfg nn_it000 1
1283    set_namelist namelist_cfg nn_itend 75
1284    set_namelist namelist_cfg ln_ctl .false.
1285    set_namelist namelist_cfg ln_clobber .true.
1286    set_namelist namelist_cfg ln_read_cfg .true.
1287    set_namelist namelist_cfg ln_linssh .true.
1288    set_namelist namelist_cfg ln_hpg_sco .false.
1289    set_namelist namelist_cfg ln_hpg_zps .true.
1290    set_namelist namelist_cfg nn_fwb 0
1291    set_namelist namelist_cfg jpni 2
1292    set_namelist namelist_cfg jpnj 2
1293    set_namelist namelist_cfg jpnij 4
1294    set_namelist namelist_cfg ln_icebergs .false.   
1295#
1296#   Set the number of fine grids to zero:   
1297    sed -i "1s/.*/0/" ${EXE_DIR}/AGRIF_FixedGrids.in
1298
1299    if [ ${USING_MPMD} == "yes" ] ; then
1300       set_xio_using_server iodef.xml true
1301    else
1302       set_xio_using_server iodef.xml false
1303    fi
1304    cd ${SETTE_DIR}
1305    . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1306    cd ${SETTE_DIR}
1307    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1308
1309fi
1310
1311if [ ${config} -eq 10 ] ;  then
1312# Compile with same option as 9 = ORCA2AGUL_NOZOOM, except ne key_agrif to check AGRIF does not hurt...
1313    export TEST_NAME="AGRIFNO"
1314    cd ${CONFIG_DIR0}
1315    . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_NOAGR_ST -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC" -j 8 del_key "key_zdftmx key_top"
1316    cd ${SETTE_DIR}
1317    . ./param.cfg
1318    . ./all_functions.sh
1319    . ./prepare_exe_dir.sh
1320    JOB_FILE=${EXE_DIR}/run_job.sh
1321    NPROC=4
1322    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
1323    cd ${EXE_DIR}
1324    set_namelist namelist_cfg nn_it000 1
1325    set_namelist namelist_cfg nn_itend 75
1326    set_namelist namelist_cfg ln_ctl .false.
1327    set_namelist namelist_cfg ln_clobber .true.
1328    set_namelist namelist_cfg ln_read_cfg .true.
1329    set_namelist namelist_cfg ln_linssh .true.
1330    set_namelist namelist_cfg ln_hpg_sco .false.
1331    set_namelist namelist_cfg ln_hpg_zps .true.
1332    set_namelist namelist_cfg nn_fwb 0
1333    set_namelist namelist_cfg jpni 2
1334    set_namelist namelist_cfg jpnj 2
1335    set_namelist namelist_cfg jpnij 4
1336    set_namelist namelist_cfg ln_icebergs .false.       
1337#
1338    if [ ${USING_MPMD} == "yes" ] ; then
1339       set_xio_using_server iodef.xml true
1340    else
1341       set_xio_using_server iodef.xml false
1342    fi
1343    cd ${SETTE_DIR}
1344    . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
1345    cd ${SETTE_DIR}
1346    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
1347
1348fi
1349
1350done
Note: See TracBrowser for help on using the repository browser.