source: branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/SETTE/sette.sh @ 3465

Last change on this file since 3465 was 3465, checked in by cetlod, 8 years ago

branch:2012/dev_r3438_LOCEAN15_PISLOB update sette scripts according to new developments in PISCES, see ticket #972

  • Property svn:executable set to *
  • Property svn:keywords set to Id
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.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#  prepare_job.sh
87#
88#  to generate the script run_job.sh
89#
90#  fcm_job.sh
91#
92#   runs job in interactive or batch mode : all jobs using 1 process are run interactive, and all MPP jobs are
93#
94#   run in batch (MPI_INTERACT="no") or interactive (MPI_INTERACT="yes") see sette.sh and BATCH_TEMPLATE directory
95#
96#   (note this job needs to have an input_CONFIG.cfg in which can be found input tar file)
97#
98#  NOTE: if job is not launched for some problems you have executable ready in ${EXE_DIR} directory
99#
100#  NOTE: the changed namelists are leaved in ${EXE_DIR} directory whereas original namelist remains in ${NEW_CONF}/EXP00
101#
102#  in ${SETTE_DIR} is created output.sette with the echo of executed commands
103#
104#  if sette.sh is stopped in output.sette there is written the last command executed by sette.sh
105#
106#  if you run: ./sette.sh 2>&1 | tee out.sette
107#
108#  in ${SETTE_DIR} out.sette is redirected standard error & standard output
109#
110#
111# EXAMPLES
112# ========
113#
114# ::
115#
116#  $ ./sette.sh
117#
118#
119# TODO
120# ====
121#
122# option debug
123#
124# EVOLUTIONS
125# ==========
126#
127# $Id$
128#
129#   * creation
130#
131#-
132#
133#-
134# Compiler among those in NEMOGCM/ARCH
135COMPILER=PW6_VARGAS
136export BATCH_COMMAND_PAR="llsubmit"
137export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR
138export INTERACT_FLAG="no"
139export MPIRUN_FLAG="yes"
140
141
142# Directory to run the tests
143SETTE_DIR=$(cd $(dirname "$0"); pwd)
144MAIN_DIR=${SETTE_DIR%/SETTE}
145CONFIG_DIR=${MAIN_DIR}/CONFIG
146TOOLS_DIR=${MAIN_DIR}/TOOLS
147COMPIL_DIR=${TOOLS_DIR}/COMPILE
148
149CMP_NAM=${1:-$COMPILER}
150# Copy job_batch_COMPILER file for specific compiler into job_batch_template
151cd ${SETTE_DIR}
152cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
153
154for config in 1 2 3 4 5 6 7 8 9
155do
156
157# TESTS FOR GYRE CONFIGURATION
158if [ ${config} -eq 1 ] ;  then
159    ## Restartability tests for GYRE
160    export TEST_NAME="LONG"
161    cd ${SETTE_DIR}
162    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_LONG -r GYRE -j 8 
163    cd ${SETTE_DIR}
164    . param.cfg
165    . all_functions.sh
166    . prepare_exe_dir.sh
167    JOB_FILE=${EXE_DIR}/run_job.sh
168    NPROC=1
169    \rm $JOB_FILE
170    cd ${EXE_DIR}
171    set_namelist namelist cn_exp \"GYRE_LONG\"
172    set_namelist namelist nn_it000 1
173    set_namelist namelist nn_itend 120
174    set_namelist namelist nn_stock 60
175    set_namelist namelist ln_clobber .true.
176    set_namelist namelist nn_solv 2
177    cd ${SETTE_DIR}
178    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
179    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
180    cd ${SETTE_DIR}
181    . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG
182
183    cd ${SETTE_DIR}
184    export TEST_NAME="SHORT"
185    . prepare_exe_dir.sh
186    cd ${EXE_DIR}
187    set_namelist namelist cn_exp \"GYRE_SHORT\"
188    set_namelist namelist nn_it000 61
189    set_namelist namelist nn_itend 120
190    set_namelist namelist nn_stock 60
191    set_namelist namelist ln_rstart .true.
192    set_namelist namelist nn_rstctl 2
193    set_namelist namelist ln_clobber .true.
194    set_namelist namelist nn_solv 2
195    ln -s -f ..\/LONG\/GYRE_LONG_00000060_restart.nc
196    ln -s -f ..\/LONG\/GYRE_LONG_00000060_restart_trc.nc
197    set_namelist namelist cn_ocerst_in \"GYRE_LONG_00000060_restart\"
198    cd ${SETTE_DIR}
199    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
200    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
201    cd ${SETTE_DIR}
202    . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG
203fi
204
205if [ ${config} -eq 2 ] ;  then
206    ## Reproducibility tests for GYRE
207    export TEST_NAME="REPRO_1_4"
208    cd ${SETTE_DIR}
209    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_4 -r GYRE -j 8 add_key "key_mpp_mpi key_mpp_rep"
210    cd ${SETTE_DIR}
211    . param.cfg
212    . all_functions.sh
213    . prepare_exe_dir.sh
214    JOB_FILE=${EXE_DIR}/run_job.sh
215    NPROC=4
216    \rm $JOB_FILE
217    cd ${EXE_DIR}
218    set_namelist namelist cn_exp \"GYRE_14\"
219    set_namelist namelist nn_it000 1
220    set_namelist namelist nn_itend 60
221    set_namelist namelist nn_fwb 0
222    set_namelist namelist nn_bench 0
223    set_namelist namelist ln_ctl .false.
224    set_namelist namelist ln_clobber .true.
225    set_namelist namelist nn_solv 2
226    set_namelist namelist jpni 1
227    set_namelist namelist jpnj 4
228    set_namelist namelist jpnij 4
229    cd ${SETTE_DIR}
230    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
231    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
232    cd ${SETTE_DIR}
233    . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG
234
235    cd ${SETTE_DIR}
236    export TEST_NAME="REPRO_2_2"
237    . prepare_exe_dir.sh
238    JOB_FILE=${EXE_DIR}/run_job.sh
239    NPROC=4
240    \rm $JOB_FILE
241    cd ${EXE_DIR}
242    set_namelist namelist cn_exp \"GYRE_22\"
243    set_namelist namelist nn_it000 1
244    set_namelist namelist nn_itend 60
245    set_namelist namelist nn_fwb 0
246    set_namelist namelist ln_ctl .false.
247    set_namelist namelist ln_clobber .true.
248    set_namelist namelist nn_solv 2
249    set_namelist namelist jpni 2
250    set_namelist namelist jpnj 2
251    set_namelist namelist jpnij 4
252    cd ${SETTE_DIR}
253    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
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  $INTERACT_FLAG $MPIRUN_FLAG
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    NPROC=1
271    \rm $JOB_FILE
272    cd ${EXE_DIR}
273    set_namelist namelist cn_exp \"O2LP_LONG\"
274    set_namelist namelist nn_it000 1
275    set_namelist namelist nn_itend 150
276    set_namelist namelist nn_stock 75
277    set_namelist namelist ln_clobber .true.
278    set_namelist namelist nn_solv 2
279    set_namelist namelist_top ln_trcdta .false.
280    set_namelist namelist_top ln_diatrc .false.
281    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
282    # if not you need input files, and for tests is not necessary
283    set_namelist namelist_pisces ln_presatm .false.
284    set_namelist namelist_pisces ln_varpar .false.
285    set_namelist namelist_pisces ln_dust .false.
286    set_namelist namelist_pisces ln_solub .false.
287    set_namelist namelist_pisces ln_river .false.
288    set_namelist namelist_pisces ln_ndepo .false.
289    set_namelist namelist_pisces ln_ironsed .false.
290    set_namelist namelist_pisces ln_hydrofe .false.
291    cd ${SETTE_DIR}
292    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
293    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE   
294    cd ${SETTE_DIR}
295    . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG
296#
297    export TEST_NAME="SHORT"
298    cd ${SETTE_DIR}
299    . prepare_exe_dir.sh
300    cd ${EXE_DIR}
301    set_namelist namelist cn_exp \"O2LP_SHORT\"
302    set_namelist namelist nn_it000 76
303    set_namelist namelist nn_itend 150
304    set_namelist namelist nn_stock 75
305    set_namelist namelist ln_rstart .true.
306    set_namelist namelist nn_rstctl 2
307    set_namelist namelist ln_clobber .true.
308    set_namelist namelist nn_solv 2
309    ln -s -f ../LONG/O2LP_LONG_00000075_restart.nc
310    ln -s -f ../LONG/O2LP_LONG_00000075_restart_ice.nc
311    ln -s -f ../LONG/O2LP_LONG_00000075_restart_trc.nc
312    set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart\"
313    set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice\"
314    set_namelist namelist_top ln_diatrc .false.
315    set_namelist namelist_top ln_rsttr .true.
316    set_namelist namelist_top nn_rsttr 2
317    set_namelist namelist_top cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\"
318    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
319    # if not you need input files, and for tests is not necessary
320    set_namelist namelist_pisces ln_presatm .false.
321    set_namelist namelist_pisces ln_varpar .false.
322    set_namelist namelist_pisces ln_dust .false.
323    set_namelist namelist_pisces ln_solub .false.
324    set_namelist namelist_pisces ln_river .false.
325    set_namelist namelist_pisces ln_ndepo .false.
326    set_namelist namelist_pisces ln_ironsed .false.
327    set_namelist namelist_pisces ln_hydrofe .false.
328    # put ln_pisdmp to false : no relaxation to global mean value
329    set_namelist namelist_pisces ln_pisdmp .false.
330    cd ${SETTE_DIR}
331    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
332    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
333    cd ${SETTE_DIR}
334    . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 
335fi
336
337if [ ${config} -eq 4 ] ;  then
338    ## Reproducibility tests for ORCA2_LIM_PISCES
339    export TEST_NAME="REPRO_4_4"
340    cd ${SETTE_DIR}
341    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_mpi key_mpp_rep"
342    cd ${SETTE_DIR}
343    . param.cfg
344    . all_functions.sh
345    . prepare_exe_dir.sh
346    JOB_FILE=${EXE_DIR}/run_job.sh
347    NPROC=16
348    \rm $JOB_FILE
349    cd ${EXE_DIR}
350    set_namelist namelist nn_it000 1
351    set_namelist namelist nn_itend 75
352    set_namelist namelist nn_fwb 0
353    set_namelist namelist ln_clobber .true.
354    set_namelist namelist jpni 4
355    set_namelist namelist jpnj 4
356    set_namelist namelist jpnij 16
357    set_namelist namelist nn_solv 2
358    set_namelist namelist_top ln_trcdta .false.
359    set_namelist namelist_top ln_diatrc .false.
360    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
361    # if not you need input files, and for tests is not necessary
362    set_namelist namelist_pisces ln_presatm .false.
363    set_namelist namelist_pisces ln_varpar .false.
364    set_namelist namelist_pisces ln_dust .false.
365    set_namelist namelist_pisces ln_solub .false.
366    set_namelist namelist_pisces ln_river .false.
367    set_namelist namelist_pisces ln_ndepo .false.
368    set_namelist namelist_pisces ln_ironsed .false.
369    set_namelist namelist_pisces ln_hydrofe .false.
370    # put ln_pisdmp to false : no relaxation to global mean value
371    set_namelist namelist_pisces ln_pisdmp .false.
372    cd ${SETTE_DIR}
373    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
374    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
375    cd ${SETTE_DIR}
376    . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG
377
378    cd ${SETTE_DIR}
379    export TEST_NAME="REPRO_2_8"
380    . prepare_exe_dir.sh
381    JOB_FILE=${EXE_DIR}/run_job.sh
382    NPROC=16
383    \rm $JOB_FILE
384    cd ${EXE_DIR}
385    set_namelist namelist nn_it000 1
386    set_namelist namelist nn_itend 75
387    set_namelist namelist nn_fwb 0
388    set_namelist namelist ln_clobber .true.
389    set_namelist namelist jpni 2
390    set_namelist namelist jpnj 8
391    set_namelist namelist jpnij 16
392    set_namelist namelist nn_solv 2
393    set_namelist namelist_top ln_trcdta .false.
394    set_namelist namelist_top ln_diatrc .false.
395    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
396    # if not you need input files, and for tests is not necessary
397    set_namelist namelist_pisces ln_presatm .false.
398    set_namelist namelist_pisces ln_varpar .false.
399    set_namelist namelist_pisces ln_dust .false.
400    set_namelist namelist_pisces ln_solub .false.
401    set_namelist namelist_pisces ln_river .false.
402    set_namelist namelist_pisces ln_ndepo .false.
403    set_namelist namelist_pisces ln_ironsed .false.
404    set_namelist namelist_pisces ln_hydrofe .false.
405    # put ln_pisdmp to false : no relaxation to global mean value
406    set_namelist namelist_pisces ln_pisdmp .false.
407    cd ${SETTE_DIR}
408    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
409    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
410    cd ${SETTE_DIR}
411    . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG
412fi
413
414# TESTS FOR ORCA2_OFF_PISCES CONFIGURATION
415if [ ${config} -eq 5 ] ;  then
416    ## Restartability tests for ORCA2_OFF_PISCES
417    export TEST_NAME="LONG"
418    cd ${SETTE_DIR}
419    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8
420    cd ${SETTE_DIR}
421    . param.cfg
422    . all_functions.sh
423    . prepare_exe_dir.sh
424    JOB_FILE=${EXE_DIR}/run_job.sh
425    NPROC=1
426    \rm $JOB_FILE
427    cd ${EXE_DIR}
428    set_namelist namelist cn_exp \"OFFP_LONG\"
429    set_namelist namelist nn_it000 1
430    set_namelist namelist nn_itend 40
431    set_namelist namelist nn_stock 20
432    set_namelist namelist ln_clobber .true.
433    set_namelist namelist_top ln_trcdta .false.
434    set_namelist namelist_top ln_diatrc .false.
435    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
436    # if not you need input files, and for tests is not necessary
437    set_namelist namelist_pisces ln_presatm .false.
438    set_namelist namelist_pisces ln_varpar .false.
439    set_namelist namelist_pisces ln_dust .false.
440    set_namelist namelist_pisces ln_solub .false.
441    set_namelist namelist_pisces ln_river .false.
442    set_namelist namelist_pisces ln_ndepo .false.
443    set_namelist namelist_pisces ln_ironsed .false.
444    set_namelist namelist_pisces ln_hydrofe .false.
445    cd ${SETTE_DIR}
446   cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
447    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
448   
449    cd ${SETTE_DIR}
450    export TEST_NAME="SHORT"
451    . prepare_exe_dir.sh
452    cd ${EXE_DIR}
453    set_namelist namelist cn_exp \"OFFP_SHORT\"
454    set_namelist namelist nn_it000 21
455    set_namelist namelist nn_itend 40
456    set_namelist namelist nn_stock 20
457    set_namelist namelist ln_clobber .true.
458    ln -s ../LONG/OFFP_LONG_00000020_restart_trc.nc .
459    set_namelist namelist_top ln_diatrc .false.
460    set_namelist namelist_top ln_rsttr .true.
461    set_namelist namelist_top nn_rsttr 2
462    set_namelist namelist_top cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\"
463    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
464    # if not you need input files, and for tests is not necessary
465    set_namelist namelist_pisces ln_presatm .false.
466    set_namelist namelist_pisces ln_varpar .false.
467    set_namelist namelist_pisces ln_dust .false.
468    set_namelist namelist_pisces ln_solub .false.
469    set_namelist namelist_pisces ln_river .false.
470    set_namelist namelist_pisces ln_ndepo .false.
471    set_namelist namelist_pisces ln_ironsed .false.
472    set_namelist namelist_pisces ln_hydrofe .false.
473    # put ln_pisdmp to false : no relaxation to global mean value
474    set_namelist namelist_pisces ln_pisdmp .false.
475    cd ${SETTE_DIR}
476   cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
477    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
478    cd ${SETTE_DIR}
479    . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG
480fi
481
482if [ ${config} -eq 6 ] ;  then
483    ## Reproducibility tests for ORCA2_OFF_PISCES
484    export TEST_NAME="REPRO_4_4"
485    cd ${SETTE_DIR}
486    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_mpi key_mpp_rep"
487    cd ${SETTE_DIR}
488    . param.cfg
489    . all_functions.sh
490    . prepare_exe_dir.sh
491    JOB_FILE=${EXE_DIR}/run_job.sh
492    NPROC=16
493    \rm $JOB_FILE
494    cd ${EXE_DIR}
495    set_namelist namelist nn_it000 1
496    set_namelist namelist nn_itend 40
497    set_namelist namelist ln_clobber .true.
498    set_namelist namelist jpni 4
499    set_namelist namelist jpnj 4
500    set_namelist namelist jpnij 16
501    set_namelist namelist_top ln_trcdta .false.
502    set_namelist namelist_top ln_diatrc .false.
503    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
504    # if not you need input files, and for tests is not necessary
505    set_namelist namelist_pisces ln_presatm .false.
506    set_namelist namelist_pisces ln_varpar .false.
507    set_namelist namelist_pisces ln_dust .false.
508    set_namelist namelist_pisces ln_solub .false.
509    set_namelist namelist_pisces ln_river .false.
510    set_namelist namelist_pisces ln_ndepo .false.
511    set_namelist namelist_pisces ln_ironsed .false.
512    set_namelist namelist_pisces ln_hydrofe .false.
513    # put ln_pisdmp to false : no relaxation to global mean value
514    set_namelist namelist_pisces ln_pisdmp .false.
515    cd ${SETTE_DIR}
516   cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
517    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
518    cd ${SETTE_DIR}
519    . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG
520
521    cd ${SETTE_DIR}
522    export TEST_NAME="REPRO_2_8"
523    . prepare_exe_dir.sh
524    JOB_FILE=${EXE_DIR}/run_job.sh
525    NPROC=16
526    \rm $JOB_FILE
527    cd ${EXE_DIR}
528    set_namelist namelist nn_it000 1
529    set_namelist namelist nn_itend 40
530    set_namelist namelist ln_clobber .true.
531    set_namelist namelist jpni 2
532    set_namelist namelist jpnj 8
533    set_namelist namelist jpnij 16
534    set_namelist namelist_top ln_trcdta .false.
535    set_namelist namelist_top ln_diatrc .false.
536    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
537    # if not you need input files, and for tests is not necessary
538    set_namelist namelist_pisces ln_presatm .false.
539    set_namelist namelist_pisces ln_varpar .false.
540    set_namelist namelist_pisces ln_dust .false.
541    set_namelist namelist_pisces ln_solub .false.
542    set_namelist namelist_pisces ln_river .false.
543    set_namelist namelist_pisces ln_ndepo .false.
544    set_namelist namelist_pisces ln_ironsed .false.
545    set_namelist namelist_pisces ln_hydrofe .false.
546    # put ln_pisdmp to false : no relaxation to global mean value
547    set_namelist namelist_pisces ln_pisdmp .false.
548    cd ${SETTE_DIR}
549   cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
550    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
551    cd ${SETTE_DIR}
552    . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG
553fi
554
555# TESTS FOR AMM12 CONFIGURATION
556if [ ${config} -eq 7 ] ;  then
557    ## Reproducibility tests for AMM12
558    export TEST_NAME="REPRO_8_4"
559    cd ${SETTE_DIR}
560    . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 add_key "key_mpp_rep"
561    cd ${SETTE_DIR}
562    . param.cfg
563    . all_functions.sh
564    . prepare_exe_dir.sh
565    JOB_FILE=${EXE_DIR}/run_job.sh
566    NPROC=32
567    \rm $JOB_FILE
568    cd ${EXE_DIR}
569    set_namelist namelist nn_it000 1
570    set_namelist namelist nn_itend 576
571    set_namelist namelist nn_fwb 0
572    set_namelist namelist ln_ctl .false.
573    set_namelist namelist ln_clobber .true.
574    set_namelist namelist nn_dyn2d 2
575    set_namelist namelist nn_tra_dta 0
576    set_namelist namelist jpni 8
577    set_namelist namelist jpnj 4
578    set_namelist namelist jpnij 32
579    cd ${SETTE_DIR}
580   cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
581    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
582    cd ${SETTE_DIR}
583    . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 
584
585    cd ${SETTE_DIR}
586    export TEST_NAME="REPRO_4_8"
587    . prepare_exe_dir.sh
588    JOB_FILE=${EXE_DIR}/run_job.sh
589    NPROC=32
590    \rm $JOB_FILE
591    cd ${EXE_DIR}
592    set_namelist namelist nn_it000 1
593    set_namelist namelist nn_itend 576
594    set_namelist namelist nn_fwb 0
595    set_namelist namelist ln_ctl .false.
596    set_namelist namelist nn_dyn2d 2
597    set_namelist namelist nn_tra_dta 0
598    set_namelist namelist ln_clobber .true.
599    set_namelist namelist jpni 4
600    set_namelist namelist jpnj 8
601    set_namelist namelist jpnij 32
602    cd ${SETTE_DIR}
603   cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
604    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
605    cd ${SETTE_DIR}
606    . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG
607fi
608
609if [ ${config} -eq 8 ] ;  then
610    ## Restartability tests for AMM12
611    export TEST_NAME="LONG"
612    cd ${SETTE_DIR}
613    . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8  add_key "key_mpp_rep"
614    cd ${SETTE_DIR}
615    . param.cfg
616    . all_functions.sh
617    . prepare_exe_dir.sh
618    JOB_FILE=${EXE_DIR}/run_job.sh
619    NPROC=32
620    \rm $JOB_FILE
621    cd ${EXE_DIR}
622    set_namelist namelist nn_it000 1
623    set_namelist namelist nn_itend 12
624    set_namelist namelist nn_stock 6
625    set_namelist namelist nn_fwb 0
626    set_namelist namelist ln_ctl .false.
627    set_namelist namelist ln_clobber .true.
628    set_namelist namelist nn_dyn2d 2
629    set_namelist namelist nn_tra_dta 0
630    set_namelist namelist jpni 8
631    set_namelist namelist jpnj 4
632    set_namelist namelist jpnij 32
633    cd ${SETTE_DIR}
634   cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
635    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
636    cd ${SETTE_DIR}
637    . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG
638
639    cd ${SETTE_DIR}
640    export TEST_NAME="SHORT"
641    . prepare_exe_dir.sh
642    cd ${EXE_DIR}
643    set_namelist namelist nn_it000 7
644    set_namelist namelist nn_itend 12
645    set_namelist namelist nn_fwb 0
646    set_namelist namelist ln_ctl .false.
647    set_namelist namelist ln_clobber .true.
648    set_namelist namelist nn_dyn2d 2
649    set_namelist namelist nn_tra_dta 0
650    set_namelist namelist jpni 8
651    set_namelist namelist jpnj 4
652    set_namelist namelist jpnij 32
653    set_namelist namelist ln_rstart .true.
654    set_namelist namelist nn_rstctl 2
655    set_namelist namelist cn_ocerst_in \"../LONG/AMM12_00000006_restart\"
656    cd ${SETTE_DIR}
657   cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
658    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
659    cd ${SETTE_DIR}
660    . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 
661fi
662
663# TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests)
664if [ ${config} -eq 9 ] ;  then
665    ## ORCA2_LIM with Agulhas AGRIF zoom in MPI
666    export TEST_NAME="SHORT"
667    cd ${SETTE_DIR}
668    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM -j 8 add_key "key_mpp_mpi key_mpp_rep key_agrif" del_key "key_zdftmx"
669    cd ${SETTE_DIR}
670    . param.cfg
671    . all_functions.sh
672    . prepare_exe_dir.sh
673    JOB_FILE=${EXE_DIR}/run_job.sh
674    NPROC=2
675    \rm $JOB_FILE
676    cd ${EXE_DIR}
677    set_namelist namelist nn_it000 1
678    set_namelist namelist nn_itend 75
679    set_namelist namelist ln_ctl .false.
680    set_namelist namelist ln_clobber .true.
681    set_namelist namelist jpni 1
682    set_namelist namelist jpnj 2
683    set_namelist namelist jpnij 2
684    set_namelist 1_namelist nn_it000 1
685    set_namelist 1_namelist nn_itend 150
686    set_namelist 1_namelist ln_ctl .false.
687    set_namelist 1_namelist ln_clobber .true.
688    cd ${SETTE_DIR}
689   cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
690    . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE
691    cd ${SETTE_DIR}
692    . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG
693fi
694
695done
Note: See TracBrowser for help on using the repository browser.