source: branches/2012/dev_r3327_MERCATOR1_BDY/NEMOGCM/SETTE/sette.sh @ 3492

Last change on this file since 3492 was 3492, checked in by cbricaud, 9 years ago

add modifications in SETTE

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 21.7 KB
Line 
1#!/bin/bash
2#############################################################
3# Author : Simona Flavoni for NEMO
4# Contact : sflod@locean-ipsl.upmc.fr
5#
6# sette.sh   : principal script of SET TEsts for NEMO (SETTE)
7# ----------------------------------------------------------------------
8# NEMO/SETTE , NEMO Consortium (2010)
9# Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
10# ----------------------------------------------------------------------
11#
12#############################################################
13#set -x
14set -o posix
15#set -u
16#set -e
17#+
18#
19# ================
20# sette.sh
21# ================
22#
23# ----------------------------------------------
24# Set of tests for NEMO
25# ----------------------------------------------
26#
27# SYNOPSIS
28# ========
29#
30# ::
31#
32#  $ ./sette.sh
33#
34# DESCRIPTION
35# ===========
36#
37# Variables to be checked by user:
38#
39# COMPILER : name of compiler as defined in NEMOGCM/ARCH directory
40#
41# BATCH_COMMAND :  name of the command for batch submission
42#
43# MPI_INTERACT : 
44#
45#         for MPP tests, "no" for batch execution, "yes" for interactive execution
46#
47#         NOTE: for run with 1 process tests are run always in MPI_INTERACT="yes"
48#
49# Principal script is sette.sh, that calls
50#
51#  makenemo
52#
53#   creates the exectuable in ${CONFIG_NAME}/BLD/bin/nemo.exe  (and its link opa in ${CONFIG_NAME}/EXP00)
54#
55#  param.cfg : sets and loads following directories:
56#
57#   FORCING_DIR : is the directory for forcing files (tarfile)
58#
59#   INPUT_DIR : is the directory for input files storing
60#
61#   TMPDIR : is the temporary directory (if needed)
62#
63#   NEMO_VALIDATION_DIR : is the validation directory
64#
65#   (NOTE: this file is the same for all configrations to be tested with sette)
66#
67#
68#  all_functions.sh : loads functions used by sette (note: new functions can be added here)
69#
70#   set_namelist : function declared in all_functions that set namelist parameters for tests
71#
72#   post_test_tidyup : creates validation storage directory and copy needed output files (solver.stat and ocean.output) in it after execution of test.
73#
74#   Tree of VALIDATION is:
75#
76#   NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE)
77#
78#
79#  prepare_exe_dir.sh : defines and creates directory where the test is executed
80#
81#       execution directory takes name of TEST_NAME defined in every test in sette.sh
82#
83#       ( each test in executed in its own directory )
84#
85#
86#  fcm_job.sh
87#
88#   runs job in interactive or batch mode : all jobs using 1 process are run interactive, and all MPP jobs are
89#
90#   run in batch (MPI_INTERACT="no") or interactive (MPI_INTERACT="yes") see sette.sh and BATCH_TEMPLATE directory
91#
92#   (note this job needs to have an input_CONFIG.cfg in which can be found input tar file)
93#
94#  NOTE: if job is not launched for some problems you have executable ready in ${EXE_DIR} directory
95#
96#  NOTE: the changed namelists are leaved in ${EXE_DIR} directory whereas original namelist remains in ${NEW_CONF}/EXP00
97#
98#  in ${SETTE_DIR} is created output.sette with the echo of executed commands
99#
100#  if sette.sh is stopped in output.sette there is written the last command executed by sette.sh
101#
102#  if you run: ./sette.sh 2>&1 | tee out.sette
103#
104#  in ${SETTE_DIR} out.sette is redirected standard error & standard output
105#
106#
107# EXAMPLES
108# ========
109#
110# ::
111#
112#  $ ./sette.sh
113#
114#
115# TODO
116# ====
117#
118# option debug
119#
120# EVOLUTIONS
121# ==========
122#
123# $Id$
124#
125#   * creation
126#
127#-
128#
129#-
130# Compiler among those in NEMOGCM/ARCH
131COMPILER=ifort_MERCATOR_CLUSTER
132export BATCH_COMMAND_PAR="qsub "
133export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR
134
135
136# Directory to run the tests
137SETTE_DIR=$(cd $(dirname "$0"); pwd)
138MAIN_DIR=${SETTE_DIR%/SETTE}
139CONFIG_DIR=${MAIN_DIR}/CONFIG
140TOOLS_DIR=${MAIN_DIR}/TOOLS
141COMPIL_DIR=${TOOLS_DIR}/COMPILE
142
143CMP_NAM=${1:-$COMPILER}
144# Copy job_batch_COMPILER file for specific compiler into job_batch_template
145cd ${SETTE_DIR}
146cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
147
148for config in 1 2 3 4 5 6 7 8 9
149do
150
151# TESTS FOR GYRE_LOBSTER CONFIGURATION
152if [ ${config} -eq 1 ] ;  then
153    ## Restartability tests for GYRE_LOBSTER
154    export TEST_NAME="LONG"
155    cd ${SETTE_DIR}
156    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_LONG -r GYRE_LOBSTER -j 8 
157    cd ${SETTE_DIR}
158    . param.cfg
159    . all_functions.sh
160    . prepare_exe_dir.sh
161    JOB_FILE=${EXE_DIR}/run_job.sh
162    MPIRUN_FLAG="yes"
163    NPROC=1
164    rm $JOB_FILE
165    cd ${EXE_DIR}
166    set_namelist namelist cn_exp \"GYRELOB_LONG\"
167    set_namelist namelist nn_it000 1
168    set_namelist namelist nn_itend 120
169    set_namelist namelist nn_stock 60
170    set_namelist namelist ln_clobber .true.
171    set_namelist namelist nn_solv 2
172    set_namelist namelist_top ln_diatrc .false.
173    cd ${SETTE_DIR}
174    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
175
176    cd ${SETTE_DIR}
177    export TEST_NAME="SHORT"
178    . prepare_exe_dir.sh
179    cd ${EXE_DIR}
180    set_namelist namelist cn_exp \"GYRELOB_SHORT\"
181    set_namelist namelist nn_it000 61
182    set_namelist namelist nn_itend 120
183    set_namelist namelist nn_stock 60
184    set_namelist namelist ln_rstart .true.
185    set_namelist namelist nn_rstctl 2
186    set_namelist namelist ln_clobber .true.
187    set_namelist namelist nn_solv 2
188    ln -s -f ..\/LONG\/GYRELOB_LONG_00000060_restart.nc
189    ln -s -f ..\/LONG\/GYRELOB_LONG_00000060_restart_trc.nc
190    set_namelist namelist cn_ocerst_in \"GYRELOB_LONG_00000060_restart\"
191    set_namelist namelist_top ln_diatrc .false.
192    set_namelist namelist_top ln_rsttr .true.
193    set_namelist namelist_top nn_rsttr 2
194    set_namelist namelist_top cn_trcrst_in \"GYRELOB_LONG_00000060_restart_trc\"
195    cd ${SETTE_DIR}
196    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
197    cd ${SETTE_DIR}
198    . ./fcm_job.sh $NPROC $JOB_FILE
199fi
200
201if [ ${config} -eq 2 ] ;  then
202    ## Reproducibility tests for GYRE_LOBSTER
203    export TEST_NAME="REPRO_1_4"
204    cd ${SETTE_DIR}
205    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_4 -r GYRE_LOBSTER -j 8 add_key "key_mpp_rep key_mpp_mpi"
206    cd ${SETTE_DIR}
207    . param.cfg
208    . all_functions.sh
209    . prepare_exe_dir.sh
210    JOB_FILE=${EXE_DIR}/run_job.sh
211    MPIRUN_FLAG="yes"
212    NPROC=4
213    rm $JOB_FILE
214    cd ${EXE_DIR}
215    set_namelist namelist cn_exp \"GYRELOB_14\"
216    set_namelist namelist nn_it000 1
217    set_namelist namelist nn_itend 60
218    set_namelist namelist nn_fwb 0
219    set_namelist namelist nn_bench 0
220    set_namelist namelist ln_ctl .false.
221    set_namelist namelist ln_clobber .true.
222    set_namelist namelist nn_solv 2
223    set_namelist namelist_top ln_diatrc .false.
224    set_namelist namelist_top ln_trcdta .false.
225    set_namelist namelist jpni 1
226    set_namelist namelist jpnj 4
227    set_namelist namelist jpnij 4
228    cd ${SETTE_DIR}
229    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
230    cd ${SETTE_DIR}
231    . ./fcm_job.sh $NPROC $JOB_FILE
232
233    cd ${SETTE_DIR}
234    export TEST_NAME="REPRO_2_2"
235    . prepare_exe_dir.sh
236    JOB_FILE=${EXE_DIR}/run_job.sh
237    MPIRUN_FLAG="yes"
238    NPROC=4
239    rm $JOB_FILE
240    cd ${EXE_DIR}
241    set_namelist namelist cn_exp \"GYRELOB_22\"
242    set_namelist namelist nn_it000 1
243    set_namelist namelist nn_itend 60
244    set_namelist namelist nn_fwb 0
245    set_namelist namelist ln_ctl .false.
246    set_namelist namelist ln_clobber .true.
247    set_namelist namelist nn_solv 2
248    set_namelist namelist_top ln_diatrc .false.
249    set_namelist namelist_top ln_trcdta .false.
250    set_namelist namelist jpni 2
251    set_namelist namelist jpnj 2
252    set_namelist namelist jpnij 4
253    cd ${SETTE_DIR}
254    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
255    cd ${SETTE_DIR}
256    . ./fcm_job.sh $NPROC $JOB_FILE
257fi
258
259# TESTS FOR ORCA2_LIM_PISCES CONFIGURATION
260if [ ${config} -eq 3 ] ;  then
261    ## Restartability tests for ORCA2_LIM_PISCES
262    export TEST_NAME="LONG"
263    cd ${SETTE_DIR}
264    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8
265    cd ${SETTE_DIR}
266    . param.cfg
267    . all_functions.sh
268    . prepare_exe_dir.sh
269    JOB_FILE=${EXE_DIR}/run_job.sh
270    MPIRUN_FLAG="yes"
271    NPROC=1
272    rm $JOB_FILE
273    cd ${EXE_DIR}
274    set_namelist namelist cn_exp \"O2LP_LONG\"
275    set_namelist namelist nn_it000 1
276    set_namelist namelist nn_itend 150
277    set_namelist namelist nn_stock 75
278    set_namelist namelist ln_clobber .true.
279    set_namelist namelist nn_solv 2
280    set_namelist namelist_top ln_trcdta .false.
281    set_namelist namelist_top ln_diatrc .false.
282    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
283    # if not you need input files, and for tests is not necessary
284    set_namelist namelist_pisces ln_ironsed .false.
285    set_namelist namelist_pisces ln_river .false.
286    set_namelist namelist_pisces ln_ndepo .false.
287    set_namelist namelist_pisces ln_dust .false.
288    set_namelist namelist_pisces ln_presatm .false.
289    cd ${SETTE_DIR}
290    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
291   
292    cd ${SETTE_DIR}
293    export TEST_NAME="SHORT"
294    . prepare_exe_dir.sh
295    cd ${EXE_DIR}
296    set_namelist namelist cn_exp \"O2LP_SHORT\"
297    set_namelist namelist nn_it000 76
298    set_namelist namelist nn_itend 150
299    set_namelist namelist nn_stock 75
300    set_namelist namelist ln_rstart .true.
301    set_namelist namelist nn_rstctl 2
302    set_namelist namelist ln_clobber .true.
303    set_namelist namelist nn_solv 2
304    ln -s -f ../LONG/O2LP_LONG_00000075_restart.nc
305    ln -s -f ../LONG/O2LP_LONG_00000075_restart_ice.nc
306    ln -s -f ../LONG/O2LP_LONG_00000075_restart_trc.nc
307    set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart\"
308    set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice\"
309    set_namelist namelist_top ln_diatrc .false.
310    set_namelist namelist_top ln_rsttr .true.
311    set_namelist namelist_top nn_rsttr 2
312    set_namelist namelist_top cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\"
313    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
314    # if not you need input files, and for tests is not necessary
315    set_namelist namelist_pisces ln_ironsed .false.
316    set_namelist namelist_pisces ln_river .false.
317    set_namelist namelist_pisces ln_ndepo .false.
318    set_namelist namelist_pisces ln_dust .false.
319    set_namelist namelist_pisces ln_presatm .false.
320    cd ${SETTE_DIR}
321    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
322    cd ${SETTE_DIR}
323    . ./fcm_job.sh $NPROC $JOB_FILE
324fi
325
326if [ ${config} -eq 4 ] ;  then
327    ## Reproducibility tests for ORCA2_LIM_PISCES
328    export TEST_NAME="REPRO_4_4"
329    cd ${SETTE_DIR}
330    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_rep key_mpp_mpi"
331    cd ${SETTE_DIR}
332    . param.cfg
333    . all_functions.sh
334    . prepare_exe_dir.sh
335    JOB_FILE=${EXE_DIR}/run_job.sh
336    MPIRUN_FLAG="yes"
337    NPROC=16
338    rm $JOB_FILE
339    cd ${EXE_DIR}
340    set_namelist namelist nn_it000 1
341    set_namelist namelist nn_itend 75
342    set_namelist namelist nn_fwb 0
343    set_namelist namelist ln_clobber .true.
344    set_namelist namelist jpni 4
345    set_namelist namelist jpnj 4
346    set_namelist namelist jpnij 16
347    set_namelist namelist nn_solv 2
348    set_namelist namelist_top ln_trcdta .false.
349    set_namelist namelist_top ln_diatrc .false.
350    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
351    # if not you need input files, and for tests is not necessary
352    set_namelist namelist_pisces ln_ironsed .false.
353    set_namelist namelist_pisces ln_river .false.
354    set_namelist namelist_pisces ln_ndepo .false.
355    set_namelist namelist_pisces ln_dust .false.
356    set_namelist namelist_pisces ln_presatm .false.
357    cd ${SETTE_DIR}
358    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
359    cd ${SETTE_DIR}
360    . ./fcm_job.sh $NPROC $JOB_FILE
361
362    cd ${SETTE_DIR}
363    export TEST_NAME="REPRO_2_8"
364    . prepare_exe_dir.sh
365    JOB_FILE=${EXE_DIR}/run_job.sh
366    MPIRUN_FLAG="yes"
367    NPROC=16
368    rm $JOB_FILE
369    cd ${EXE_DIR}
370    set_namelist namelist nn_it000 1
371    set_namelist namelist nn_itend 75
372    set_namelist namelist nn_fwb 0
373    set_namelist namelist ln_clobber .true.
374    set_namelist namelist jpni 2
375    set_namelist namelist jpnj 8
376    set_namelist namelist jpnij 16
377    set_namelist namelist nn_solv 2
378    set_namelist namelist_top ln_trcdta .false.
379    set_namelist namelist_top ln_diatrc .false.
380    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
381    # if not you need input files, and for tests is not necessary
382    set_namelist namelist_pisces ln_ironsed .false.
383    set_namelist namelist_pisces ln_river .false.
384    set_namelist namelist_pisces ln_ndepo .false.
385    set_namelist namelist_pisces ln_dust .false.
386    set_namelist namelist_pisces ln_presatm .false.
387    cd ${SETTE_DIR}
388    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
389    cd ${SETTE_DIR}
390    . ./fcm_job.sh $NPROC $JOB_FILE
391fi
392
393# TESTS FOR ORCA2_OFF_PISCES CONFIGURATION
394if [ ${config} -eq 5 ] ;  then
395    ## Restartability tests for ORCA2_OFF_PISCES
396    export TEST_NAME="LONG"
397    cd ${SETTE_DIR}
398    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8
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    MPIRUN_FLAG="yes"
405    NPROC=1
406    rm $JOB_FILE
407    cd ${EXE_DIR}
408    set_namelist namelist cn_exp \"OFFP_LONG\"
409    set_namelist namelist nn_it000 1
410    set_namelist namelist nn_itend 40
411    set_namelist namelist nn_stock 20
412    set_namelist namelist ln_clobber .true.
413    set_namelist namelist_top ln_trcdta .false.
414    set_namelist namelist_top ln_diatrc .false.
415    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
416    # if not you need input files, and for tests is not necessary
417    set_namelist namelist_pisces ln_ironsed .false.
418    set_namelist namelist_pisces ln_river .false.
419    set_namelist namelist_pisces ln_ndepo .false.
420    set_namelist namelist_pisces ln_dust .false.
421    set_namelist namelist_pisces ln_presatm .false.
422    cd ${SETTE_DIR}
423    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
424   
425    cd ${SETTE_DIR}
426    export TEST_NAME="SHORT"
427    . prepare_exe_dir.sh
428    cd ${EXE_DIR}
429    set_namelist namelist cn_exp \"OFFP_SHORT\"
430    set_namelist namelist nn_it000 21
431    set_namelist namelist nn_itend 40
432    set_namelist namelist nn_stock 20
433    set_namelist namelist ln_clobber .true.
434    ln -s ../LONG/OFFP_LONG_00000020_restart_trc.nc .
435    set_namelist namelist_top ln_diatrc .false.
436    set_namelist namelist_top ln_rsttr .true.
437    set_namelist namelist_top nn_rsttr 2
438    set_namelist namelist_top cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\"
439    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
440    # if not you need input files, and for tests is not necessary
441    set_namelist namelist_pisces ln_ironsed .false.
442    set_namelist namelist_pisces ln_river .false.
443    set_namelist namelist_pisces ln_ndepo .false.
444    set_namelist namelist_pisces ln_dust .false.
445    set_namelist namelist_pisces ln_presatm .false.
446    cd ${SETTE_DIR}
447    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
448    cd ${SETTE_DIR}
449    . ./fcm_job.sh $NPROC $JOB_FILE
450fi
451
452if [ ${config} -eq 6 ] ;  then
453    ## Reproducibility tests for ORCA2_OFF_PISCES
454    export TEST_NAME="REPRO_4_4"
455    cd ${SETTE_DIR}
456    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep key_mpp_mpi"
457    cd ${SETTE_DIR}
458    . param.cfg
459    . all_functions.sh
460    . prepare_exe_dir.sh
461    JOB_FILE=${EXE_DIR}/run_job.sh
462    MPIRUN_FLAG="yes"
463    NPROC=16
464    rm $JOB_FILE
465    cd ${EXE_DIR}
466    set_namelist namelist nn_it000 1
467    set_namelist namelist nn_itend 40
468    set_namelist namelist ln_clobber .true.
469    set_namelist namelist jpni 4
470    set_namelist namelist jpnj 4
471    set_namelist namelist jpnij 16
472    set_namelist namelist_top ln_trcdta .false.
473    set_namelist namelist_top ln_diatrc .false.
474    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
475    # if not you need input files, and for tests is not necessary
476    set_namelist namelist_pisces ln_ironsed .false.
477    set_namelist namelist_pisces ln_river .false.
478    set_namelist namelist_pisces ln_ndepo .false.
479    set_namelist namelist_pisces ln_dust .false.
480    set_namelist namelist_pisces ln_presatm .false.
481    cd ${SETTE_DIR}
482    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
483    cd ${SETTE_DIR}
484    . ./fcm_job.sh $NPROC $JOB_FILE
485
486    cd ${SETTE_DIR}
487    export TEST_NAME="REPRO_2_8"
488    . prepare_exe_dir.sh
489    JOB_FILE=${EXE_DIR}/run_job.sh
490    MPIRUN_FLAG="yes"
491    NPROC=16
492    rm $JOB_FILE
493    cd ${EXE_DIR}
494    set_namelist namelist nn_it000 1
495    set_namelist namelist nn_itend 40
496    set_namelist namelist ln_clobber .true.
497    set_namelist namelist jpni 2
498    set_namelist namelist jpnj 8
499    set_namelist namelist jpnij 16
500    set_namelist namelist_top ln_trcdta .false.
501    set_namelist namelist_top ln_diatrc .false.
502    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
503    # if not you need input files, and for tests is not necessary
504    set_namelist namelist_pisces ln_ironsed .false.
505    set_namelist namelist_pisces ln_river .false.
506    set_namelist namelist_pisces ln_ndepo .false.
507    set_namelist namelist_pisces ln_dust .false.
508    set_namelist namelist_pisces ln_presatm .false.
509    cd ${SETTE_DIR}
510    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
511    cd ${SETTE_DIR}
512    . ./fcm_job.sh $NPROC $JOB_FILE
513fi
514
515# TESTS FOR AMM12 CONFIGURATION
516if [ ${config} -eq 7 ] ;  then
517    ## Reproducibility tests for AMM12
518    export TEST_NAME="REPRO_8_4"
519    cd ${SETTE_DIR}
520    . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 add_key "key_mpp_rep"
521    cd ${SETTE_DIR}
522    . param.cfg
523    . all_functions.sh
524    . prepare_exe_dir.sh
525    JOB_FILE=${EXE_DIR}/run_job.sh
526    MPIRUN_FLAG="yes"
527    NPROC=32
528    rm $JOB_FILE
529    cd ${EXE_DIR}
530    set_namelist namelist nn_it000 1
531    set_namelist namelist nn_itend 576
532    set_namelist namelist nn_fwb 0
533    set_namelist namelist ln_ctl .false.
534    set_namelist namelist ln_clobber .true.
535    set_namelist namelist nn_dyn2d 2
536    set_namelist namelist nn_tra_dta 0
537    set_namelist namelist jpni 8
538    set_namelist namelist jpnj 4
539    set_namelist namelist jpnij 32
540    cd ${SETTE_DIR}
541    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
542    cd ${SETTE_DIR}
543    . ./fcm_job.sh $NPROC $JOB_FILE
544
545    cd ${SETTE_DIR}
546    export TEST_NAME="REPRO_4_8"
547    . prepare_exe_dir.sh
548    JOB_FILE=${EXE_DIR}/run_job.sh
549    MPIRUN_FLAG="yes"
550    NPROC=32
551    rm $JOB_FILE
552    cd ${EXE_DIR}
553    set_namelist namelist nn_it000 1
554    set_namelist namelist nn_itend 576
555    set_namelist namelist nn_fwb 0
556    set_namelist namelist ln_ctl .false.
557    set_namelist namelist nn_dyn2d 2
558    set_namelist namelist nn_tra_dta 0
559    set_namelist namelist ln_clobber .true.
560    set_namelist namelist jpni 4
561    set_namelist namelist jpnj 8
562    set_namelist namelist jpnij 32
563    cd ${SETTE_DIR}
564    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
565    cd ${SETTE_DIR}
566    . ./fcm_job.sh $NPROC $JOB_FILE
567fi
568
569if [ ${config} -eq 8 ] ;  then
570    ## Restartability tests for AMM12
571    export TEST_NAME="LONG"
572    cd ${SETTE_DIR}
573    . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 add_key "key_mpp_rep"
574    cd ${SETTE_DIR}
575    . param.cfg
576    . all_functions.sh
577    . prepare_exe_dir.sh
578    JOB_FILE=${EXE_DIR}/run_job.sh
579    MPIRUN_FLAG="yes"
580    NPROC=32
581    rm $JOB_FILE
582    cd ${EXE_DIR}
583    set_namelist namelist nn_it000 1
584    set_namelist namelist nn_itend 12
585    set_namelist namelist nn_stock 6
586    set_namelist namelist nn_fwb 0
587    set_namelist namelist ln_ctl .false.
588    set_namelist namelist ln_clobber .true.
589    set_namelist namelist nn_dyn2d 2
590    set_namelist namelist nn_tra_dta 0
591    set_namelist namelist jpni 8
592    set_namelist namelist jpnj 4
593    set_namelist namelist jpnij 32
594    cd ${SETTE_DIR}
595    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
596
597    cd ${SETTE_DIR}
598    export TEST_NAME="SHORT"
599    . prepare_exe_dir.sh
600    cd ${EXE_DIR}
601    set_namelist namelist nn_it000 7
602    set_namelist namelist nn_itend 12
603    set_namelist namelist nn_fwb 0
604    set_namelist namelist ln_ctl .false.
605    set_namelist namelist ln_clobber .true.
606    set_namelist namelist nn_dyn2d 2
607    set_namelist namelist nn_tra_dta 0
608    set_namelist namelist jpni 8
609    set_namelist namelist jpnj 4
610    set_namelist namelist jpnij 32
611    set_namelist namelist ln_rstart .true.
612    set_namelist namelist nn_rstctl 2
613    set_namelist namelist cn_ocerst_in \"../LONG/AMM12_00000006_restart\"
614    cd ${SETTE_DIR}
615    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
616    cd ${SETTE_DIR}
617    . ./fcm_job.sh $NPROC $JOB_FILE
618fi
619
620# TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests)
621if [ ${config} -eq 9 ] ;  then
622    ## ORCA2_LIM with Agulhas AGRIF zoom in MPI
623    export TEST_NAME="SHORT"
624    cd ${SETTE_DIR}
625    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM -j 8 add_key "key_mpp_rep key_mpp_mpi key_agrif" del_key "key_zdftmx"
626    cd ${SETTE_DIR}
627    . param.cfg
628    . all_functions.sh
629    . prepare_exe_dir.sh
630    JOB_FILE=${EXE_DIR}/run_job.sh
631    MPIRUN_FLAG="yes"
632    NPROC=2
633    rm $JOB_FILE
634    cd ${EXE_DIR}
635    set_namelist namelist nn_it000 1
636    set_namelist namelist nn_itend 75
637    set_namelist namelist ln_ctl .false.
638    set_namelist namelist ln_clobber .true.
639    set_namelist namelist jpni 1
640    set_namelist namelist jpnj 2
641    set_namelist namelist jpnij 2
642    set_namelist 1_namelist nn_it000 1
643    set_namelist 1_namelist nn_itend 150
644    set_namelist 1_namelist ln_ctl .false.
645    set_namelist 1_namelist ln_clobber .true.
646    cd ${SETTE_DIR}
647    . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
648    cd ${SETTE_DIR}
649    . ./fcm_job.sh $NPROC $JOB_FILE
650fi
651
652done
Note: See TracBrowser for help on using the repository browser.