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

Last change on this file since 9268 was 9268, checked in by flavoni, 4 years ago

#1975: start testing TEST CASES with sette_test-cases.sh scripts

  • Property svn:executable set to *
File size: 23.4 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
147
148for config in 1 2 3
149do
150
151#######
152#### ALL tests tested with only 1 proc ==> no different domain decomposition!
153#######
154# TESTS FOR OVERFLOW CONFIGURATION
155if [ ${config} -eq 1 ] ;  then
156    ## Restartability tests for OVERFLOW
157    export TEST_NAME="LONG"
158    cd ${CONFIG_DIR0}
159    . ./makenemo -m ${CMP_NAM} -a TEST_CASES -n OVERFLOW_TESTs -r OVERFLOW -j 8 del_key ${DEL_KEYS}
160    cd ${SETTE_DIR}
161    . ./param.cfg
162    . ./all_functions.sh
163    . ./prepare_exe_dir.sh
164    JOB_FILE=${EXE_DIR}/run_job.sh
165    NPROC=1
166    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
167    cd ${EXE_DIR} 
168    set_namelist namelist_cfg cn_exp \"OVF_LONG\"
169    set_namelist namelist_cfg nn_it000 1
170    set_namelist namelist_cfg nn_itend 120
171    set_namelist namelist_cfg nn_stock 60
172    set_namelist namelist_cfg ln_clobber .true.
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_EMPTY.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 \"OVF_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_top_cfg ln_rsttr .true.
193    set_namelist namelist_top_cfg nn_rsttr 2
194    set_namelist namelist_cfg cn_ocerst_in \"OVF_LONG_00000060_restart\"
195    if [ ${USING_MPMD} == "yes" ] ; then
196       set_xio_using_server iodef.xml true
197    else
198       set_xio_using_server iodef.xml false
199    fi
200    ln -sf ../LONG/OVF_LONG_00000060_restart.nc .
201    if [ ${USING_MPMD} == "yes" ] ; then
202       set_xio_using_server iodef.xml true
203    else
204       set_xio_using_server iodef.xml false
205    fi
206    cd ${SETTE_DIR}
207    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
208    cd ${SETTE_DIR}
209    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
210
211
212    ## Test for all advection, vert. coordinates, vector form, flux form: test runability and complete all time steps
213    ## Needed namelist-xxxx for every type of run tested
214    cd ${CONFIG_DIR}/${NEW_CONF}/EXP00
215
216    for file in $(echo `ls namelist_*_cfg `) ; do
217        TEST_NAME=`ls $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"`
218        TEST_NAME="EXP-${TEST_NAME}"
219        `mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME}`
220        export TEST_NAME="${TEST_NAME}"
221         ##
222        cd ${SETTE_DIR}
223        . ./param.cfg
224        . ./all_functions.sh
225        . ./prepare_exe_dir.sh
226        JOB_FILE=${EXE_DIR}/run_job.sh
227        NPROC=1
228        if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
229        cd ${EXE_DIR}
230        set_namelist namelist_cfg ln_clobber .true.
231        if [ ${USING_MPMD} == "yes" ] ; then
232           set_xio_using_server iodef.xml true
233        else
234           set_xio_using_server iodef.xml false
235        fi
236        cd ${SETTE_DIR}
237        . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
238        cd ${SETTE_DIR}
239        . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
240       ##
241     done
242fi
243
244# TESTS FOR LOCK_EXCHANGE CONFIGURATION
245if [ ${config} -eq 2 ] ;  then
246    ## Restartability tests for LOCK_EXCHANGE
247    export TEST_NAME="LONG"
248    cd ${CONFIG_DIR0}
249    . ./makenemo -m ${CMP_NAM} -a TEST_CASES -n LOCK_EXCHANGE_TESTs -r OVERFLOW -j 8 del_key ${DEL_KEYS}
250    cd ${SETTE_DIR}
251    . ./param.cfg
252    . ./all_functions.sh
253    . ./prepare_exe_dir.sh
254    JOB_FILE=${EXE_DIR}/run_job.sh
255    NPROC=1
256    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
257    cd ${EXE_DIR}
258    set_namelist namelist_cfg cn_exp \"LOCK_LONG\"
259    set_namelist namelist_cfg nn_it000 1
260    set_namelist namelist_cfg nn_stock 60
261    set_namelist namelist_cfg nn_itend 120
262    set_namelist namelist_cfg ln_clobber .true.
263    if [ ${USING_MPMD} == "yes" ] ; then
264       set_xio_using_server iodef.xml true
265    else
266       set_xio_using_server iodef.xml false
267    fi
268    cd ${SETTE_DIR}
269    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
270
271    cd ${SETTE_DIR}
272    export TEST_NAME="SHORT"
273    . ./prepare_exe_dir.sh
274    cd ${EXE_DIR}
275    set_namelist namelist_cfg cn_exp \"LOCK_SHORT\"
276    set_namelist namelist_cfg nn_it000 61
277    set_namelist namelist_cfg nn_itend 120
278    set_namelist namelist_cfg nn_stock 60
279    set_namelist namelist_cfg ln_rstart .true.
280    set_namelist namelist_cfg nn_rstctl 2
281    set_namelist namelist_cfg ln_clobber .true.
282    set_namelist namelist_top_cfg ln_rsttr .true.
283    set_namelist namelist_top_cfg nn_rsttr 2
284    set_namelist namelist_cfg cn_ocerst_in \"LOCK_LONG_00000060_restart\"
285    if [ ${USING_MPMD} == "yes" ] ; then
286       set_xio_using_server iodef.xml true
287    else
288       set_xio_using_server iodef.xml false
289    fi
290    ln -sf ../LONG/LOCK_LONG_00000060_restart.nc .
291    if [ ${USING_MPMD} == "yes" ] ; then
292       set_xio_using_server iodef.xml true
293    else
294       set_xio_using_server iodef.xml false
295    fi
296    cd ${SETTE_DIR}
297    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
298    cd ${SETTE_DIR}
299    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
300
301    ## Test for all advection, vector form, flux form: test runability and complete all time steps
302    ## Needed namelist-xxxx for every type of run tested
303    cd ${CONFIG_DIR}/${NEW_CONF}/EXP00
304
305    for file in $(echo `ls namelist_*_cfg `) ; do
306        TEST_NAME=`ls $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"`
307        TEST_NAME="EXP-${TEST_NAME}"
308        `mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME}`
309        export TEST_NAME="${TEST_NAME}"
310         ## 
311        cd ${SETTE_DIR}
312        . ./param.cfg
313        . ./all_functions.sh
314        . ./prepare_exe_dir.sh
315        JOB_FILE=${EXE_DIR}/run_job.sh
316        NPROC=1
317        if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
318        cd ${EXE_DIR}
319        set_namelist namelist_cfg ln_clobber .true.
320        if [ ${USING_MPMD} == "yes" ] ; then
321           set_xio_using_server iodef.xml true
322        else
323           set_xio_using_server iodef.xml false
324        fi
325        cd ${SETTE_DIR}
326        . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
327        cd ${SETTE_DIR}
328        . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
329       ##
330   done
331fi
332
333# TESTS FOR VORTEX CONFIGURATION
334if [ ${config} -eq 3 ] ;  then
335    ## Restartability tests for VORTEX
336    export TEST_NAME="LONG"
337    cd ${CONFIG_DIR0}
338    . ./makenemo -m ${CMP_NAM} -a TEST_CASES -n VORTEX_TESTs -r VORTEX -j 8 del_key ${DEL_KEYS}
339    cd ${SETTE_DIR}
340    . ./param.cfg
341    . ./all_functions.sh
342    . ./prepare_exe_dir.sh
343    JOB_FILE=${EXE_DIR}/run_job.sh
344    NPROC=1
345    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
346    cd ${EXE_DIR}
347    set_namelist namelist_cfg cn_exp \"VORTEX_LONG\"
348    set_namelist namelist_cfg nn_it000 1
349    set_namelist namelist_cfg nn_stock 60
350    set_namelist namelist_cfg nn_itend 120
351    set_namelist namelist_cfg ln_clobber .true.
352    if [ ${USING_MPMD} == "yes" ] ; then
353       set_xio_using_server iodef.xml true
354    else
355       set_xio_using_server iodef.xml false
356    fi
357    cd ${SETTE_DIR}
358    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
359
360    cd ${SETTE_DIR}
361    export TEST_NAME="SHORT"
362    . ./prepare_exe_dir.sh
363    cd ${EXE_DIR}
364    set_namelist namelist_cfg cn_exp \"VORTEX_SHORT\"
365    set_namelist namelist_cfg nn_it000 61
366    set_namelist namelist_cfg nn_itend 120
367    set_namelist namelist_cfg nn_stock 60
368    set_namelist namelist_cfg ln_rstart .true.
369    set_namelist namelist_cfg nn_rstctl 2
370    set_namelist namelist_cfg ln_clobber .true.
371    set_namelist namelist_top_cfg ln_rsttr .true.
372    set_namelist namelist_top_cfg nn_rsttr 2
373    set_namelist namelist_cfg cn_ocerst_in \"VORTEX_LONG_00000060_restart\"
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    ln -sf ../LONG/VORTEX_LONG_00000060_restart.nc .
380    if [ ${USING_MPMD} == "yes" ] ; then
381       set_xio_using_server iodef.xml true
382    else
383       set_xio_using_server iodef.xml false
384    fi
385    cd ${SETTE_DIR}
386    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
387    cd ${SETTE_DIR}
388    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
389
390
391    ## Test for all advection, vert. coordinates, vector form, flux form: test runability and complete all time steps
392    ## Needed namelist-xxxx for every type of run tested
393    cd ${CONFIG_DIR}/${NEW_CONF}/EXP00
394
395    for file in $(echo `ls namelist_*_cfg `) ; do
396        TEST_NAME=`ls $file | sed -e "s/namelist_//" | sed -e "s/_cfg//"`
397        TEST_NAME="EXP-${TEST_NAME}"
398        `mkdir ${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME}`
399        export TEST_NAME="${TEST_NAME}"
400         ## 
401        cd ${SETTE_DIR}
402        . ./param.cfg
403        . ./all_functions.sh
404        . ./prepare_exe_dir.sh
405        JOB_FILE=${EXE_DIR}/run_job.sh
406        NPROC=1
407        if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
408        cd ${EXE_DIR}
409        set_namelist namelist_cfg ln_clobber .true.
410        if [ ${USING_MPMD} == "yes" ] ; then
411           set_xio_using_server iodef.xml true
412        else
413           set_xio_using_server iodef.xml false
414        fi
415        cd ${SETTE_DIR}
416        . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
417        cd ${SETTE_DIR}
418        . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
419       ##
420    done
421fi
422
423done
424
425###### #--clem:
426###### # TESTS FOR SAS_BIPER CONFIGURATION
427###### if [ ${config} -eq 11 ] ;  then
428######     ## Restartability tests for SAS_BIPER
429######     export TEST_NAME="LONG"
430######     cd ${CONFIG_DIR0}
431######     . ./makenemo -m ${CMP_NAM} -n SAS_BIPER_ST -r SAS_BIPER -a TEST_CASES -j 8  del_key ${DEL_KEYS}
432######     cd ${SETTE_DIR}
433######     . ./param.cfg
434######     . ./all_functions.sh
435######     . ./prepare_exe_dir.sh
436######     JOB_FILE=${EXE_DIR}/run_job.sh
437######     NPROC=1
438######     if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi
439######     cd ${EXE_DIR}
440######     set_namelist namelist_cfg cn_exp \"SAS_BIPER_LONG\"
441######     set_namelist namelist_cfg nn_it000 1
442######     set_namelist namelist_cfg nn_itend 100
443######     set_namelist namelist_cfg nn_stock 50
444######     set_namelist namelist_cfg ln_clobber .true.
445###### #    set_namelist namelist_cfg ln_read_cfg .false.
446###### #    set_namelist namelist_cfg ln_linssh .true.
447###### #    set_namelist namelist_cfg ln_usr .true.
448###### #    set_namelist namelist_cfg ln_blk .false.
449###### #    set_namelist namelist_cfg nn_fsbc 1
450###### #    set_namelist namelist_cfg nn_ice 2
451###### #    set_namelist namelist_cfg l_sasread .false.
452###### #    set_namelist namelist_cfg rn_shlat 0.
453###### #    set_namelist namelist_cfg ln_NONE .true.
454###### #    set_namelist namelist_cfg ln_traadv_NONE .true.
455######
456######     set_namelist namelist_cfg jpni 1
457######     set_namelist namelist_cfg jpnj 1
458######     set_namelist namelist_cfg jpnij 1
459######     set_namelist namelist_ice_cfg ln_icethd .true.
460######     set_namelist namelist_ice_cfg ln_icedyn .true.
461######     set_namelist namelist_ice_cfg ln_dynFULL .true.
462######     set_namelist namelist_ice_cfg ln_dynRHGADV .false.
463######     set_namelist namelist_ice_cfg ln_dynADV .false.
464######     set_namelist namelist_ice_cfg ln_adv_Pra .false.
465######     set_namelist namelist_ice_cfg ln_adv_UMx .true.
466######
467######     set_namelist 1_namelist_cfg cn_exp \"SAS_BIPER_LONG\"
468######     set_namelist 1_namelist_cfg nn_it000 1
469######     set_namelist 1_namelist_cfg nn_itend 300
470######     set_namelist 1_namelist_cfg nn_stock 150
471######     set_namelist 1_namelist_cfg ln_clobber .true.
472######     set_namelist 1_namelist_cfg jpni 1
473######     set_namelist 1_namelist_cfg jpnj 1
474######     set_namelist 1_namelist_cfg jpnij 1
475######     set_namelist 1_namelist_ice_cfg ln_icethd .true.
476######     set_namelist 1_namelist_ice_cfg ln_icedyn .true.
477######     set_namelist 1_namelist_ice_cfg ln_dynFULL .true.
478######     set_namelist 1_namelist_ice_cfg ln_dynRHGADV .false.
479######     set_namelist 1_namelist_ice_cfg ln_dynADV .false.
480######     set_namelist 1_namelist_ice_cfg ln_adv_Pra .false.
481######     set_namelist 1_namelist_ice_cfg ln_adv_UMx .true.
482######     if [ ${USING_MPMD} == "yes" ] ; then
483######        set_xio_using_server iodef.xml true
484######     else
485######        set_xio_using_server iodef.xml false
486######     fi
487######     cd ${SETTE_DIR}
488######     . ./prepare_job.sh input_SASBIPER.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
489######
490######     cd ${SETTE_DIR}
491######     export TEST_NAME="SHORT"
492######     . ./prepare_exe_dir.sh
493######     cd ${EXE_DIR}
494######     set_namelist namelist_cfg cn_exp \"SAS_BIPER_SHORT\"
495######     set_namelist namelist_cfg nn_it000 51
496######     set_namelist namelist_cfg nn_itend 100
497######     set_namelist namelist_cfg nn_stock 50
498######     set_namelist namelist_cfg ln_rstart .true.
499######     set_namelist namelist_cfg nn_rstctl 2
500######     set_namelist namelist_cfg ln_clobber .true.
501######     set_namelist namelist_cfg jpni 1
502######     set_namelist namelist_cfg jpnj 1
503######     set_namelist namelist_cfg jpnij 1
504######     set_namelist namelist_ice_cfg ln_icethd .true.
505######     set_namelist namelist_ice_cfg ln_icedyn .true.
506######     set_namelist namelist_ice_cfg ln_dynFULL .true.
507######     set_namelist namelist_ice_cfg ln_dynRHGADV .false.
508######     set_namelist namelist_ice_cfg ln_dynADV .false.
509######     set_namelist namelist_ice_cfg ln_adv_Pra .false.
510######     set_namelist namelist_ice_cfg ln_adv_UMx .true.
511######     set_namelist namelist_cfg cn_ocerst_in \"SAS_BIPER_LONG_00000050_restart\"
512######     set_namelist namelist_ice_cfg cn_icerst_in \"SAS_BIPER_LONG_00000050_restart_ice\"
513######
514######     set_namelist 1_namelist_cfg cn_exp \"SAS_BIPER_SHORT\"
515######     set_namelist 1_namelist_cfg nn_it000 151
516######     set_namelist 1_namelist_cfg nn_itend 300
517######     set_namelist 1_namelist_cfg nn_stock 150
518######     set_namelist 1_namelist_cfg ln_rstart .true.
519######     set_namelist 1_namelist_cfg nn_rstctl 2
520######     set_namelist 1_namelist_cfg ln_clobber .true.
521######     set_namelist 1_namelist_cfg jpni 1
522######     set_namelist 1_namelist_cfg jpnj 1
523######     set_namelist 1_namelist_cfg jpnij 1
524######     set_namelist 1_namelist_ice_cfg ln_icethd .true.
525######     set_namelist 1_namelist_ice_cfg ln_icedyn .true.
526######     set_namelist 1_namelist_ice_cfg ln_dynFULL .true.
527######     set_namelist 1_namelist_ice_cfg ln_dynRHGADV .false.
528######     set_namelist 1_namelist_ice_cfg ln_dynADV .false.
529######     set_namelist 1_namelist_ice_cfg ln_adv_Pra .false.
530######     set_namelist 1_namelist_ice_cfg ln_adv_UMx .true.
531######     set_namelist 1_namelist_cfg cn_ocerst_in \"SAS_BIPER_LONG_00000150_restart\"
532######     set_namelist 1_namelist_ice_cfg cn_icerst_in \"SAS_BIPER_LONG_00000150_restart_ice\"
533######
534######
535######     if [ ${USING_MPMD} == "yes" ] ; then
536######        set_xio_using_server iodef.xml true
537######     else
538######        set_xio_using_server iodef.xml false
539######     fi
540######     if [ $NPROC -eq 1 ] ;  then
541######        ln -sf ../LONG/SAS_BIPER_LONG_00000050_restart.nc .
542######        ln -sf ../LONG/SAS_BIPER_LONG_00000050_restart_ice.nc .
543######        ln -sf ../LONG/1_SAS_BIPER_LONG_00000150_restart.nc .
544######        ln -sf ../LONG/1_SAS_BIPER_LONG_00000150_restart_ice.nc .
545######     else
546######        for (( i=1; i<=$NPROC; i++)) ; do
547######           L_NPROC=$(( $i - 1 ))
548######           L_NPROC=`printf "%04d\n" ${L_NPROC}`
549######           ln -sf ../LONG/SAS_BIPER_LONG_00000050_restart_${L_NPROC}.nc .
550######           ln -sf ../LONG/SAS_BIPER_LONG_00000050_restart_ice_${L_NPROC}.nc .
551######           ln -sf ../LONG/1_SAS_BIPER_LONG_00000150_restart_${L_NPROC}.nc .
552######           ln -sf ../LONG/1_SAS_BIPER_LONG_00000150_restart_ice_${L_NPROC}.nc .
553######        done
554######     fi
555######     if [ ${USING_MPMD} == "yes" ] ; then
556######        set_xio_using_server iodef.xml true
557######     else
558######        set_xio_using_server iodef.xml false
559######     fi
560######     if [ $NPROC -eq 1 ] ;  then
561######        ln -sf ../LONG/SAS_BIPER_LONG_00000050_restart.nc .
562######        ln -sf ../LONG/SAS_BIPER_LONG_00000050_restart_ice.nc .######        ln -sf ../LONG/1_SAS_BIPER_LONG_00000150_restart.nc .
563######        ln -sf ../LONG/1_SAS_BIPER_LONG_00000150_restart_ice.nc .
564######     else
565######        for (( i=1; i<=$NPROC; i++)) ; do
566######           L_NPROC=$(( $i - 1 ))
567######           L_NPROC=`printf "%04d\n" ${L_NPROC}`
568######           ln -sf ../LONG/SAS_BIPER_LONG_00000050_restart_${L_NPROC}.nc .
569######           ln -sf ../LONG/SAS_BIPER_LONG_00000050_restart_ice_${L_NPROC}.nc .
570######           ln -sf ../LONG/1_SAS_BIPER_LONG_00000150_restart_${L_NPROC}.nc .
571######           ln -sf ../LONG/1_SAS_BIPER_LONG_00000150_restart_ice_${L_NPROC}.nc .
572######        done
573######     fi
574######     if [ ${USING_MPMD} == "yes" ] ; then
575######        set_xio_using_server iodef.xml true
576######     else
577######        set_xio_using_server iodef.xml false
578######     fi
579######     cd ${SETTE_DIR}
580######     . ./prepare_job.sh input_SASBIPER.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS}
581######     cd ${SETTE_DIR}
582######     . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
583######
584###### fi
585######
586###### #----
Note: See TracBrowser for help on using the repository browser.