New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
sette_test-cases.sh in branches/2017/dev_merge_2017/NEMOGCM/SETTE – NEMO

source: branches/2017/dev_merge_2017/NEMOGCM/SETTE/sette_test-cases.sh @ 9518

Last change on this file since 9518 was 9518, checked in by clem, 4 years ago

update sette tests so that all configurations are tested and the report includes the test cases if any

  • Property svn:executable set to *
File size: 24.6 KB
Line 
1#!/bin/bash
2############################################################
3# Author : Simona Flavoni for NEMO
4# Contact: sflod@locean-ipsl.upmc.fr
5#
6# sette_test-cases.sh   : principal script of SET TEsts for NEMO (SETTE)
7#                       : this script : compiles, run and tests TEST_CASES
8#
9#                       : TO DO: test if nitend is equal to end of run.stat
10# ----------------------------------------------------------------------
11# NEMO/SETTE , NEMO Consortium (2018)
12# Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
13# ----------------------------------------------------------------------
14#
15#
16#############################################################
17#set -vx
18set -o posix
19#set -u
20#set -e
21# ===========
22# DESCRIPTION
23# ===========
24#
25# Variables to be checked by user:
26#
27# COMPILER          : name of compiler as defined in NEMOGCM/ARCH directory
28# BATCH_COMMAND_PAR :  name of the command for submitting parallel batch jobs
29# BATCH_COMMAND_SEQ :  name of the command for submitting sequential batch jobs 
30# INTERACT_FLAG     : flag to run in interactive mode "yes"
31#                           to run in batch mode "no"
32# MPIRUN_FLAG       : flag to run in parallel (MPI) "yes"
33#                           to run in sequential mode (NB_PROC = 1) "no"
34# USING_XIOS        : flag to control the activation of key_iomput
35#                      "yes" to compile using key_iomput and link to the external XIOS library
36#                      "no"  to compile without key_iomput and link to the old IOIPSL library
37# USING_MPMD        : flag to control the use of stand-alone IO servers
38#                     requires USING_XIOS="yes"
39#                      "yes" to run in MPMD (detached) mode with stand-alone IO servers
40#                      "no"  to run in SPMD (attached) mode without separate IO servers
41# NUM_XIOSERVERS    : number of stand-alone IO servers to employ
42#                     set to zero if USING_MPMD="no"
43#
44# Principal script is sette_test-cases.sh, that calls
45#
46#  makenemo  : to create successive exectuables in ${CONFIG_NAME}/BLD/bin/nemo.exe
47#              and links to opa in ${CONFIG_NAME}/EXP00)
48#
49#  param.cfg : sets and loads following directories:
50#
51#   FORCING_DIR         : is the directory for forcing files (tarfile)
52#   INPUT_DIR           : is the directory for input files storing
53#   TMPDIR              : is the temporary directory (if needed)
54#   NEMO_VALIDATION_DIR : is the validation directory
55#
56#   (NOTE: this file is the same for all configrations to be tested with sette_test-cases.sh)
57#
58#   all_functions.sh : loads functions used by sette (note: new functions can be added here)
59#   set_namelist     : function declared in all_functions that sets namelist parameters
60#   post_test_tidyup : creates validation storage directory and copies required output files
61#                      (run.stat and ocean.output) in it after execution of test.
62#
63#  VALIDATION tree is:
64#
65#   NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE)
66#
67#  prepare_exe_dir.sh : defines and creates directory where the test is executed
68#                       execution directory takes name of TEST_NAME defined for every test
69#                       in sette_test-cases.sh. (each test in executed in its own directory)
70#
71#  prepare_job.sh     : to generate the script run_job.sh
72#
73#  fcm_job.sh         : run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes")
74#                        see sette_test-cases.sh and BATCH_TEMPLATE directory
75#
76#  NOTE: jobs requiring initial or forcing data need to have an input_CONFIG.cfg in which
77#        can be found paths to the input tar file)
78#  NOTE: if job is not launched for any reason you have the executable ready in ${EXE_DIR}
79#        directory
80#  NOTE: the changed namelists are left in ${EXE_DIR} directory whereas original namelists
81#        remain in ${NEW_CONF}/EXP00
82#
83#  NOTE: a log file, output.sette, is created in ${SETTE_DIR} with the echoes of
84#        executed commands
85#
86#  NOTE: if sette_test-cases.sh is stopped in output.sette there is written the last command
87#        executed by sette_test-cases.sh
88#
89# example use: ./sette_test-cases.sh
90#########################################################################################
91#
92# Compiler among those in NEMOGCM/ARCH
93COMPILER=X64_ADA
94
95export BATCH_COMMAND_PAR="llsubmit"
96export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR
97export INTERACT_FLAG="no"
98export MPIRUN_FLAG="yes"
99export USING_XIOS="yes"
100#
101export DEL_KEYS="key_iomput"
102if [ ${USING_XIOS} == "yes" ] 
103 then
104   export DEL_KEYS=""
105fi
106#
107# Settings which control the use of stand alone servers (only relevant if using xios)
108#
109export USING_MPMD="no"
110export NUM_XIOSERVERS=4
111export JOB_PREFIX=batch-mpmd
112#
113if [ ${USING_MPMD} == "no" ] 
114 then
115   export NUM_XIOSERVERS=0
116   export JOB_PREFIX=batch
117fi
118#
119#
120if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no"]
121 then
122   echo "Incompatible choices. MPMD mode requires the XIOS server"
123   exit
124fi
125
126# Directory to run the tests
127SETTE_DIR=$(cd $(dirname "$0"); pwd)
128MAIN_DIR=$(dirname $SETTE_DIR)
129CONFIG_DIR0=${MAIN_DIR}/CONFIG
130TOOLS_DIR=${MAIN_DIR}/TOOLS
131COMPIL_DIR=${TOOLS_DIR}/COMPILE
132
133CMP_NAM=${1:-$COMPILER}
134# Copy job_batch_COMPILER file for specific compiler into job_batch_template
135cd ${SETTE_DIR}
136cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit
137# Description of configuration tested:
138# OVERFLOW       : 1  TEST s-coordinates : (tracers) Advection schemes: FCT2, FCT4, ubs
139#                                        & (dynamics) advection schemes: flux form (ubs, centered), vector form (een)
140#                          zps-coordinates : (tracers) Advection schemes: FCT2, FCT4, ubs
141#                                        & (dynamics) advection schemes: flux form (ubs, centered), vector form (een, and een + Hollingsworth correction)
142# LOCK_EXCHANGE  : 2
143# VORTEX         : 3
144# WAD            : 4       
145# SAS_BIPER      : 5
146# ISOMIP         : 6
147
148
149for config in 1 2 3 4 5 6
150do
151
152# TESTS FOR OVERFLOW CONFIGURATION
153if [ ${config} -eq 1 ] ;  then
154    ## Restartability tests for OVERFLOW
155    export TEST_NAME="LONG"
156    cd ${CONFIG_DIR0}
157    . ./makenemo -m ${CMP_NAM} -a TEST_CASES -n OVERFLOW_ST -r OVERFLOW -j 8 del_key ${DEL_KEYS}
158    cd ${SETTE_DIR}
159    . ./param.cfg
160    . ./all_functions.sh
161    . ./prepare_exe_dir.sh
162    JOB_FILE=${EXE_DIR}/run_job.sh
163    NPROC=1
164    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
165    cd ${EXE_DIR} 
166    set_namelist namelist_cfg cn_exp \"OVF_LONG\"
167    set_namelist namelist_cfg nn_it000 1
168    set_namelist namelist_cfg nn_itend 120
169    set_namelist namelist_cfg nn_stock 60
170    set_namelist namelist_cfg ln_clobber .true.
171    if [ ${USING_MPMD} == "yes" ] ; then
172       set_xio_using_server iodef.xml true
173    else
174       set_xio_using_server iodef.xml false
175    fi
176    cd ${SETTE_DIR}
177    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
178
179    cd ${SETTE_DIR}
180    export TEST_NAME="SHORT"
181    . ./prepare_exe_dir.sh
182    cd ${EXE_DIR}
183    set_namelist namelist_cfg cn_exp \"OVF_SHORT\"
184    set_namelist namelist_cfg nn_it000 61
185    set_namelist namelist_cfg nn_itend 120
186    set_namelist namelist_cfg nn_stock 60
187    set_namelist namelist_cfg ln_rstart .true.
188    set_namelist namelist_cfg nn_rstctl 2
189    set_namelist namelist_cfg ln_clobber .true.
190    set_namelist namelist_top_cfg ln_rsttr .true.
191    set_namelist namelist_top_cfg nn_rsttr 2
192    set_namelist namelist_cfg cn_ocerst_in \"OVF_LONG_00000060_restart\"
193    if [ ${USING_MPMD} == "yes" ] ; then
194       set_xio_using_server iodef.xml true
195    else
196       set_xio_using_server iodef.xml false
197    fi
198    ln -sf ../LONG/OVF_LONG_00000060_restart.nc .
199    if [ ${USING_MPMD} == "yes" ] ; then
200       set_xio_using_server iodef.xml true
201    else
202       set_xio_using_server iodef.xml false
203    fi
204    cd ${SETTE_DIR}
205    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
206    cd ${SETTE_DIR}
207    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
208
209
210    ## Test for all advection, vert. coordinates, vector form, flux form: test runability and complete all time steps
211    ## Needed namelist-xxxx for every type of run tested
212    cd ${CONFIG_DIR}/${NEW_CONF}/EXP00
213
214    for file in $(echo `ls namelist_*_cfg `) ; do
215        TEST_NAME=`ls $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"`
216        TEST_NAME="EXP-${TEST_NAME}"
217        `mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME}`
218        export TEST_NAME="${TEST_NAME}"
219         ##
220        cd ${SETTE_DIR}
221        . ./param.cfg
222        . ./all_functions.sh
223        . ./prepare_exe_dir.sh
224        JOB_FILE=${EXE_DIR}/run_job.sh
225        NPROC=1
226        if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
227        cd ${EXE_DIR}
228        set_namelist namelist_cfg ln_clobber .true.
229        if [ ${USING_MPMD} == "yes" ] ; then
230           set_xio_using_server iodef.xml true
231        else
232           set_xio_using_server iodef.xml false
233        fi
234        cd ${SETTE_DIR}
235        . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
236        cd ${SETTE_DIR}
237        . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
238       ##
239     done
240fi
241
242# TESTS FOR LOCK_EXCHANGE CONFIGURATION
243if [ ${config} -eq 2 ] ;  then
244    ## Restartability tests for LOCK_EXCHANGE
245    export TEST_NAME="LONG"
246    cd ${CONFIG_DIR0}
247    . ./makenemo -m ${CMP_NAM} -a TEST_CASES -n LOCK_EXCHANGE_ST -r OVERFLOW -j 8 del_key ${DEL_KEYS}
248    cd ${SETTE_DIR}
249    . ./param.cfg
250    . ./all_functions.sh
251    . ./prepare_exe_dir.sh
252    JOB_FILE=${EXE_DIR}/run_job.sh
253    NPROC=1
254    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
255    cd ${EXE_DIR}
256    set_namelist namelist_cfg cn_exp \"LOCK_LONG\"
257    set_namelist namelist_cfg nn_it000 1
258    set_namelist namelist_cfg nn_stock 60
259    set_namelist namelist_cfg nn_itend 120
260    set_namelist namelist_cfg ln_clobber .true.
261    if [ ${USING_MPMD} == "yes" ] ; then
262       set_xio_using_server iodef.xml true
263    else
264       set_xio_using_server iodef.xml false
265    fi
266    cd ${SETTE_DIR}
267    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
268
269    cd ${SETTE_DIR}
270    export TEST_NAME="SHORT"
271    . ./prepare_exe_dir.sh
272    cd ${EXE_DIR}
273    set_namelist namelist_cfg cn_exp \"LOCK_SHORT\"
274    set_namelist namelist_cfg nn_it000 61
275    set_namelist namelist_cfg nn_itend 120
276    set_namelist namelist_cfg nn_stock 60
277    set_namelist namelist_cfg ln_rstart .true.
278    set_namelist namelist_cfg nn_rstctl 2
279    set_namelist namelist_cfg ln_clobber .true.
280    set_namelist namelist_top_cfg ln_rsttr .true.
281    set_namelist namelist_top_cfg nn_rsttr 2
282    set_namelist namelist_cfg cn_ocerst_in \"LOCK_LONG_00000060_restart\"
283    if [ ${USING_MPMD} == "yes" ] ; then
284       set_xio_using_server iodef.xml true
285    else
286       set_xio_using_server iodef.xml false
287    fi
288    ln -sf ../LONG/LOCK_LONG_00000060_restart.nc .
289    if [ ${USING_MPMD} == "yes" ] ; then
290       set_xio_using_server iodef.xml true
291    else
292       set_xio_using_server iodef.xml false
293    fi
294    cd ${SETTE_DIR}
295    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
296    cd ${SETTE_DIR}
297    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
298
299    ## Test for all advection, vector form, flux form: test runability and complete all time steps
300    ## Needed namelist-xxxx for every type of run tested
301    cd ${CONFIG_DIR}/${NEW_CONF}/EXP00
302
303    for file in $(echo `ls namelist_*_cfg `) ; do
304        TEST_NAME=`ls $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"`
305        TEST_NAME="EXP-${TEST_NAME}"
306        `mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME}`
307        export TEST_NAME="${TEST_NAME}"
308         ## 
309        cd ${SETTE_DIR}
310        . ./param.cfg
311        . ./all_functions.sh
312        . ./prepare_exe_dir.sh
313        JOB_FILE=${EXE_DIR}/run_job.sh
314        NPROC=1
315        if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
316        cd ${EXE_DIR}
317        set_namelist namelist_cfg ln_clobber .true.
318        if [ ${USING_MPMD} == "yes" ] ; then
319           set_xio_using_server iodef.xml true
320        else
321           set_xio_using_server iodef.xml false
322        fi
323        cd ${SETTE_DIR}
324        . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
325        cd ${SETTE_DIR}
326        . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
327       ##
328   done
329fi
330
331# TESTS FOR VORTEX CONFIGURATION
332if [ ${config} -eq 3 ] ;  then
333    ## Restartability tests for VORTEX
334    export TEST_NAME="LONG"
335    cd ${CONFIG_DIR0}
336    . ./makenemo -m ${CMP_NAM} -a TEST_CASES -n VORTEX_ST -r VORTEX -j 8 del_key ${DEL_KEYS}
337    cd ${SETTE_DIR}
338    . ./param.cfg
339    . ./all_functions.sh
340    . ./prepare_exe_dir.sh
341    JOB_FILE=${EXE_DIR}/run_job.sh
342    NPROC=1
343    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
344    cd ${EXE_DIR}
345    set_namelist namelist_cfg cn_exp \"VORTEX_LONG\"
346    set_namelist namelist_cfg nn_it000 1
347    set_namelist namelist_cfg nn_stock 60
348    set_namelist namelist_cfg nn_itend 120
349    set_namelist namelist_cfg ln_clobber .true.
350    if [ ${USING_MPMD} == "yes" ] ; then
351       set_xio_using_server iodef.xml true
352    else
353       set_xio_using_server iodef.xml false
354    fi
355    cd ${SETTE_DIR}
356    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
357
358    cd ${SETTE_DIR}
359    export TEST_NAME="SHORT"
360    . ./prepare_exe_dir.sh
361    cd ${EXE_DIR}
362    set_namelist namelist_cfg cn_exp \"VORTEX_SHORT\"
363    set_namelist namelist_cfg nn_it000 61
364    set_namelist namelist_cfg nn_itend 120
365    set_namelist namelist_cfg nn_stock 60
366    set_namelist namelist_cfg ln_rstart .true.
367    set_namelist namelist_cfg nn_rstctl 2
368    set_namelist namelist_cfg ln_clobber .true.
369    set_namelist namelist_top_cfg ln_rsttr .true.
370    set_namelist namelist_top_cfg nn_rsttr 2
371    set_namelist namelist_cfg cn_ocerst_in \"VORTEX_LONG_00000060_restart\"
372    if [ ${USING_MPMD} == "yes" ] ; then
373       set_xio_using_server iodef.xml true
374    else
375       set_xio_using_server iodef.xml false
376    fi
377    ln -sf ../LONG/VORTEX_LONG_00000060_restart.nc .
378    if [ ${USING_MPMD} == "yes" ] ; then
379       set_xio_using_server iodef.xml true
380    else
381       set_xio_using_server iodef.xml false
382    fi
383    cd ${SETTE_DIR}
384    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
385    cd ${SETTE_DIR}
386    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
387
388
389    ## Test for all advection, vert. coordinates, vector form, flux form: test runability and complete all time steps
390    ## Needed namelist-xxxx for every type of run tested
391    cd ${CONFIG_DIR}/${NEW_CONF}/EXP00
392
393    for file in $(echo `ls namelist_*_cfg `) ; do
394        TEST_NAME=`ls $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"`
395        TEST_NAME="EXP-${TEST_NAME}"
396        `mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME}`
397        export TEST_NAME="${TEST_NAME}"
398         ## 
399        cd ${SETTE_DIR}
400        . ./param.cfg
401        . ./all_functions.sh
402        . ./prepare_exe_dir.sh
403        JOB_FILE=${EXE_DIR}/run_job.sh
404        NPROC=1
405        if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
406        cd ${EXE_DIR}
407        set_namelist namelist_cfg ln_clobber .true.
408        if [ ${USING_MPMD} == "yes" ] ; then
409           set_xio_using_server iodef.xml true
410        else
411           set_xio_using_server iodef.xml false
412        fi
413        cd ${SETTE_DIR}
414        . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
415        cd ${SETTE_DIR}
416        . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
417       ##
418    done
419fi
420
421
422# TESTS FOR SAS_BIPER CONFIGURATION
423if [ ${config} -eq 5 ] ;  then 
424## Restartability tests for SAS_BIPER
425    export TEST_NAME="LONG"
426    cd ${CONFIG_DIR0}
427    . ./makenemo -m ${CMP_NAM} -n SAS_BIPER_ST -r SAS_BIPER -a TEST_CASES -j 8  del_key ${DEL_KEYS}
428    cd ${SETTE_DIR}
429    . ./param.cfg
430    . ./all_functions.sh
431    . ./prepare_exe_dir.sh
432    JOB_FILE=${EXE_DIR}/run_job.sh
433    NPROC=1
434    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
435    cd ${EXE_DIR}
436    set_namelist namelist_cfg cn_exp \"SAS_BIPER_LONG\"
437    set_namelist namelist_cfg nn_it000 1
438    set_namelist namelist_cfg nn_itend 200
439    set_namelist namelist_cfg nn_stock 100
440   
441    #set_namelist namelist_ice_cfg ln_icethd .true.
442    set_namelist namelist_ice_cfg ln_icedyn .true.
443    set_namelist namelist_ice_cfg ln_dynFULL .true.
444    set_namelist namelist_ice_cfg ln_dynRHGADV .false.
445    set_namelist namelist_ice_cfg ln_dynADV .false.
446   
447    set_namelist 1_namelist_cfg cn_exp \"SAS_BIPER_LONG\"
448    set_namelist 1_namelist_cfg nn_it000 1
449    set_namelist 1_namelist_cfg nn_itend 600
450    set_namelist 1_namelist_cfg nn_stock 300
451   
452    #set_namelist 1_namelist_ice_cfg ln_icethd .true.
453    set_namelist 1_namelist_ice_cfg ln_icedyn .true.
454    set_namelist 1_namelist_ice_cfg ln_dynFULL .true.
455    set_namelist 1_namelist_ice_cfg ln_dynRHGADV .false.
456    set_namelist 1_namelist_ice_cfg ln_dynADV .false.
457    if [ ${USING_MPMD} == "yes" ] ; then
458        set_xio_using_server iodef.xml true
459    else
460        set_xio_using_server iodef.xml false
461    fi
462    cd ${SETTE_DIR}
463    . ./prepare_job.sh input_SASBIPER.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
464   
465    cd ${SETTE_DIR}
466    export TEST_NAME="SHORT"
467    . ./prepare_exe_dir.sh
468    cd ${EXE_DIR}
469    set_namelist namelist_cfg cn_exp \"SAS_BIPER_SHORT\"
470    set_namelist namelist_cfg nn_it000 101
471    set_namelist namelist_cfg nn_itend 200
472    set_namelist namelist_cfg nn_stock 100
473    set_namelist namelist_cfg ln_rstart .true.
474    set_namelist namelist_cfg nn_rstctl 2
475   
476    #set_namelist namelist_ice_cfg ln_icethd .true.
477    set_namelist namelist_ice_cfg ln_icedyn .true.
478    set_namelist namelist_ice_cfg ln_dynFULL .true.
479    set_namelist namelist_ice_cfg ln_dynRHGADV .false.
480    set_namelist namelist_ice_cfg ln_dynADV .false.
481    set_namelist namelist_cfg cn_ocerst_in \"SAS_BIPER_LONG_00000100_restart\"
482    set_namelist namelist_ice_cfg cn_icerst_in \"SAS_BIPER_LONG_00000100_restart_ice\"
483   
484    set_namelist 1_namelist_cfg cn_exp \"SAS_BIPER_SHORT\"
485    set_namelist 1_namelist_cfg nn_it000 301
486    set_namelist 1_namelist_cfg nn_itend 600
487    set_namelist 1_namelist_cfg nn_stock 300
488    set_namelist 1_namelist_cfg ln_rstart .true.
489    set_namelist 1_namelist_cfg nn_rstctl 2
490   
491    #set_namelist 1_namelist_ice_cfg ln_icethd .true.
492    set_namelist 1_namelist_ice_cfg ln_icedyn .true.
493    set_namelist 1_namelist_ice_cfg ln_dynFULL .true.
494    set_namelist 1_namelist_ice_cfg ln_dynRHGADV .false.
495    set_namelist 1_namelist_ice_cfg ln_dynADV .false.
496    set_namelist 1_namelist_cfg cn_ocerst_in \"SAS_BIPER_LONG_00000300_restart\"
497    set_namelist 1_namelist_ice_cfg cn_icerst_in \"SAS_BIPER_LONG_00000300_restart_ice\"
498   
499   
500    if [ ${USING_MPMD} == "yes" ] ; then
501        set_xio_using_server iodef.xml true
502    else
503        set_xio_using_server iodef.xml false
504    fi
505    if [ $NPROC -eq 1 ] ;  then
506        ln -sf ../LONG/SAS_BIPER_LONG_00000100_restart.nc .
507        ln -sf ../LONG/SAS_BIPER_LONG_00000100_restart_ice.nc .
508        ln -sf ../LONG/1_SAS_BIPER_LONG_00000300_restart.nc .
509        ln -sf ../LONG/1_SAS_BIPER_LONG_00000300_restart_ice.nc .
510    else
511        for (( i=1; i<=$NPROC; i++)) ; do
512            L_NPROC=$(( $i - 1 ))
513            L_NPROC=`printf "%04d\n" ${L_NPROC}`
514            ln -sf ../LONG/SAS_BIPER_LONG_00000100_restart_${L_NPROC}.nc .
515            ln -sf ../LONG/SAS_BIPER_LONG_00000100_restart_ice_${L_NPROC}.nc .
516            ln -sf ../LONG/1_SAS_BIPER_LONG_00000300_restart_${L_NPROC}.nc .
517            ln -sf ../LONG/1_SAS_BIPER_LONG_00000300_restart_ice_${L_NPROC}.nc .
518        done
519    fi
520    if [ ${USING_MPMD} == "yes" ] ; then
521        set_xio_using_server iodef.xml true
522    else
523        set_xio_using_server iodef.xml false
524    fi
525    if [ $NPROC -eq 1 ] ;  then
526        ln -sf ../LONG/SAS_BIPER_LONG_00000100_restart.nc .
527        ln -sf ../LONG/SAS_BIPER_LONG_00000100_restart_ice.nc .
528   ln -sf ../LONG/1_SAS_BIPER_LONG_00000300_restart.nc .
529        ln -sf ../LONG/1_SAS_BIPER_LONG_00000300_restart_ice.nc .
530    else
531        for (( i=1; i<=$NPROC; i++)) ; do
532            L_NPROC=$(( $i - 1 ))
533            L_NPROC=`printf "%04d\n" ${L_NPROC}`
534            ln -sf ../LONG/SAS_BIPER_LONG_00000100_restart_${L_NPROC}.nc .
535            ln -sf ../LONG/SAS_BIPER_LONG_00000100_restart_ice_${L_NPROC}.nc .
536            ln -sf ../LONG/1_SAS_BIPER_LONG_00000300_restart_${L_NPROC}.nc .
537            ln -sf ../LONG/1_SAS_BIPER_LONG_00000300_restart_ice_${L_NPROC}.nc .
538        done
539    fi
540    if [ ${USING_MPMD} == "yes" ] ; then
541        set_xio_using_server iodef.xml true
542    else
543        set_xio_using_server iodef.xml false
544    fi
545    cd ${SETTE_DIR}
546    . ./prepare_job.sh input_SASBIPER.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
547    cd ${SETTE_DIR}
548    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
549   
550fi
551
552# ------
553# ISOMIP
554# ------
555if [ ${config} -eq 6 ] ;  then
556## Restartability tests
557    export TEST_NAME="LONG"
558    cd ${CONFIG_DIR0}
559    . ./makenemo -m ${CMP_NAM} -n ISOMIP_ST -r ISOMIP -a TEST_CASES -j 8 del_key ${DEL_KEYS}
560    cd ${SETTE_DIR}
561    . ./param.cfg
562    . ./all_functions.sh
563    . ./prepare_exe_dir.sh
564    JOB_FILE=${EXE_DIR}/run_job.sh
565    NPROC=15
566    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
567    cd ${EXE_DIR}
568    set_namelist namelist_cfg cn_exp \"ISOMIP_LONG\"
569    set_namelist namelist_cfg nn_it000 1
570    set_namelist namelist_cfg nn_itend 96
571    set_namelist namelist_cfg nn_stock 48
572    set_namelist namelist_cfg jpni 5
573    set_namelist namelist_cfg jpnj 3
574    set_namelist namelist_cfg jpnij 15
575    if [ ${USING_MPMD} == "yes" ] ; then
576       set_xio_using_server iodef.xml true
577    else
578       set_xio_using_server iodef.xml false
579    fi
580    cd ${SETTE_DIR}
581    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
582
583    cd ${SETTE_DIR}
584    export TEST_NAME="SHORT"
585    . ./prepare_exe_dir.sh
586    cd ${EXE_DIR}
587    set_namelist namelist_cfg cn_exp \"ISOMIP_SHORT\"
588    set_namelist namelist_cfg nn_it000 49
589    set_namelist namelist_cfg nn_itend 96
590    set_namelist namelist_cfg nn_stock 48
591    set_namelist namelist_cfg ln_rstart .true.
592    set_namelist namelist_cfg nn_rstctl 2
593    set_namelist namelist_cfg jpni 5
594    set_namelist namelist_cfg jpnj 3
595    set_namelist namelist_cfg jpnij 15
596    set_namelist namelist_cfg cn_ocerst_in \"ISOMIP_LONG_00000048_restart\"
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    for (( i=1; i<=$NPROC; i++)) ; do
603        L_NPROC=$(( $i - 1 ))
604        L_NPROC=`printf "%04d\n" ${L_NPROC}`
605        ln -sf ../LONG/ISOMIP_LONG_00000048_restart_${L_NPROC}.nc .
606    done
607    if [ ${USING_MPMD} == "yes" ] ; then
608       set_xio_using_server iodef.xml true
609    else
610       set_xio_using_server iodef.xml false
611    fi
612    cd ${SETTE_DIR}
613    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
614    cd ${SETTE_DIR}
615    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
616
617## Reproducibility tests
618    export TEST_NAME="REPRO_7_3"
619    cd ${CONFIG_DIR0}
620    cd ${SETTE_DIR}
621    . ./param.cfg
622    . ./all_functions.sh
623    . ./prepare_exe_dir.sh
624    JOB_FILE=${EXE_DIR}/run_job.sh
625    NPROC=21
626    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
627    cd ${EXE_DIR}
628    set_namelist namelist_cfg cn_exp \"ISOMIP_73\"
629    set_namelist namelist_cfg nn_it000 1
630    set_namelist namelist_cfg nn_itend 48
631    set_namelist namelist_cfg jpni 7
632    set_namelist namelist_cfg jpnj 3
633    set_namelist namelist_cfg jpnij 21
634    if [ ${USING_MPMD} == "yes" ] ; then
635       set_xio_using_server iodef.xml true
636    else
637       set_xio_using_server iodef.xml false
638    fi
639    cd ${SETTE_DIR}
640    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
641    cd ${SETTE_DIR}
642    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
643
644    cd ${SETTE_DIR}
645    export TEST_NAME="REPRO_8_4"
646    . ./prepare_exe_dir.sh
647    JOB_FILE=${EXE_DIR}/run_job.sh
648    NPROC=32
649    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
650    cd ${EXE_DIR}
651    set_namelist namelist_cfg cn_exp \"ISOMIP_84\"
652    set_namelist namelist_cfg nn_it000 1
653    set_namelist namelist_cfg nn_itend 48
654    set_namelist namelist_cfg jpni 8
655    set_namelist namelist_cfg jpnj 4
656    set_namelist namelist_cfg jpnij 32
657    if [ ${USING_MPMD} == "yes" ] ; then
658       set_xio_using_server iodef.xml true
659    else
660       set_xio_using_server iodef.xml false
661    fi
662    cd ${SETTE_DIR}
663    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
664    cd ${SETTE_DIR}
665    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
666
667fi
668
669#----
670done
Note: See TracBrowser for help on using the repository browser.