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.sh.vargas in branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/SETTE – NEMO

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

Last change on this file since 3465 was 3465, checked in by cetlod, 12 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 *
File size: 21.4 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: sette.sh 2890 2011-10-06 11:03:48Z flavoni $
124#
125#   * creation
126#
127#-
128#
129#-
130# Compiler among those in NEMOGCM/ARCH
131COMPILER=PW6_VARGAS
132export BATCH_COMMAND=llsubmit
133export MPI_INTERACT="yes"
134
135# Directory to run the tests
136SETTE_DIR=$(cd $(dirname "$0"); pwd)
137MAIN_DIR=${SETTE_DIR%/SETTE}
138CONFIG_DIR=${MAIN_DIR}/CONFIG
139TOOLS_DIR=${MAIN_DIR}/TOOLS
140COMPIL_DIR=${TOOLS_DIR}/COMPILE
141
142CMP_NAM=${1:-$COMPILER}
143# Copy job_batch_COMPILER file for specific compiler into job_batch_template
144cd ${SETTE_DIR}
145cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
146
147for config in 1 2 3 4 5 6 7 8
148do
149
150# TESTS FOR GYRE_LOBSTER CONFIGURATION
151if [ ${config} -eq 1 ] ;  then
152    ## Restartability tests for GYRE
153    export TEST_NAME="LONG"
154    cd ${SETTE_DIR}
155    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_LONG -r GYRE add_key "key_mpp_mpi key_mpp_rep"
156    cd ${SETTE_DIR}
157    . param.cfg
158    . all_functions.sh
159    . prepare_exe_dir.sh
160    cd ${EXE_DIR}
161    set_namelist namelist cn_exp \"GYRE_LONG\"
162    set_namelist namelist nn_it000 1
163    set_namelist namelist nn_itend 120
164    set_namelist namelist nn_stock 60
165    set_namelist namelist ln_clobber .true.
166    set_namelist namelist nn_solv 2
167    set_namelist namelist jpni 2
168    set_namelist namelist jpnj 2
169    set_namelist namelist jpnij 4
170    cd ${SETTE_DIR}
171    . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME}
172
173    cd ${SETTE_DIR}
174    export TEST_NAME="SHORT"
175    . prepare_exe_dir.sh
176    cd ${EXE_DIR}
177    set_namelist namelist cn_exp \"GYRE_SHORT\"
178    set_namelist namelist nn_it000 61
179    set_namelist namelist nn_itend 120
180    set_namelist namelist nn_stock 60
181    set_namelist namelist ln_rstart .true.
182    set_namelist namelist nn_rstctl 2
183    set_namelist namelist ln_clobber .true.
184    set_namelist namelist nn_solv 2
185    set_namelist namelist jpni 2
186    set_namelist namelist jpnj 2
187    set_namelist namelist jpnij 4
188    cp ..\/LONG\/GYRE_LONG_00000060_restart*.nc .
189    set_namelist namelist cn_ocerst_in \"GYRE_LONG_00000060_restart\"
190    cd ${SETTE_DIR}
191    . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME}
192fi
193
194if [ ${config} -eq 2 ] ;  then
195    ## Repropducibility tests for GYRE
196    export TEST_NAME="REPRO_1_4"
197    cd ${SETTE_DIR}
198    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_4 -r GYRE add_key "key_mpp_rep key_mpp_mpi"
199    cd ${SETTE_DIR}
200    . param.cfg
201    . all_functions.sh
202    . prepare_exe_dir.sh
203    cd ${EXE_DIR}
204    set_namelist namelist cn_exp \"GYRE_14\"
205    set_namelist namelist nn_it000 1
206    set_namelist namelist nn_itend 60
207    set_namelist namelist nn_fwb 0
208    set_namelist namelist nn_bench 0
209    set_namelist namelist ln_ctl .false.
210    set_namelist namelist ln_clobber .true.
211    set_namelist namelist nn_solv 2
212    set_namelist namelist jpni 1
213    set_namelist namelist jpnj 4
214    set_namelist namelist jpnij 4
215    cd ${SETTE_DIR}
216    . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME}
217
218    cd ${SETTE_DIR}
219    export TEST_NAME="REPRO_2_2"
220    . prepare_exe_dir.sh
221    cd ${EXE_DIR}
222    set_namelist namelist cn_exp \"GYRE_22\"
223    set_namelist namelist nn_it000 1
224    set_namelist namelist nn_itend 60
225    set_namelist namelist nn_fwb 0
226    set_namelist namelist ln_ctl .false.
227    set_namelist namelist ln_clobber .true.
228    set_namelist namelist nn_solv 2
229    set_namelist namelist jpni 2
230    set_namelist namelist jpnj 2
231    set_namelist namelist jpnij 4
232    cd ${SETTE_DIR}
233    . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME}
234fi
235
236# TESTS FOR ORCA2_LIM_PISCES CONFIGURATION
237if [ ${config} -eq 3 ] ;  then
238    ## Restartability tests for ORCA2_LIM_PISCES
239    export TEST_NAME="LONG"
240    cd ${SETTE_DIR}
241    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_mpi key_mpp_rep" 
242    cd ${SETTE_DIR}
243    . param.cfg
244    . all_functions.sh
245    . prepare_exe_dir.sh
246    cd ${EXE_DIR}
247    set_namelist namelist cn_exp \"O2LP_LONG\"
248    set_namelist namelist nn_it000 1
249    set_namelist namelist nn_itend 150
250    set_namelist namelist nn_stock 75
251    set_namelist namelist ln_clobber .true.
252    set_namelist namelist jpni 2
253    set_namelist namelist jpnj 2
254    set_namelist namelist jpnij 4
255    set_namelist namelist nn_solv 2
256    set_namelist namelist_top ln_trcdta .false.
257    set_namelist namelist_top ln_diatrc .false.
258    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
259    # if not you need input files, and for tests is not necessary
260    set_namelist namelist_pisces ln_presatm .false.
261    set_namelist namelist_pisces ln_varpar .false.
262    set_namelist namelist_pisces ln_dust .false.
263    set_namelist namelist_pisces ln_solub .false.
264    set_namelist namelist_pisces ln_river .false.
265    set_namelist namelist_pisces ln_ndepo .false.
266    set_namelist namelist_pisces ln_ironsed .false.
267    set_namelist namelist_pisces ln_hydrofe .false.
268    cd ${SETTE_DIR}
269    . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 4 ${TEST_NAME}
270   
271    cd ${SETTE_DIR}
272    export TEST_NAME="SHORT"
273    . prepare_exe_dir.sh
274    cd ${EXE_DIR}
275    set_namelist namelist cn_exp \"O2LP_SHORT\"
276    set_namelist namelist nn_it000 76
277    set_namelist namelist nn_itend 150
278    set_namelist namelist nn_stock 75
279    set_namelist namelist ln_rstart .true.
280    set_namelist namelist nn_rstctl 2
281    set_namelist namelist ln_clobber .true.
282    set_namelist namelist jpni 2
283    set_namelist namelist jpnj 2
284    set_namelist namelist jpnij 4
285    set_namelist namelist nn_solv 2
286    cp ../LONG/O2LP_LONG_00000075_restart*nc .
287    set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart\"
288    set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice\"
289    set_namelist namelist_top ln_diatrc .false.
290    set_namelist namelist_top ln_rsttr .true.
291    set_namelist namelist_top nn_rsttr 2
292    set_namelist namelist_top cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\"
293    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
294    # if not you need input files, and for tests is not necessary
295    set_namelist namelist_pisces ln_presatm .false.
296    set_namelist namelist_pisces ln_varpar .false.
297    set_namelist namelist_pisces ln_dust .false.
298    set_namelist namelist_pisces ln_solub .false.
299    set_namelist namelist_pisces ln_river .false.
300    set_namelist namelist_pisces ln_ndepo .false.
301    set_namelist namelist_pisces ln_ironsed .false.
302    set_namelist namelist_pisces ln_hydrofe .false.
303    # put ln_pisdmp to false : no relaxation to global mean value
304    set_namelist namelist_pisces ln_pisdmp .false.
305    cd ${SETTE_DIR}
306    . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 4 ${TEST_NAME}
307fi
308
309if [ ${config} -eq 4 ] ;  then
310    ## Repropducibility tests for ORCA2_LIM_PISCES
311    export TEST_NAME="REPRO_4_4"
312    cd ${SETTE_DIR}
313    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_rep key_mpp_mpi"
314    cd ${SETTE_DIR}
315    . param.cfg
316    . all_functions.sh
317    . prepare_exe_dir.sh
318    cd ${EXE_DIR}
319    set_namelist namelist nn_it000 1
320    set_namelist namelist nn_itend 75
321    set_namelist namelist nn_fwb 0
322    set_namelist namelist ln_ctl .false.
323    set_namelist namelist ln_clobber .true.
324    set_namelist namelist jpni 4
325    set_namelist namelist jpnj 4
326    set_namelist namelist jpnij 16
327    set_namelist namelist nn_solv 2
328    set_namelist namelist_top ln_trcdta .false.
329    set_namelist namelist_top ln_diatrc .false.
330    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
331    # if not you need input files, and for tests is not necessary
332    set_namelist namelist_pisces ln_presatm .false.
333    set_namelist namelist_pisces ln_varpar .false.
334    set_namelist namelist_pisces ln_dust .false.
335    set_namelist namelist_pisces ln_solub .false.
336    set_namelist namelist_pisces ln_river .false.
337    set_namelist namelist_pisces ln_ndepo .false.
338    set_namelist namelist_pisces ln_ironsed .false.
339    set_namelist namelist_pisces ln_hydrofe .false.
340    # put ln_pisdmp to false : no relaxation to global mean value
341    set_namelist namelist_pisces ln_pisdmp .false.
342    cd ${SETTE_DIR}
343    . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 ${TEST_NAME}
344
345    cd ${SETTE_DIR}
346    export TEST_NAME="REPRO_2_8"
347    . prepare_exe_dir.sh
348    cd ${EXE_DIR}
349    set_namelist namelist nn_it000 1
350    set_namelist namelist nn_itend 75
351    set_namelist namelist nn_fwb 0
352    set_namelist namelist ln_ctl .false.
353    set_namelist namelist ln_clobber .true.
354    set_namelist namelist jpni 2
355    set_namelist namelist jpnj 8
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    . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 ${TEST_NAME}
374fi
375
376# TESTS FOR ORCA2_OFF_PISCES CONFIGURATION
377if [ ${config} -eq 5 ] ;  then
378    ## Restartability tests for ORCA2_OFF_PISCES
379    export TEST_NAME="LONG"
380    cd ${SETTE_DIR}
381    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_mpi key_mpp_rep"
382    cd ${SETTE_DIR}
383    . param.cfg
384    . all_functions.sh
385    . prepare_exe_dir.sh
386    cd ${EXE_DIR}
387    set_namelist namelist cn_exp \"OFFP_LONG\"
388    set_namelist namelist nn_it000 1
389    set_namelist namelist nn_itend 40
390    set_namelist namelist nn_stock 20
391    set_namelist namelist ln_clobber .true.
392    set_namelist namelist jpni 2
393    set_namelist namelist jpnj 2
394    set_namelist namelist jpnij 4
395    set_namelist namelist_top ln_trcdta .false.
396    set_namelist namelist_top ln_diatrc .false.
397    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
398    # if not you need input files, and for tests is not necessary
399    set_namelist namelist_pisces ln_presatm .false.
400    set_namelist namelist_pisces ln_varpar .false.
401    set_namelist namelist_pisces ln_dust .false.
402    set_namelist namelist_pisces ln_solub .false.
403    set_namelist namelist_pisces ln_river .false.
404    set_namelist namelist_pisces ln_ndepo .false.
405    set_namelist namelist_pisces ln_ironsed .false.
406    set_namelist namelist_pisces ln_hydrofe .false.
407    cd ${SETTE_DIR}
408    . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 4 ${TEST_NAME}
409   
410    cd ${SETTE_DIR}
411    export TEST_NAME="SHORT"
412    . prepare_exe_dir.sh
413    cd ${EXE_DIR}
414    set_namelist namelist cn_exp \"OFFP_SHORT\"
415    set_namelist namelist nn_it000 21
416    set_namelist namelist nn_itend 40
417    set_namelist namelist nn_stock 20
418    set_namelist namelist ln_clobber .true.
419    set_namelist namelist jpni 2
420    set_namelist namelist jpnj 2
421    set_namelist namelist jpnij 4
422    cp ../LONG/OFFP_LONG_00000020_restart*nc .
423    set_namelist namelist_top ln_diatrc .false.
424    set_namelist namelist_top ln_rsttr .true.
425    set_namelist namelist_top nn_rsttr 2
426    set_namelist namelist_top cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\"
427    # put ln_ironsed, ln_river, ln_ndepo, ln_dust
428    # if not you need input files, and for tests is not necessary
429    set_namelist namelist_pisces ln_presatm .false.
430    set_namelist namelist_pisces ln_varpar .false.
431    set_namelist namelist_pisces ln_dust .false.
432    set_namelist namelist_pisces ln_solub .false.
433    set_namelist namelist_pisces ln_river .false.
434    set_namelist namelist_pisces ln_ndepo .false.
435    set_namelist namelist_pisces ln_ironsed .false.
436    set_namelist namelist_pisces ln_hydrofe .false.
437    # put ln_pisdmp to false : no relaxation to global mean value
438    set_namelist namelist_pisces ln_pisdmp .false.
439    cd ${SETTE_DIR}
440    . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 4 ${TEST_NAME}
441fi
442
443if [ ${config} -eq 6 ] ;  then
444    ## Repropducibility tests for ORCA2_OFF_PISCES
445    export TEST_NAME="REPRO_4_4"
446    cd ${SETTE_DIR}
447    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep key_mpp_mpi"
448    cd ${SETTE_DIR}
449    . param.cfg
450    . all_functions.sh
451    . prepare_exe_dir.sh
452    cd ${EXE_DIR}
453    set_namelist namelist nn_it000 1
454    set_namelist namelist nn_itend 40
455    set_namelist namelist ln_ctl .false.
456    set_namelist namelist ln_clobber .true.
457    set_namelist namelist jpni 4
458    set_namelist namelist jpnj 4
459    set_namelist namelist jpnij 16
460    set_namelist namelist_top ln_trcdta .false.
461    set_namelist namelist_top ln_diatrc .false.
462    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
463    # if not you need input files, and for tests is not necessary
464    set_namelist namelist_pisces ln_presatm .false.
465    set_namelist namelist_pisces ln_varpar .false.
466    set_namelist namelist_pisces ln_dust .false.
467    set_namelist namelist_pisces ln_solub .false.
468    set_namelist namelist_pisces ln_river .false.
469    set_namelist namelist_pisces ln_ndepo .false.
470    set_namelist namelist_pisces ln_ironsed .false.
471    set_namelist namelist_pisces ln_hydrofe .false.
472    # put ln_pisdmp to false : no relaxation to global mean value
473    set_namelist namelist_pisces ln_pisdmp .false.
474    cd ${SETTE_DIR}
475    . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 16 ${TEST_NAME}
476
477    cd ${SETTE_DIR}
478    export TEST_NAME="REPRO_2_8"
479    . prepare_exe_dir.sh
480    cd ${EXE_DIR}
481    set_namelist namelist nn_it000 1
482    set_namelist namelist nn_itend 40
483    set_namelist namelist ln_ctl .false.
484    set_namelist namelist ln_clobber .true.
485    set_namelist namelist jpni 2
486    set_namelist namelist jpnj 8
487    set_namelist namelist jpnij 16
488    set_namelist namelist_top ln_trcdta .false.
489    set_namelist namelist_top ln_diatrc .false.
490    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false
491    # if not you need input files, and for tests is not necessary
492    set_namelist namelist_pisces ln_presatm .false.
493    set_namelist namelist_pisces ln_varpar .false.
494    set_namelist namelist_pisces ln_dust .false.
495    set_namelist namelist_pisces ln_solub .false.
496    set_namelist namelist_pisces ln_river .false.
497    set_namelist namelist_pisces ln_ndepo .false.
498    set_namelist namelist_pisces ln_ironsed .false.
499    set_namelist namelist_pisces ln_hydrofe .false.
500    # put ln_pisdmp to false : no relaxation to global mean value
501    set_namelist namelist_pisces ln_pisdmp .false.
502    cd ${SETTE_DIR}
503    . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 16 ${TEST_NAME}
504fi
505
506# TESTS FOR AMM12 CONFIGURATION
507if [ ${config} -eq 7 ] ;  then
508    ## Reproducibility tests for AMM12
509    export TEST_NAME="REPO_8_4"
510    cd ${SETTE_DIR}
511    . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 add_key "key_mpp_rep"
512    cd ${SETTE_DIR}
513    . param.cfg
514    . all_functions.sh
515    . prepare_exe_dir.sh
516    cd ${EXE_DIR}
517    set_namelist namelist nn_it000 1
518    set_namelist namelist nn_itend 576
519    set_namelist namelist nn_fwb 0
520    set_namelist namelist ln_ctl .false.
521    set_namelist namelist ln_clobber .true.
522    set_namelist namelist nn_dyn2d 2
523    set_namelist namelist nn_tra_dta 0
524    set_namelist namelist jpni 8
525    set_namelist namelist jpnj 4
526    set_namelist namelist jpnij 32
527    cd ${SETTE_DIR}
528    . ./fcm_job.sh input_AMM12.cfg 32 ${TEST_NAME}
529
530    cd ${SETTE_DIR}
531    export TEST_NAME="REPO_4_8"
532    . prepare_exe_dir.sh
533    cd ${EXE_DIR}
534    set_namelist namelist nn_it000 1
535    set_namelist namelist nn_itend 576
536    set_namelist namelist nn_fwb 0
537    set_namelist namelist ln_ctl .false.
538    set_namelist namelist nn_dyn2d 2
539    set_namelist namelist nn_tra_dta 0
540    set_namelist namelist ln_clobber .true.
541    set_namelist namelist jpni 4
542    set_namelist namelist jpnj 8
543    set_namelist namelist jpnij 32
544    cd ${SETTE_DIR}
545    . ./fcm_job.sh input_AMM12.cfg 32 ${TEST_NAME}
546fi
547
548if [ ${config} -eq 8 ] ;  then
549    ## Restartability tests for AMM12
550    export TEST_NAME="LONG"
551    cd ${SETTE_DIR}
552    . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 add_key "key_mpp_rep"
553    cd ${SETTE_DIR}
554    . param.cfg
555    . all_functions.sh
556    . prepare_exe_dir.sh
557    cd ${EXE_DIR}
558    set_namelist namelist nn_it000 1
559    set_namelist namelist nn_itend 12
560    set_namelist namelist nn_stock 6
561    set_namelist namelist nn_fwb 0
562    set_namelist namelist ln_ctl .false.
563    set_namelist namelist ln_clobber .true.
564    set_namelist namelist nn_dyn2d 2
565    set_namelist namelist nn_tra_dta 0
566    set_namelist namelist jpni 8
567    set_namelist namelist jpnj 4
568    set_namelist namelist jpnij 32
569    cd ${SETTE_DIR}
570    . ./fcm_job.sh input_AMM12.cfg 32 ${TEST_NAME}
571
572    cd ${SETTE_DIR}
573    export TEST_NAME="SHORT"
574    . prepare_exe_dir.sh
575    cd ${EXE_DIR}
576    set_namelist namelist nn_it000 7
577    set_namelist namelist nn_itend 12
578    set_namelist namelist nn_fwb 0
579    set_namelist namelist ln_ctl .false.
580    set_namelist namelist ln_clobber .true.
581    set_namelist namelist nn_dyn2d 2
582    set_namelist namelist nn_tra_dta 0
583    set_namelist namelist jpni 8
584    set_namelist namelist jpnj 4
585    set_namelist namelist jpnij 32
586    set_namelist namelist ln_rstart .true.
587    set_namelist namelist nn_rstctl 2
588    cp ../LONG/AMM12_00000006_restart*.nc .
589    set_namelist namelist cn_ocerst_in \"AMM12_00000006_restart\"
590    cd ${SETTE_DIR}
591    . ./fcm_job.sh input_AMM12.cfg 32 ${TEST_NAME}
592fi
593
594# TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests)
595if [ ${config} -eq 9 ] ;  then
596    ## ORCA2_LIM with Agulhas AGRIF zoom in MPI
597    export TEST_NAME="SHORT"
598    cd ${SETTE_DIR}
599    . ../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"
600    cd ${SETTE_DIR}
601    . param.cfg
602    . all_functions.sh
603    . prepare_exe_dir.sh
604    cd ${EXE_DIR}
605    set_namelist namelist nn_it000 1
606    set_namelist namelist nn_itend 75
607    set_namelist namelist ln_ctl .false.
608    set_namelist namelist ln_clobber .true.
609    set_namelist namelist jpni 1
610    set_namelist namelist jpnj 2
611    set_namelist namelist jpnij 2
612    set_namelist 1_namelist nn_it000 1
613    set_namelist 1_namelist nn_itend 150
614    set_namelist 1_namelist ln_ctl .false.
615    set_namelist 1_namelist ln_clobber .true.
616    cd ${SETTE_DIR}
617    . ./fcm_job.sh input_ORCA2_LIM_AGRIF.cfg 2 ${TEST_NAME}
618fi
619
620done
Note: See TracBrowser for help on using the repository browser.