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 in branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE – NEMO

source: branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE/sette.sh @ 3020

Last change on this file since 3020 was 3020, checked in by flavoni, 13 years ago

update SETTE, removed ln_trcrad

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 19.6 KB
RevLine 
[2539]1#!/bin/bash
[2500]2#############################################################
3# Author : Simona Flavoni for NEMO
4# Contact : sflod@locean-ipsl.upmc.fr
[2354]5#
[2500]6# sette.sh   : principal script of SET TEsts for NEMO (SETTE)
[2546]7# ----------------------------------------------------------------------
8# NEMO/SETTE , NEMO Consortium (2010)
9# Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
10# ----------------------------------------------------------------------
11#
[2500]12#############################################################
13#set -x
14set -o posix
15#set -u
16#set -e
17#+
[2354]18#
[2500]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#
[2890]37# Variables to be checked by user:
[2500]38#
[2890]39# COMPILER : name of compiler as defined in NEMOGCM/ARCH directory
[2545]40#
[2890]41# BATCH_COMMAND :  name of the command for batch submission
[2545]42#
[2890]43# MPI_INTERACT : 
[2545]44#
[2890]45#         for MPP tests, "no" for batch execution, "yes" for interactive execution
[2545]46#
[2890]47#         NOTE: for run with 1 process tests are run always in MPI_INTERACT="yes"
[2545]48#
[2890]49# Principal script is sette.sh, that calls
[2545]50#
[2890]51#  makenemo
[2545]52#
[2890]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)
[2665]62#
[2890]63#   NEMO_VALIDATION_DIR : is the validation directory
[2545]64#
[2890]65#   (NOTE: this file is the same for all configrations to be tested with sette)
[2545]66#
[2890]67#
[2665]68#  all_functions.sh : loads functions used by sette (note: new functions can be added here)
[2545]69#
[2890]70#   set_namelist : function declared in all_functions that set namelist parameters for tests
[2545]71#
[2890]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#
[2545]86#  fcm_job.sh
87#
[2890]88#   runs job in interactive or batch mode : all jobs using 1 process are run interactive, and all MPP jobs are
[2665]89#
[2890]90#   run in batch (MPI_INTERACT="no") or interactive (MPI_INTERACT="yes") see sette.sh and BATCH_TEMPLATE directory
[2665]91#
92#   (note this job needs to have an input_CONFIG.cfg in which can be found input tar file)
[2545]93#
[2890]94#  NOTE: if job is not launched for some problems you have executable ready in ${EXE_DIR} directory
[2545]95#
[2890]96#  NOTE: the changed namelists are leaved in ${EXE_DIR} directory whereas original namelist remains in ${NEW_CONF}/EXP00
[2545]97#
[2890]98#  in ${SETTE_DIR} is created output.sette with the echo of executed commands
[2545]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#
[2500]107# EXAMPLES
108# ========
109#
110# ::
111#
112#  $ ./sette.sh
113#
114#
[2354]115# TODO
116# ====
117#
118# option debug
119#
120# EVOLUTIONS
121# ==========
122#
[2500]123# $Id$
[2354]124#
125#   * creation
[2500]126#
[2354]127#-
128#
[2716]129#-
130# Compiler among those in NEMOGCM/ARCH
[3011]131COMPILER=X64_TITANE
132export BATCH_COMMAND=ccc_msub
[2890]133export MPI_INTERACT="no"
[2675]134
[2716]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
[2494]141
[2725]142CMP_NAM=${1:-$COMPILER}
[2890]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
[2354]146
[3017]147for config in 1 2 3 4 5 6 7 8 9 10
[2675]148do
[2354]149
[2675]150if [ ${config} -eq 1 ] ;  then
151    # Restartability tests for GYRE_LOBSTER
[2890]152    export TEST_NAME="LONG"
[2675]153    cd ${SETTE_DIR}
[3011]154    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_LONG -r GYRE_LOBSTER  -j 8
[2675]155    cd ${SETTE_DIR}
156    . param.cfg
157    . all_functions.sh
[2890]158    . prepare_exe_dir.sh
159    cd ${EXE_DIR}
[2675]160    set_namelist namelist cn_exp \"GYRELOB_LONG\"
161    set_namelist namelist nn_it000 1
162    set_namelist namelist nn_itend 120
163    set_namelist namelist nn_stock 60
[2716]164    set_namelist namelist ln_clobber .true.
[3011]165    set_namelist namelist nn_solv 2
166    set_namelist namelist_top ln_diatrc .false.
[2675]167    cd ${SETTE_DIR}
[2890]168    . ./fcm_job.sh input_GYRE.cfg 1 ${TEST_NAME}
169
[2754]170    cd ${SETTE_DIR}
[2890]171    export TEST_NAME="SHORT"
172    . prepare_exe_dir.sh
173    cd ${EXE_DIR}
[2675]174    set_namelist namelist cn_exp \"GYRELOB_SHORT\"
175    set_namelist namelist nn_it000 61
176    set_namelist namelist nn_itend 120
177    set_namelist namelist nn_stock 60
178    set_namelist namelist ln_rstart .true.
179    set_namelist namelist nn_rstctl 2
[2716]180    set_namelist namelist ln_clobber .true.
[3011]181    set_namelist namelist nn_solv 2
[2890]182    cp ..\/LONG\/GYRELOB_LONG_00000060_restart.nc .
[3011]183    set_namelist namelist cn_ocerst_in \"GYRELOB_LONG_00000060_restart\"
184    set_namelist namelist_top ln_diatrc .false.
[2675]185    set_namelist namelist_top ln_rsttr .true.
186    set_namelist namelist_top nn_rsttr 2
[2890]187    cp ..\/LONG\/GYRELOB_LONG_00000060_restart_trc.nc .
[2675]188    set_namelist namelist_top cn_trcrst_in \"GYRELOB_LONG_00000060_restart_trc\"
189    cd ${SETTE_DIR}
[2890]190    . ./fcm_job.sh input_GYRE.cfg 1 ${TEST_NAME}
[2675]191fi
192
193if [ ${config} -eq 2 ] ;  then
[2716]194# Restartability tests for ORCA2_LIM_PISCES
[2890]195    export TEST_NAME="LONG"
[2675]196    cd ${SETTE_DIR}
[3011]197    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8
[2675]198    cd ${SETTE_DIR}
199    . param.cfg
200    . all_functions.sh
[2890]201    . prepare_exe_dir.sh
202    cd ${EXE_DIR}
[2675]203    set_namelist namelist cn_exp \"O2LP_LONG\"
204    set_namelist namelist nn_it000 1
205    set_namelist namelist nn_itend 150
206    set_namelist namelist nn_stock 75
[2716]207    set_namelist namelist ln_clobber .true.
[3011]208    set_namelist namelist nn_solv 2
209    set_namelist namelist_top ln_trcdta .false.
210    set_namelist namelist_top ln_diatrc .false.
211    # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false
[2675]212    # if not you need input files, and for tests is not necessary
213    set_namelist namelist_pisces ln_pisdmp .false.
[3011]214    set_namelist namelist_pisces ln_ironsed .false.
[2675]215    set_namelist namelist_pisces ln_river .false.
216    set_namelist namelist_pisces ln_ndepo .false.
[3011]217    set_namelist namelist_pisces ln_dust .false.
218    set_namelist namelist_pisces ln_presatm .false.
[2675]219    cd ${SETTE_DIR}
[2890]220    . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 1 ${TEST_NAME}
[2675]221   
222    cd ${SETTE_DIR}
[2890]223    export TEST_NAME="SHORT"
224    . prepare_exe_dir.sh
225    cd ${EXE_DIR}
[2675]226    set_namelist namelist cn_exp \"O2LP_SHORT\"
227    set_namelist namelist nn_it000 76
228    set_namelist namelist nn_itend 150
229    set_namelist namelist nn_stock 75
230    set_namelist namelist ln_rstart .true.
231    set_namelist namelist nn_rstctl 2
[2716]232    set_namelist namelist ln_clobber .true.
[3011]233    set_namelist namelist nn_solv 2
234    cp ../LONG/O2LP_LONG_00000075_restart*nc .
[2890]235    set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart\"
236    set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice\"
[3011]237    set_namelist namelist_top ln_diatrc .false.
[2675]238    set_namelist namelist_top ln_rsttr .true.
239    set_namelist namelist_top nn_rsttr 2
240    set_namelist namelist_top cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\"
[3011]241    # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust
[2675]242    # if not you need input files, and for tests is not necessary
243    set_namelist namelist_pisces ln_pisdmp .false.
[3011]244    set_namelist namelist_pisces ln_ironsed .false.
[2675]245    set_namelist namelist_pisces ln_river .false.
246    set_namelist namelist_pisces ln_ndepo .false.
[3011]247    set_namelist namelist_pisces ln_dust .false.
248    set_namelist namelist_pisces ln_presatm .false.
[2675]249    cd ${SETTE_DIR}
[2890]250    . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 1 ${TEST_NAME}
[2675]251fi
252
253if [ ${config} -eq 3 ] ;  then
[2716]254    ## Restartability tests for POMME
[2890]255    export TEST_NAME="LONG"
[2675]256    cd ${SETTE_DIR}
[3011]257    . ../CONFIG/makenemo -m ${CMP_NAM} -n POMME_LONG -r POMME -j 8
[2675]258    cd ${SETTE_DIR}
259    . param.cfg
260    . all_functions.sh
[2890]261    . prepare_exe_dir.sh
262    cd ${EXE_DIR}
[2675]263    set_namelist namelist cn_exp \"POMME_LONG\"
264    set_namelist namelist nn_it000 1
[2890]265    set_namelist namelist nn_stock 300
[2675]266    set_namelist namelist nn_itend 600
[2716]267    set_namelist namelist ln_clobber .true.
[3011]268    set_namelist namelist nn_solv 2
[2675]269    cd ${SETTE_DIR}
[2890]270    . ./fcm_job.sh input_POMME.cfg 1 ${TEST_NAME}
[2675]271   
272    cd ${SETTE_DIR}
[2890]273    export TEST_NAME="SHORT"
274    . prepare_exe_dir.sh
275    cd ${EXE_DIR}
[2675]276    set_namelist namelist cn_exp \"POMME_SHORT\"
277    set_namelist namelist nn_it000 301
278    set_namelist namelist nn_itend 600
279    set_namelist namelist ln_rstart .true.
280    set_namelist namelist nn_rstctl 2
[2716]281    set_namelist namelist ln_clobber .true.
[3011]282    set_namelist namelist nn_solv 2
283    cp ../LONG/POMME_LONG_00000300_restart*.nc .
[2890]284    set_namelist namelist cn_ocerst_in \"POMME_LONG_00000300_restart\"
285    cp ../LONG/restart.obc.output restart.obc
286    #mv restart.obc.output restart.obc
[2675]287    cd ${SETTE_DIR}
[2890]288    . ./fcm_job.sh input_POMME.cfg 1 ${TEST_NAME}
[2675]289fi
290
291if [ ${config} -eq 4 ] ;  then
[3011]292    ## Repropducilibity tests for GYRE_LOBSTER
[2890]293    export TEST_NAME="REPRO_1_4"
[2675]294    cd ${SETTE_DIR}
[3015]295    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_4 -r GYRE_LOBSTER -j 8 add_key "key_mpp_rep key_mpp_mpi" 
[2675]296    cd ${SETTE_DIR}
297    . param.cfg
298    . all_functions.sh
[2890]299    . prepare_exe_dir.sh
300    cd ${EXE_DIR}
[2754]301    set_namelist namelist cn_exp \"GYRELOB_14\"
[2675]302    set_namelist namelist nn_it000 1
[2890]303    set_namelist namelist nn_itend 60
[2716]304    set_namelist namelist ln_clobber .true.
[3011]305    set_namelist namelist nn_solv 2
306    set_namelist namelist_top ln_diatrc .false.
[2716]307    set_namelist namelist jpni 1
308    set_namelist namelist jpnj 4
309    set_namelist namelist jpnij 4
[2675]310    cd ${SETTE_DIR}
[2890]311    . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME}
[2675]312   
313    cd ${SETTE_DIR}
[2890]314    export TEST_NAME="REPRO_2_2"
315    . prepare_exe_dir.sh
316    cd ${EXE_DIR}
[2754]317    set_namelist namelist cn_exp \"GYRELOB_22\"
[2675]318    set_namelist namelist nn_it000 1
[2890]319    set_namelist namelist nn_itend 60
[2716]320    set_namelist namelist ln_clobber .true.
[3011]321    set_namelist namelist nn_solv 2
322    set_namelist namelist_top ln_diatrc .false.
[2716]323    set_namelist namelist jpni 2
324    set_namelist namelist jpnj 2
325    set_namelist namelist jpnij 4
[2675]326    cd ${SETTE_DIR}
[2890]327    . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME}
[2675]328fi
329
330if [ ${config} -eq 5 ] ;  then
331    ## Repropducilibity tests for ORCA2_LIM_PISCES
[2890]332    export TEST_NAME="REPRO_4_4"
[2675]333    cd ${SETTE_DIR}
[3015]334    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_rep key_mpp_mpi"
[2675]335    cd ${SETTE_DIR}
336    . param.cfg
337    . all_functions.sh
[2890]338    . prepare_exe_dir.sh
339    cd ${EXE_DIR}
[2675]340    set_namelist namelist nn_it000 1
341    set_namelist namelist nn_itend 75
342    set_namelist namelist nn_fwb 0
[2716]343    set_namelist namelist ln_clobber .true.
344    set_namelist namelist jpni 4
345    set_namelist namelist jpnj 4
[2890]346    set_namelist namelist jpnij 16
[3011]347    set_namelist namelist nn_solv 2
[3020]348    set_namelist namelist_top ln_trcdta .false.
[3011]349    set_namelist namelist_top ln_diatrc .false.
350    # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false
[2675]351    # if not you need input files, and for tests is not necessary
352    set_namelist namelist_pisces ln_pisdmp .false.
[3011]353    set_namelist namelist_pisces ln_ironsed .false.
[2675]354    set_namelist namelist_pisces ln_river .false.
355    set_namelist namelist_pisces ln_ndepo .false.
[3011]356    set_namelist namelist_pisces ln_dust .false.
357    set_namelist namelist_pisces ln_presatm .false.
[2675]358    cd ${SETTE_DIR}
[2890]359    . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 ${TEST_NAME}
360
[2675]361    cd ${SETTE_DIR}
[2890]362    export TEST_NAME="REPRO_2_8"
363    . prepare_exe_dir.sh
364    cd ${EXE_DIR}
[2675]365    set_namelist namelist nn_it000 1
366    set_namelist namelist nn_itend 75
367    set_namelist namelist nn_fwb 0
[2716]368    set_namelist namelist ln_clobber .true.
369    set_namelist namelist jpni 2
370    set_namelist namelist jpnj 8
371    set_namelist namelist jpnij 16
[3011]372    set_namelist namelist nn_solv 2
[3020]373    set_namelist namelist_top ln_trcdta .false.
[3011]374    set_namelist namelist_top ln_diatrc .false.
375    # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false
[2675]376    # if not you need input files, and for tests is not necessary
377    set_namelist namelist_pisces ln_pisdmp .false.
[3011]378    set_namelist namelist_pisces ln_ironsed .false.
[2675]379    set_namelist namelist_pisces ln_river .false.
380    set_namelist namelist_pisces ln_ndepo .false.
[3011]381    set_namelist namelist_pisces ln_dust .false.
382    set_namelist namelist_pisces ln_presatm .false.
[2675]383    cd ${SETTE_DIR}
[2890]384    . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 ${TEST_NAME}
[2675]385fi
386
387if [ ${config} -eq 6 ] ;  then
[2716]388    ## Reproductibility tests for POMME
[2890]389    export TEST_NAME="REPRO_1_4"
[2675]390    cd ${SETTE_DIR}
[3015]391    . ../CONFIG/makenemo -m ${CMP_NAM} -n POMME_4 -r POMME -j 8 add_key "key_mpp_rep key_mpp_mpi"
[2675]392    cd ${SETTE_DIR}
393    . param.cfg
394    . all_functions.sh
[2890]395    . prepare_exe_dir.sh
396    cd ${EXE_DIR}
[2675]397    set_namelist namelist nn_it000 1
398    set_namelist namelist nn_itend 300
399    set_namelist namelist nn_fwb 0
400    set_namelist namelist ln_ctl .false.
[2716]401    set_namelist namelist ln_clobber .true.
[3011]402    set_namelist namelist nn_solv 2
[2716]403    set_namelist namelist jpni 1
404    set_namelist namelist jpnj 4
405    set_namelist namelist jpnij 4
[2675]406    cd ${SETTE_DIR}
[2890]407    . ./fcm_job.sh input_POMME.cfg 4 ${TEST_NAME}
408
[2675]409    cd ${SETTE_DIR}
[2890]410    export TEST_NAME="REPRO_2_2"
411    . prepare_exe_dir.sh
412    cd ${EXE_DIR}
[2675]413    set_namelist namelist nn_it000 1
414    set_namelist namelist nn_itend 300
415    set_namelist namelist nn_fwb 0
416    set_namelist namelist ln_ctl .false.
[2716]417    set_namelist namelist ln_clobber .true.
[3011]418    set_namelist namelist nn_solv 2
[2716]419    set_namelist namelist jpni 2
420    set_namelist namelist jpnj 2
421    set_namelist namelist jpnij 4
[2675]422    cd ${SETTE_DIR}
[2890]423    . ./fcm_job.sh input_POMME.cfg 4 ${TEST_NAME}
[2675]424fi
425
[2732]426if [ ${config} -eq 7 ] ;  then
[3015]427# Restartability tests for ORCA2_OFF_PISCES
428    export TEST_NAME="LONG"
429    cd ${SETTE_DIR}
430    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8
431    cd ${SETTE_DIR}
432    . param.cfg
433    . all_functions.sh
434    . prepare_exe_dir.sh
435    cd ${EXE_DIR}
436    set_namelist namelist cn_exp \"OFFP_LONG\"
437    set_namelist namelist nn_it000 1
438    set_namelist namelist nn_itend 40
439    set_namelist namelist nn_stock 20
440    set_namelist namelist ln_clobber .true.
441    set_namelist namelist_top ln_trcdta .false.
442    set_namelist namelist_top ln_diatrc .false.
443    # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false
444    # if not you need input files, and for tests is not necessary
445    set_namelist namelist_pisces ln_pisdmp .false.
446    set_namelist namelist_pisces ln_ironsed .false.
447    set_namelist namelist_pisces ln_river .false.
448    set_namelist namelist_pisces ln_ndepo .false.
449    set_namelist namelist_pisces ln_dust .false.
450    set_namelist namelist_pisces ln_presatm .false.
451    cd ${SETTE_DIR}
452    . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 1 ${TEST_NAME}
453   
454    cd ${SETTE_DIR}
455    export TEST_NAME="SHORT"
456    . prepare_exe_dir.sh
457    cd ${EXE_DIR}
458    set_namelist namelist cn_exp \"OFFP_SHORT\"
459    set_namelist namelist nn_it000 21
460    set_namelist namelist nn_itend 40
461    set_namelist namelist nn_stock 20
462    set_namelist namelist ln_clobber .true.
463    cp ../LONG/OFFP_LONG_00000020_restart*nc
464    set_namelist namelist_top ln_diatrc .false.
465    set_namelist namelist_top ln_rsttr .true.
466    set_namelist namelist_top nn_rsttr 2
467    set_namelist namelist_top cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\"
468    # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust
469    # if not you need input files, and for tests is not necessary
470    set_namelist namelist_pisces ln_pisdmp .false.
471    set_namelist namelist_pisces ln_ironsed .false.
472    set_namelist namelist_pisces ln_river .false.
473    set_namelist namelist_pisces ln_ndepo .false.
474    set_namelist namelist_pisces ln_dust .false.
475    set_namelist namelist_pisces ln_presatm .false.
476    cd ${SETTE_DIR}
477    . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 1 ${TEST_NAME}
478fi
479
[3020]480if [ ${config} -eq 8 ] ;  then
[3015]481    ## Repropducilibity tests for ORCA2_OFF_PISCES
482    export TEST_NAME="REPRO_4_4"
483    cd ${SETTE_DIR}
484    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep key_mpp_mpi"
485    cd ${SETTE_DIR}
486    . param.cfg
487    . all_functions.sh
488    . prepare_exe_dir.sh
489    cd ${EXE_DIR}
490    set_namelist namelist nn_it000 1
491    set_namelist namelist nn_itend 40
492    set_namelist namelist ln_clobber .true.
493    set_namelist namelist jpni 4
494    set_namelist namelist jpnj 4
495    set_namelist namelist jpnij 16
496    set_namelist namelist_top ln_trcdta .false.
497    set_namelist namelist_top ln_diatrc .false.
498    # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false
499    # if not you need input files, and for tests is not necessary
500    set_namelist namelist_pisces ln_pisdmp .false.
501    set_namelist namelist_pisces ln_ironsed .false.
502    set_namelist namelist_pisces ln_river .false.
503    set_namelist namelist_pisces ln_ndepo .false.
504    set_namelist namelist_pisces ln_dust .false.
505    set_namelist namelist_pisces ln_presatm .false.
506    cd ${SETTE_DIR}
507    . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 16 ${TEST_NAME}
508
509    cd ${SETTE_DIR}
510    export TEST_NAME="REPRO_2_8"
511    . prepare_exe_dir.sh
512    cd ${EXE_DIR}
513    set_namelist namelist nn_it000 1
514    set_namelist namelist nn_itend 40
515    set_namelist namelist ln_clobber .true.
516    set_namelist namelist jpni 2
517    set_namelist namelist jpnj 8
518    set_namelist namelist jpnij 16
519    set_namelist namelist_top ln_trcdta .false.
520    set_namelist namelist_top ln_diatrc .false.
521    # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false
522    # if not you need input files, and for tests is not necessary
523    set_namelist namelist_pisces ln_pisdmp .false.
524    set_namelist namelist_pisces ln_ironsed .false.
525    set_namelist namelist_pisces ln_river .false.
526    set_namelist namelist_pisces ln_ndepo .false.
527    set_namelist namelist_pisces ln_dust .false.
528    set_namelist namelist_pisces ln_presatm .false.
529    cd ${SETTE_DIR}
530    . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 16 ${TEST_NAME}
531fi
532
533
[3020]534if [ ${config} -eq 9 ] ;  then
535    ## ORCA2_LIM with Agulhas AGRIF zoom
536    export TEST_NAME="SHORT"
537    cd ${SETTE_DIR}
538    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL -r ORCA2_LIM  -j 8 add_key "key_agrif" del_key "key_zdftmx"
539    cd ${SETTE_DIR}
540    . param.cfg
541    . all_functions.sh
542    . prepare_exe_dir.sh
543    cd ${EXE_DIR}
544    set_namelist namelist nn_it000 1
545    set_namelist namelist nn_itend 75
546    set_namelist namelist ln_ctl .false.
547    set_namelist namelist ln_clobber .true.
548    set_namelist 1_namelist nn_it000 1
549    set_namelist 1_namelist nn_itend 150
550    set_namelist 1_namelist ln_ctl .false.
551    set_namelist 1_namelist ln_clobber .true.
552    cd ${SETTE_DIR}
553    . ./fcm_job.sh input_ORCA2_LIM_AGRIF.cfg 1 ${TEST_NAME}
554fi
555
556if [ ${config} -eq 10 ] ;  then
557    ## ORCA2_LIM with Agulhas AGRIF zoom in MPI
558    export TEST_NAME="SHORT"
559    cd ${SETTE_DIR}
560    . ../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"
561    cd ${SETTE_DIR}
562    . param.cfg
563    . all_functions.sh
564    . prepare_exe_dir.sh
565    cd ${EXE_DIR}
566    set_namelist namelist nn_it000 1
567    set_namelist namelist nn_itend 75
568    set_namelist namelist ln_ctl .false.
569    set_namelist namelist ln_clobber .true.
570    set_namelist namelist jpni 1
571    set_namelist namelist jpnj 2
572    set_namelist namelist jpnij 2
573    set_namelist 1_namelist nn_it000 1
574    set_namelist 1_namelist nn_itend 150
575    set_namelist 1_namelist ln_ctl .false.
576    set_namelist 1_namelist ln_clobber .true.
577    cd ${SETTE_DIR}
578    . ./fcm_job.sh input_ORCA2_LIM_AGRIF.cfg 2 ${TEST_NAME}
579fi
580
581
582
[2675]583done
Note: See TracBrowser for help on using the repository browser.