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

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

Last change on this file since 8849 was 8849, checked in by clevy, 7 years ago

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