[3520] | 1 | #!/bin/bash |
---|
[3708] | 2 | ############################################################ |
---|
[3520] | 3 | # Author : Simona Flavoni for NEMO |
---|
[4245] | 4 | # Contact: sflod@locean-ipsl.upmc.fr |
---|
| 5 | # 2013 : A.C. Coward added options for testing with XIOS in dettached mode |
---|
[3520] | 6 | # |
---|
| 7 | # sette.sh : principal script of SET TEsts for NEMO (SETTE) |
---|
| 8 | # ---------------------------------------------------------------------- |
---|
| 9 | # NEMO/SETTE , NEMO Consortium (2010) |
---|
| 10 | # Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
| 11 | # ---------------------------------------------------------------------- |
---|
| 12 | # |
---|
| 13 | ############################################################# |
---|
[7744] | 14 | #set -vx |
---|
[3520] | 15 | set -o posix |
---|
| 16 | #set -u |
---|
| 17 | #set -e |
---|
[4245] | 18 | # =========== |
---|
[3520] | 19 | # DESCRIPTION |
---|
| 20 | # =========== |
---|
| 21 | # |
---|
| 22 | # Variables to be checked by user: |
---|
| 23 | # |
---|
[4245] | 24 | # COMPILER : name of compiler as defined in NEMOGCM/ARCH directory |
---|
| 25 | # BATCH_COMMAND_PAR : name of the command for submitting parallel batch jobs |
---|
| 26 | # BATCH_COMMAND_SEQ : name of the command for submitting sequential batch jobs |
---|
| 27 | # INTERACT_FLAG : flag to run in interactive mode "yes" |
---|
| 28 | # to run in batch mode "no" |
---|
| 29 | # MPIRUN_FLAG : flag to run in parallel (MPI) "yes" |
---|
| 30 | # to run in sequential mode (NB_PROC = 1) "no" |
---|
| 31 | # USING_XIOS : flag to control the activation of key_iomput |
---|
| 32 | # "yes" to compile using key_iomput and link to the external XIOS library |
---|
| 33 | # "no" to compile without key_iomput and link to the old IOIPSL library |
---|
| 34 | # USING_MPMD : flag to control the use of stand-alone IO servers |
---|
| 35 | # requires USING_XIOS="yes" |
---|
| 36 | # "yes" to run in MPMD (detached) mode with stand-alone IO servers |
---|
| 37 | # "no" to run in SPMD (attached) mode without separate IO servers |
---|
| 38 | # NUM_XIOSERVERS : number of stand-alone IO servers to employ |
---|
| 39 | # set to zero if USING_MPMD="no" |
---|
[3520] | 40 | # |
---|
| 41 | # Principal script is sette.sh, that calls |
---|
| 42 | # |
---|
[4245] | 43 | # makenemo : to create successive exectuables in ${CONFIG_NAME}/BLD/bin/nemo.exe |
---|
[9576] | 44 | # and links to nemo in ${CONFIG_NAME}/EXP00) |
---|
[3520] | 45 | # |
---|
| 46 | # param.cfg : sets and loads following directories: |
---|
| 47 | # |
---|
[4245] | 48 | # FORCING_DIR : is the directory for forcing files (tarfile) |
---|
| 49 | # INPUT_DIR : is the directory for input files storing |
---|
| 50 | # TMPDIR : is the temporary directory (if needed) |
---|
[3520] | 51 | # NEMO_VALIDATION_DIR : is the validation directory |
---|
| 52 | # |
---|
| 53 | # (NOTE: this file is the same for all configrations to be tested with sette) |
---|
| 54 | # |
---|
[4245] | 55 | # all_functions.sh : loads functions used by sette (note: new functions can be added here) |
---|
| 56 | # set_namelist : function declared in all_functions that sets namelist parameters |
---|
| 57 | # post_test_tidyup : creates validation storage directory and copies required output files |
---|
[9019] | 58 | # (run.stat and ocean.output) in it after execution of test. |
---|
[3520] | 59 | # |
---|
[4245] | 60 | # VALIDATION tree is: |
---|
[3520] | 61 | # |
---|
| 62 | # NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) |
---|
| 63 | # |
---|
| 64 | # prepare_exe_dir.sh : defines and creates directory where the test is executed |
---|
[4245] | 65 | # execution directory takes name of TEST_NAME defined for every test |
---|
| 66 | # in sette.sh. (each test in executed in its own directory) |
---|
[3520] | 67 | # |
---|
[10755] | 68 | # set_valid_dir : rename ocean.output/run.stat and tracer.stat to avoid checking them in the report |
---|
| 69 | # |
---|
[10698] | 70 | # clean_valid_dir : rename ocean.output/run.stat and tracer.stat to avoid checking them in the report |
---|
| 71 | # ( not doing it could lead to false positive ) |
---|
| 72 | # |
---|
[4245] | 73 | # prepare_job.sh : to generate the script run_job.sh |
---|
[3520] | 74 | # |
---|
[4245] | 75 | # fcm_job.sh : run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes") |
---|
| 76 | # see sette.sh and BATCH_TEMPLATE directory |
---|
[3520] | 77 | # |
---|
[4245] | 78 | # NOTE: jobs requiring initial or forcing data need to have an input_CONFIG.cfg in which |
---|
| 79 | # can be found paths to the input tar file) |
---|
| 80 | # NOTE: if job is not launched for any reason you have the executable ready in ${EXE_DIR} |
---|
| 81 | # directory |
---|
| 82 | # NOTE: the changed namelists are left in ${EXE_DIR} directory whereas original namelists |
---|
| 83 | # remain in ${NEW_CONF}/EXP00 |
---|
[3520] | 84 | # |
---|
[4245] | 85 | # NOTE: a log file, output.sette, is created in ${SETTE_DIR} with the echoes of |
---|
| 86 | # executed commands |
---|
[3520] | 87 | # |
---|
[4245] | 88 | # NOTE: if sette.sh is stopped in output.sette there is written the last command |
---|
| 89 | # executed by sette.sh |
---|
[3520] | 90 | # |
---|
[4245] | 91 | # example use: ./sette.sh |
---|
| 92 | ######################################################################################### |
---|
[3520] | 93 | # |
---|
[10687] | 94 | # LOAD param value |
---|
[10717] | 95 | SETTE_DIR=$(cd $(dirname "$0"); pwd) |
---|
| 96 | MAIN_DIR=$(dirname $SETTE_DIR) |
---|
[10687] | 97 | . ./param.cfg |
---|
[7743] | 98 | |
---|
[10687] | 99 | export BATCH_COMMAND_PAR=${BATCH_CMD} |
---|
| 100 | export BATCH_COMMAND_SEQ=${BATCH_CMD} |
---|
[4990] | 101 | export INTERACT_FLAG="no" |
---|
[4245] | 102 | export MPIRUN_FLAG="yes" |
---|
[10427] | 103 | export USING_XIOS="yes" |
---|
[9941] | 104 | export USING_ICEBERGS="yes" |
---|
[3520] | 105 | # |
---|
[4245] | 106 | export DEL_KEYS="key_iomput" |
---|
| 107 | if [ ${USING_XIOS} == "yes" ] |
---|
| 108 | then |
---|
| 109 | export DEL_KEYS="" |
---|
| 110 | fi |
---|
[3520] | 111 | # |
---|
[10687] | 112 | export ADD_KEYS="" |
---|
| 113 | if [ ${ADD_NOSIGNEDZERO} == "yes" ] |
---|
| 114 | then |
---|
| 115 | export ADD_KEYS="key_nosignedzero" |
---|
| 116 | fi |
---|
| 117 | # |
---|
[4245] | 118 | # Settings which control the use of stand alone servers (only relevant if using xios) |
---|
[3520] | 119 | # |
---|
[10632] | 120 | export USING_MPMD="no" |
---|
| 121 | export NUM_XIOSERVERS=4 |
---|
| 122 | export JOB_PREFIX=batch-mpmd |
---|
[3520] | 123 | # |
---|
[4245] | 124 | if [ ${USING_MPMD} == "no" ] |
---|
| 125 | then |
---|
| 126 | export NUM_XIOSERVERS=0 |
---|
| 127 | export JOB_PREFIX=batch |
---|
| 128 | fi |
---|
[3520] | 129 | # |
---|
| 130 | # |
---|
[10573] | 131 | if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no" ] |
---|
[4245] | 132 | then |
---|
| 133 | echo "Incompatible choices. MPMD mode requires the XIOS server" |
---|
| 134 | exit |
---|
| 135 | fi |
---|
[3520] | 136 | |
---|
| 137 | # Directory to run the tests |
---|
[9602] | 138 | CONFIG_DIR0=${MAIN_DIR}/cfgs |
---|
| 139 | TOOLS_DIR=${MAIN_DIR}/tools |
---|
[3520] | 140 | |
---|
| 141 | CMP_NAM=${1:-$COMPILER} |
---|
| 142 | # Copy job_batch_COMPILER file for specific compiler into job_batch_template |
---|
| 143 | cd ${SETTE_DIR} |
---|
[4245] | 144 | cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit |
---|
[10747] | 145 | # Description of available configurations: |
---|
| 146 | # GYRE_PISCES : |
---|
| 147 | # ORCA2_ICE_PISCES : |
---|
| 148 | # ORCA2_OFF_PISCES : |
---|
| 149 | # AMM12 : |
---|
| 150 | # SAS : |
---|
| 151 | # ORCA2_ICE_OBS : |
---|
| 152 | # AGRIF : test AGRIF in a double zoom configuration in the nordic seas + 1 zoom in the eq. Pacific (AGRIF_DEMO) |
---|
| 153 | # and check that key_agrif without zoom = no key_agrif |
---|
| 154 | # SPITZ12 : regional configuration including sea-ice and tides (Spitzbergen) |
---|
[4147] | 155 | |
---|
[10747] | 156 | for config in ${TEST_CONFIGS} |
---|
[3520] | 157 | do |
---|
| 158 | |
---|
[9518] | 159 | # ----------- |
---|
| 160 | # GYRE_PISCES |
---|
| 161 | # ----------- |
---|
[10747] | 162 | if [ ${config} == "GYRE_PISCES" ] ; then |
---|
[9518] | 163 | ## Restartability tests for GYRE_PISCES |
---|
[3520] | 164 | export TEST_NAME="LONG" |
---|
[9658] | 165 | cd ${MAIN_DIR} |
---|
[10687] | 166 | . ./makenemo -m ${CMP_NAM} -n GYRE_PISCES_ST -r GYRE_PISCES -j 8 add_key ${ADD_KEYS} del_key ${DEL_KEYS} |
---|
[3520] | 167 | cd ${SETTE_DIR} |
---|
[4252] | 168 | . ./param.cfg |
---|
| 169 | . ./all_functions.sh |
---|
| 170 | . ./prepare_exe_dir.sh |
---|
[10755] | 171 | set_valid_dir |
---|
[10698] | 172 | clean_valid_dir |
---|
[3520] | 173 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[9525] | 174 | NPROC=8 |
---|
[4245] | 175 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[4147] | 176 | cd ${EXE_DIR} |
---|
[7715] | 177 | set_namelist namelist_cfg cn_exp \"GYREPIS_LONG\" |
---|
[4147] | 178 | set_namelist namelist_cfg nn_it000 1 |
---|
[9560] | 179 | set_namelist namelist_cfg nn_itend 1080 |
---|
| 180 | set_namelist namelist_cfg nn_stock 540 |
---|
[7646] | 181 | set_namelist namelist_cfg ln_linssh .true. |
---|
[9525] | 182 | set_namelist namelist_cfg jpni 2 |
---|
| 183 | set_namelist namelist_cfg jpnj 4 |
---|
[10573] | 184 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 185 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 186 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
| 187 | set_namelist namelist_cfg sn_cfctl%l_trcstat .true. |
---|
[4245] | 188 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 189 | set_xio_using_server iodef.xml true |
---|
| 190 | else |
---|
| 191 | set_xio_using_server iodef.xml false |
---|
| 192 | fi |
---|
| 193 | cd ${SETTE_DIR} |
---|
[10755] | 194 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[3520] | 195 | |
---|
| 196 | cd ${SETTE_DIR} |
---|
| 197 | export TEST_NAME="SHORT" |
---|
[4252] | 198 | . ./prepare_exe_dir.sh |
---|
[10755] | 199 | set_valid_dir |
---|
[10698] | 200 | clean_valid_dir |
---|
[3520] | 201 | cd ${EXE_DIR} |
---|
[7715] | 202 | set_namelist namelist_cfg cn_exp \"GYREPIS_SHORT\" |
---|
[9560] | 203 | set_namelist namelist_cfg nn_it000 541 |
---|
| 204 | set_namelist namelist_cfg nn_itend 1080 |
---|
| 205 | set_namelist namelist_cfg nn_stock 540 |
---|
[4147] | 206 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 207 | set_namelist namelist_cfg nn_rstctl 2 |
---|
[7646] | 208 | set_namelist namelist_cfg ln_linssh .true. |
---|
[9525] | 209 | set_namelist namelist_cfg jpni 2 |
---|
| 210 | set_namelist namelist_cfg jpnj 4 |
---|
[10573] | 211 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 212 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 213 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
| 214 | set_namelist namelist_cfg sn_cfctl%l_trcstat .true. |
---|
[7744] | 215 | set_namelist namelist_top_cfg ln_rsttr .true. |
---|
| 216 | set_namelist namelist_top_cfg nn_rsttr 2 |
---|
[9560] | 217 | set_namelist namelist_cfg cn_ocerst_in \"GYREPIS_LONG_00000540_restart\" |
---|
| 218 | set_namelist namelist_top_cfg cn_trcrst_in \"GYREPIS_LONG_00000540_restart_trc\" |
---|
[4245] | 219 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 220 | set_xio_using_server iodef.xml true |
---|
| 221 | else |
---|
| 222 | set_xio_using_server iodef.xml false |
---|
| 223 | fi |
---|
[3537] | 224 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 225 | L_NPROC=$(( $i - 1 )) |
---|
| 226 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[9560] | 227 | ln -sf ../LONG/GYREPIS_LONG_00000540_restart_${L_NPROC}.nc . |
---|
| 228 | ln -sf ../LONG/GYREPIS_LONG_00000540_restart_trc_${L_NPROC}.nc . |
---|
[3537] | 229 | done |
---|
[3520] | 230 | cd ${SETTE_DIR} |
---|
[10755] | 231 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[3520] | 232 | cd ${SETTE_DIR} |
---|
[3532] | 233 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 234 | |
---|
[9518] | 235 | ## Reproducibility tests for GYRE_PISCES |
---|
[9525] | 236 | export TEST_NAME="REPRO_2_4" |
---|
[9658] | 237 | cd ${MAIN_DIR} |
---|
[3520] | 238 | cd ${SETTE_DIR} |
---|
[4252] | 239 | . ./param.cfg |
---|
| 240 | . ./all_functions.sh |
---|
| 241 | . ./prepare_exe_dir.sh |
---|
[10755] | 242 | set_valid_dir |
---|
[10698] | 243 | clean_valid_dir |
---|
[3520] | 244 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[9525] | 245 | NPROC=8 |
---|
[4245] | 246 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 247 | cd ${EXE_DIR} |
---|
[7715] | 248 | set_namelist namelist_cfg cn_exp \"GYREPIS_48\" |
---|
[4147] | 249 | set_namelist namelist_cfg nn_it000 1 |
---|
[9560] | 250 | set_namelist namelist_cfg nn_itend 1080 |
---|
[7646] | 251 | set_namelist namelist_cfg ln_linssh .true. |
---|
[9525] | 252 | set_namelist namelist_cfg jpni 2 |
---|
| 253 | set_namelist namelist_cfg jpnj 4 |
---|
[10573] | 254 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 255 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 256 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
| 257 | set_namelist namelist_cfg sn_cfctl%l_trcstat .true. |
---|
[4245] | 258 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 259 | set_xio_using_server iodef.xml true |
---|
| 260 | else |
---|
| 261 | set_xio_using_server iodef.xml false |
---|
| 262 | fi |
---|
[3520] | 263 | cd ${SETTE_DIR} |
---|
[10755] | 264 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[3520] | 265 | cd ${SETTE_DIR} |
---|
| 266 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 267 | |
---|
| 268 | cd ${SETTE_DIR} |
---|
[9525] | 269 | export TEST_NAME="REPRO_4_2" |
---|
[4252] | 270 | . ./prepare_exe_dir.sh |
---|
[10755] | 271 | set_valid_dir |
---|
[10698] | 272 | clean_valid_dir |
---|
[3680] | 273 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[9525] | 274 | NPROC=8 |
---|
[4245] | 275 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 276 | cd ${EXE_DIR} |
---|
[7715] | 277 | set_namelist namelist_cfg cn_exp \"GYREPIS_84\" |
---|
[4147] | 278 | set_namelist namelist_cfg nn_it000 1 |
---|
[9560] | 279 | set_namelist namelist_cfg nn_itend 1080 |
---|
[7646] | 280 | set_namelist namelist_cfg ln_linssh .true. |
---|
[9525] | 281 | set_namelist namelist_cfg jpni 4 |
---|
| 282 | set_namelist namelist_cfg jpnj 2 |
---|
[10573] | 283 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 284 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 285 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
| 286 | set_namelist namelist_cfg sn_cfctl%l_trcstat .true. |
---|
[4245] | 287 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 288 | set_xio_using_server iodef.xml true |
---|
| 289 | else |
---|
| 290 | set_xio_using_server iodef.xml false |
---|
| 291 | fi |
---|
[3520] | 292 | cd ${SETTE_DIR} |
---|
[10755] | 293 | . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[3520] | 294 | cd ${SETTE_DIR} |
---|
| 295 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3532] | 296 | |
---|
[3520] | 297 | fi |
---|
| 298 | |
---|
[9518] | 299 | # ----------------- |
---|
[9663] | 300 | # ORCA2_ICE_PISCES |
---|
[9518] | 301 | # ----------------- |
---|
[10747] | 302 | if [ ${config} == "ORCA2_ICE_PISCES" ] ; then |
---|
[9663] | 303 | ## Restartability tests for ORCA2_ICE_PISCES |
---|
[7646] | 304 | export TEST_NAME="LONG" |
---|
[9658] | 305 | cd ${MAIN_DIR} |
---|
[10687] | 306 | . ./makenemo -m ${CMP_NAM} -n ORCA2_ICE_PISCES_ST -r ORCA2_ICE_PISCES -j 8 add_key ${ADD_KEYS} del_key ${DEL_KEYS} |
---|
[7646] | 307 | cd ${SETTE_DIR} |
---|
| 308 | . ./param.cfg |
---|
| 309 | . ./all_functions.sh |
---|
| 310 | . ./prepare_exe_dir.sh |
---|
[10755] | 311 | set_valid_dir |
---|
[10698] | 312 | clean_valid_dir |
---|
[7646] | 313 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 314 | NPROC=32 |
---|
| 315 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 316 | cd ${EXE_DIR} |
---|
| 317 | set_namelist namelist_cfg cn_exp \"O2L3P_LONG\" |
---|
| 318 | set_namelist namelist_cfg nn_it000 1 |
---|
[10750] | 319 | set_namelist namelist_cfg nn_itend 992 |
---|
| 320 | set_namelist namelist_cfg nn_stock 496 |
---|
[7646] | 321 | set_namelist namelist_cfg jpni 4 |
---|
| 322 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 323 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 324 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 325 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
| 326 | set_namelist namelist_cfg sn_cfctl%l_trcstat .true. |
---|
[9933] | 327 | set_namelist namelist_cfg ln_use_calving .true. |
---|
[10189] | 328 | set_namelist namelist_cfg ln_wave .true. |
---|
| 329 | set_namelist namelist_cfg ln_cdgw .true. |
---|
| 330 | set_namelist namelist_cfg ln_sdw .true. |
---|
| 331 | set_namelist namelist_cfg nn_sdrift 1 |
---|
| 332 | set_namelist namelist_cfg ln_stcor .true. |
---|
| 333 | set_namelist namelist_cfg ln_tauwoc .true. |
---|
[9904] | 334 | # |
---|
| 335 | if [ ${USING_ICEBERGS} == "no" ] ; then set_namelist namelist_cfg ln_icebergs .false. ; fi |
---|
[10687] | 336 | # for debugging purposes set_namelist namelist_cfg rn_test_box -180.0, 180.0, -90.0, -55.0 |
---|
[9904] | 337 | # |
---|
[9019] | 338 | set_namelist namelist_ice_cfg ln_icediachk .true. |
---|
[4147] | 339 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 340 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 341 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 342 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 343 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 344 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 345 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 346 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 347 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 348 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 349 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 350 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[9203] | 351 | # put ln_pisdmp to false : no restoring to global mean value |
---|
| 352 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 353 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 354 | set_xio_using_server iodef.xml true |
---|
| 355 | else |
---|
| 356 | set_xio_using_server iodef.xml false |
---|
| 357 | fi |
---|
[3520] | 358 | cd ${SETTE_DIR} |
---|
[10755] | 359 | . ./prepare_job.sh input_ORCA2_ICE_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[3532] | 360 | |
---|
| 361 | cd ${SETTE_DIR} |
---|
[3520] | 362 | export TEST_NAME="SHORT" |
---|
[4252] | 363 | . ./prepare_exe_dir.sh |
---|
[10755] | 364 | set_valid_dir |
---|
[10698] | 365 | clean_valid_dir |
---|
[3520] | 366 | cd ${EXE_DIR} |
---|
[7646] | 367 | set_namelist namelist_cfg cn_exp \"O2L3P_SHORT\" |
---|
[10750] | 368 | set_namelist namelist_cfg nn_it000 497 |
---|
| 369 | set_namelist namelist_cfg nn_itend 992 |
---|
| 370 | set_namelist namelist_cfg nn_stock 496 |
---|
[4147] | 371 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 372 | set_namelist namelist_cfg nn_rstctl 2 |
---|
[7646] | 373 | set_namelist namelist_cfg jpni 4 |
---|
| 374 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 375 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 376 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 377 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
| 378 | set_namelist namelist_cfg sn_cfctl%l_trcstat .true. |
---|
[9920] | 379 | set_namelist namelist_cfg nn_test_icebergs -1 |
---|
[10189] | 380 | set_namelist namelist_cfg ln_wave .true. |
---|
| 381 | set_namelist namelist_cfg ln_cdgw .true. |
---|
| 382 | set_namelist namelist_cfg ln_sdw .true. |
---|
| 383 | set_namelist namelist_cfg nn_sdrift 1 |
---|
| 384 | set_namelist namelist_cfg ln_stcor .true. |
---|
| 385 | set_namelist namelist_cfg ln_tauwoc .true. |
---|
[9904] | 386 | # |
---|
| 387 | if [ ${USING_ICEBERGS} == "no" ] ; then set_namelist namelist_cfg ln_icebergs .false. ; fi |
---|
[10732] | 388 | # for debugging purposes set_namelist namelist_cfg rn_test_box -180.0, 180.0, -90.0, -55.0 |
---|
[9904] | 389 | # |
---|
[9933] | 390 | set_namelist namelist_ice_cfg ln_icediachk .true. |
---|
[4147] | 391 | set_namelist namelist_top_cfg ln_rsttr .true. |
---|
| 392 | set_namelist namelist_top_cfg nn_rsttr 2 |
---|
[10750] | 393 | set_namelist namelist_cfg cn_ocerst_in \"O2L3P_LONG_00000496_restart\" |
---|
| 394 | set_namelist namelist_top_cfg cn_trcrst_in \"O2L3P_LONG_00000496_restart_trc\" |
---|
| 395 | set_namelist namelist_ice_cfg cn_icerst_in \"O2L3P_LONG_00000496_restart_ice\" |
---|
[9933] | 396 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 397 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust |
---|
| 398 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 399 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 400 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 401 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 402 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 403 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 404 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 405 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 406 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 407 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 408 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 409 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[3537] | 410 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 411 | L_NPROC=$(( $i - 1 )) |
---|
| 412 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[10750] | 413 | ln -sf ../LONG/O2L3P_LONG_00000496_restart_${L_NPROC}.nc . |
---|
| 414 | ln -sf ../LONG/O2L3P_LONG_00000496_restart_trc_${L_NPROC}.nc . |
---|
| 415 | ln -sf ../LONG/O2L3P_LONG_00000496_restart_ice_${L_NPROC}.nc . |
---|
[9904] | 416 | if [ ${USING_ICEBERGS} == "yes" ] |
---|
| 417 | then |
---|
[10750] | 418 | ln -sf ../LONG/O2L3P_LONG_icebergs_00000496_restart_${L_NPROC}.nc O2L3P_LONG_00000496_restart_icebergs_${L_NPROC}.nc |
---|
[9904] | 419 | fi |
---|
[3537] | 420 | done |
---|
[4245] | 421 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 422 | set_xio_using_server iodef.xml true |
---|
| 423 | else |
---|
| 424 | set_xio_using_server iodef.xml false |
---|
| 425 | fi |
---|
[3520] | 426 | cd ${SETTE_DIR} |
---|
[10755] | 427 | . ./prepare_job.sh input_ORCA2_ICE_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[3520] | 428 | cd ${SETTE_DIR} |
---|
[3532] | 429 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 430 | |
---|
[9663] | 431 | ## Reproducibility tests for ORCA2_ICE_PISCES |
---|
[7646] | 432 | export TEST_NAME="REPRO_4_8" |
---|
[9658] | 433 | cd ${MAIN_DIR} |
---|
[3520] | 434 | cd ${SETTE_DIR} |
---|
[4252] | 435 | . ./param.cfg |
---|
| 436 | . ./all_functions.sh |
---|
| 437 | . ./prepare_exe_dir.sh |
---|
[10755] | 438 | set_valid_dir |
---|
[10698] | 439 | clean_valid_dir |
---|
[3520] | 440 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 441 | NPROC=32 |
---|
[4245] | 442 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 443 | cd ${EXE_DIR} |
---|
[9019] | 444 | set_namelist namelist_cfg cn_exp \"O2L3P_48\" |
---|
[4147] | 445 | set_namelist namelist_cfg nn_it000 1 |
---|
[10750] | 446 | set_namelist namelist_cfg nn_itend 992 |
---|
[4147] | 447 | set_namelist namelist_cfg jpni 4 |
---|
[7646] | 448 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 449 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 450 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 451 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
| 452 | set_namelist namelist_cfg sn_cfctl%l_trcstat .true. |
---|
[10189] | 453 | set_namelist namelist_cfg ln_wave .true. |
---|
| 454 | set_namelist namelist_cfg ln_cdgw .true. |
---|
| 455 | set_namelist namelist_cfg ln_sdw .true. |
---|
| 456 | set_namelist namelist_cfg nn_sdrift 1 |
---|
| 457 | set_namelist namelist_cfg ln_stcor .true. |
---|
| 458 | set_namelist namelist_cfg ln_tauwoc .true. |
---|
| 459 | |
---|
[9904] | 460 | if [ ${USING_ICEBERGS} == "no" ] ; then set_namelist namelist_cfg ln_icebergs .false. ; fi |
---|
[10687] | 461 | # for debugging purposes set_namelist namelist_cfg rn_test_box -180.0, 180.0, -90.0, -55.0 |
---|
| 462 | |
---|
[4147] | 463 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 464 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 465 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 466 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 467 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 468 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 469 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 470 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 471 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 472 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 473 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 474 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 475 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 476 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 477 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 478 | set_xio_using_server iodef.xml true |
---|
| 479 | else |
---|
| 480 | set_xio_using_server iodef.xml false |
---|
| 481 | fi |
---|
[3520] | 482 | cd ${SETTE_DIR} |
---|
[10755] | 483 | . ./prepare_job.sh input_ORCA2_ICE_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[3520] | 484 | cd ${SETTE_DIR} |
---|
[3532] | 485 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 486 | |
---|
| 487 | cd ${SETTE_DIR} |
---|
[7646] | 488 | export TEST_NAME="REPRO_8_4" |
---|
[4252] | 489 | . ./prepare_exe_dir.sh |
---|
[10755] | 490 | set_valid_dir |
---|
[10698] | 491 | clean_valid_dir |
---|
[3680] | 492 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 493 | NPROC=32 |
---|
[4245] | 494 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 495 | cd ${EXE_DIR} |
---|
[9019] | 496 | set_namelist namelist_cfg cn_exp \"O2L3P_84\" |
---|
[4147] | 497 | set_namelist namelist_cfg nn_it000 1 |
---|
[10750] | 498 | set_namelist namelist_cfg nn_itend 992 |
---|
[7646] | 499 | set_namelist namelist_cfg jpni 8 |
---|
| 500 | set_namelist namelist_cfg jpnj 4 |
---|
[10573] | 501 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 502 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 503 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
| 504 | set_namelist namelist_cfg sn_cfctl%l_trcstat .true. |
---|
[10189] | 505 | set_namelist namelist_cfg ln_wave .true. |
---|
| 506 | set_namelist namelist_cfg ln_cdgw .true. |
---|
| 507 | set_namelist namelist_cfg ln_sdw .true. |
---|
| 508 | set_namelist namelist_cfg nn_sdrift 1 |
---|
| 509 | set_namelist namelist_cfg ln_stcor .true. |
---|
| 510 | set_namelist namelist_cfg ln_tauwoc .true. |
---|
[10687] | 511 | |
---|
[9904] | 512 | if [ ${USING_ICEBERGS} == "no" ] ; then set_namelist namelist_cfg ln_icebergs .false. ; fi |
---|
[10687] | 513 | # for debugging purposes set_namelist namelist_cfg rn_test_box -180.0, 180.0, -90.0, -55.0 |
---|
| 514 | |
---|
[4147] | 515 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 516 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 517 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 518 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 519 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 520 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 521 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 522 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 523 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 524 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 525 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 526 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 527 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 528 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 529 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 530 | set_xio_using_server iodef.xml true |
---|
| 531 | else |
---|
| 532 | set_xio_using_server iodef.xml false |
---|
| 533 | fi |
---|
[3520] | 534 | cd ${SETTE_DIR} |
---|
[10755] | 535 | . ./prepare_job.sh input_ORCA2_ICE_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[3520] | 536 | cd ${SETTE_DIR} |
---|
| 537 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 538 | fi |
---|
| 539 | |
---|
[9518] | 540 | # ---------------- |
---|
| 541 | # ORCA2_OFF_PISCES |
---|
| 542 | # ---------------- |
---|
[10747] | 543 | if [ ${config} == "ORCA2_OFF_PISCES" ] ; then |
---|
[9518] | 544 | ## Restartability tests for ORCA2_OFF_PISCES |
---|
[3520] | 545 | export TEST_NAME="LONG" |
---|
[9658] | 546 | cd ${MAIN_DIR} |
---|
[10687] | 547 | . ./makenemo -m ${CMP_NAM} -n ORCA2_OFF_PISCES_ST -r ORCA2_OFF_PISCES -j 8 add_key ${ADD_KEYS} del_key ${DEL_KEYS} |
---|
[3520] | 548 | cd ${SETTE_DIR} |
---|
[4252] | 549 | . ./param.cfg |
---|
| 550 | . ./all_functions.sh |
---|
| 551 | . ./prepare_exe_dir.sh |
---|
[10755] | 552 | set_valid_dir |
---|
[10698] | 553 | clean_valid_dir |
---|
[3520] | 554 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 555 | NPROC=32 |
---|
[4245] | 556 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 557 | cd ${EXE_DIR} |
---|
[4147] | 558 | set_namelist namelist_cfg cn_exp \"OFFP_LONG\" |
---|
| 559 | set_namelist namelist_cfg nn_it000 1 |
---|
[9560] | 560 | set_namelist namelist_cfg nn_itend 380 |
---|
| 561 | set_namelist namelist_cfg nn_stock 190 |
---|
[7646] | 562 | set_namelist namelist_cfg jpni 4 |
---|
| 563 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 564 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 565 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 566 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
| 567 | set_namelist namelist_cfg sn_cfctl%l_trcstat .true. |
---|
[9904] | 568 | set_namelist namelist_cfg ln_qsr_rgb .true. |
---|
[4147] | 569 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 570 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 571 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 572 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 573 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 574 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 575 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 576 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 577 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 578 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 579 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 580 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 581 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 582 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 583 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 584 | set_xio_using_server iodef.xml true |
---|
| 585 | else |
---|
| 586 | set_xio_using_server iodef.xml false |
---|
| 587 | fi |
---|
[3520] | 588 | cd ${SETTE_DIR} |
---|
[10755] | 589 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[3520] | 590 | |
---|
| 591 | cd ${SETTE_DIR} |
---|
| 592 | export TEST_NAME="SHORT" |
---|
[4252] | 593 | . ./prepare_exe_dir.sh |
---|
[10755] | 594 | set_valid_dir |
---|
[10698] | 595 | clean_valid_dir |
---|
[3520] | 596 | cd ${EXE_DIR} |
---|
[4147] | 597 | set_namelist namelist_cfg cn_exp \"OFFP_SHORT\" |
---|
[9560] | 598 | set_namelist namelist_cfg nn_it000 191 |
---|
| 599 | set_namelist namelist_cfg nn_itend 380 |
---|
| 600 | set_namelist namelist_cfg nn_stock 190 |
---|
[7646] | 601 | set_namelist namelist_cfg jpni 4 |
---|
| 602 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 603 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 604 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 605 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
| 606 | set_namelist namelist_cfg sn_cfctl%l_trcstat .true. |
---|
[9904] | 607 | set_namelist namelist_cfg ln_qsr_rgb .true. |
---|
[4147] | 608 | set_namelist namelist_top_cfg ln_rsttr .true. |
---|
| 609 | set_namelist namelist_top_cfg nn_rsttr 2 |
---|
[9560] | 610 | set_namelist namelist_top_cfg cn_trcrst_in \"OFFP_LONG_00000190_restart_trc\" |
---|
[3537] | 611 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 612 | L_NPROC=$(( $i - 1 )) |
---|
| 613 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[9560] | 614 | ln -sf ../LONG/OFFP_LONG_00000190_restart_trc_${L_NPROC}.nc . |
---|
[3537] | 615 | done |
---|
[3520] | 616 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust |
---|
| 617 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 618 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 619 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 620 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 621 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 622 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 623 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 624 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 625 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 626 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 627 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 628 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 629 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 630 | set_xio_using_server iodef.xml true |
---|
| 631 | else |
---|
| 632 | set_xio_using_server iodef.xml false |
---|
| 633 | fi |
---|
[3520] | 634 | cd ${SETTE_DIR} |
---|
[10755] | 635 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[3520] | 636 | cd ${SETTE_DIR} |
---|
| 637 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 638 | |
---|
[9518] | 639 | ## Reproducibility tests for ORCA2_OFF_PISCES |
---|
[7646] | 640 | export TEST_NAME="REPRO_4_8" |
---|
[9658] | 641 | cd ${MAIN_DIR} |
---|
[3520] | 642 | cd ${SETTE_DIR} |
---|
[4252] | 643 | . ./param.cfg |
---|
| 644 | . ./all_functions.sh |
---|
| 645 | . ./prepare_exe_dir.sh |
---|
[10755] | 646 | set_valid_dir |
---|
[10698] | 647 | clean_valid_dir |
---|
[3520] | 648 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 649 | NPROC=32 |
---|
[4245] | 650 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 651 | cd ${EXE_DIR} |
---|
[9019] | 652 | set_namelist namelist_cfg cn_exp \"OFFP_48\" |
---|
[4147] | 653 | set_namelist namelist_cfg nn_it000 1 |
---|
[9560] | 654 | set_namelist namelist_cfg nn_itend 380 |
---|
[4147] | 655 | set_namelist namelist_cfg jpni 4 |
---|
[7646] | 656 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 657 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 658 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 659 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
| 660 | set_namelist namelist_cfg sn_cfctl%l_trcstat .true. |
---|
[9904] | 661 | set_namelist namelist_cfg ln_qsr_rgb .true. |
---|
[4147] | 662 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 663 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 664 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 665 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 666 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 667 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 668 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 669 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 670 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 671 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 672 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 673 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 674 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 675 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 676 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 677 | set_xio_using_server iodef.xml true |
---|
| 678 | else |
---|
| 679 | set_xio_using_server iodef.xml false |
---|
| 680 | fi |
---|
[3520] | 681 | cd ${SETTE_DIR} |
---|
[10755] | 682 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[3520] | 683 | cd ${SETTE_DIR} |
---|
[3532] | 684 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 685 | |
---|
| 686 | cd ${SETTE_DIR} |
---|
[7646] | 687 | export TEST_NAME="REPRO_8_4" |
---|
[4252] | 688 | . ./prepare_exe_dir.sh |
---|
[10755] | 689 | set_valid_dir |
---|
[10698] | 690 | clean_valid_dir |
---|
[3680] | 691 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 692 | NPROC=32 |
---|
[4245] | 693 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 694 | cd ${EXE_DIR} |
---|
[9019] | 695 | set_namelist namelist_cfg cn_exp \"OFFP_84\" |
---|
[4147] | 696 | set_namelist namelist_cfg nn_it000 1 |
---|
[9560] | 697 | set_namelist namelist_cfg nn_itend 380 |
---|
[7646] | 698 | set_namelist namelist_cfg jpni 8 |
---|
| 699 | set_namelist namelist_cfg jpnj 4 |
---|
[10573] | 700 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 701 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 702 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
| 703 | set_namelist namelist_cfg sn_cfctl%l_trcstat .true. |
---|
[9904] | 704 | set_namelist namelist_cfg ln_qsr_rgb .true. |
---|
[4147] | 705 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
[3520] | 706 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 707 | # if not you need input files, and for tests is not necessary |
---|
[4147] | 708 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 709 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 710 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 711 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 712 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 713 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 714 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
[7646] | 715 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
[4147] | 716 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[3680] | 717 | # put ln_pisdmp to false : no restoring to global mean value |
---|
[4147] | 718 | set_namelist namelist_pisces_cfg ln_pisdmp .false. |
---|
[4245] | 719 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 720 | set_xio_using_server iodef.xml true |
---|
| 721 | else |
---|
| 722 | set_xio_using_server iodef.xml false |
---|
| 723 | fi |
---|
[3520] | 724 | cd ${SETTE_DIR} |
---|
[10755] | 725 | . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[3520] | 726 | cd ${SETTE_DIR} |
---|
| 727 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 728 | fi |
---|
| 729 | |
---|
[9518] | 730 | # ----- |
---|
| 731 | # AMM12 |
---|
| 732 | # ----- |
---|
[10747] | 733 | if [ ${config} == "AMM12" ] ; then |
---|
[3532] | 734 | ## Restartability tests for AMM12 |
---|
| 735 | export TEST_NAME="LONG" |
---|
[9658] | 736 | cd ${MAIN_DIR} |
---|
[10687] | 737 | . ./makenemo -m ${CMP_NAM} -n AMM12_ST -r AMM12 -j 8 add_key ${ADD_KEYS} del_key ${DEL_KEYS} |
---|
[3520] | 738 | cd ${SETTE_DIR} |
---|
[4252] | 739 | . ./param.cfg |
---|
| 740 | . ./all_functions.sh |
---|
| 741 | . ./prepare_exe_dir.sh |
---|
[10755] | 742 | set_valid_dir |
---|
[10698] | 743 | clean_valid_dir |
---|
[3520] | 744 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 745 | NPROC=32 |
---|
[4245] | 746 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 747 | cd ${EXE_DIR} |
---|
[9019] | 748 | set_namelist namelist_cfg cn_exp \"AMM12_LONG\" |
---|
[4147] | 749 | set_namelist namelist_cfg nn_it000 1 |
---|
[4252] | 750 | set_namelist namelist_cfg nn_itend 576 |
---|
| 751 | set_namelist namelist_cfg nn_stock 288 |
---|
[7646] | 752 | set_namelist namelist_cfg jpni 4 |
---|
| 753 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 754 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 755 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 756 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[4245] | 757 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 758 | set_xio_using_server iodef.xml true |
---|
| 759 | else |
---|
| 760 | set_xio_using_server iodef.xml false |
---|
| 761 | fi |
---|
[3520] | 762 | cd ${SETTE_DIR} |
---|
[10755] | 763 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[3520] | 764 | |
---|
| 765 | cd ${SETTE_DIR} |
---|
[3532] | 766 | export TEST_NAME="SHORT" |
---|
[4379] | 767 | . ./prepare_exe_dir.sh |
---|
[10755] | 768 | set_valid_dir |
---|
[10698] | 769 | clean_valid_dir |
---|
[3520] | 770 | cd ${EXE_DIR} |
---|
[9019] | 771 | set_namelist namelist_cfg cn_exp \"AMM12_SHORT\" |
---|
[4252] | 772 | set_namelist namelist_cfg nn_it000 289 |
---|
| 773 | set_namelist namelist_cfg nn_itend 576 |
---|
[7646] | 774 | set_namelist namelist_cfg jpni 4 |
---|
| 775 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 776 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 777 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 778 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[4147] | 779 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 780 | set_namelist namelist_cfg nn_rstctl 2 |
---|
[9019] | 781 | set_namelist namelist_cfg cn_ocerst_in \"AMM12_LONG_00000288_restart\" |
---|
[4252] | 782 | set_namelist namelist_cfg nn_date0 20120102 |
---|
[3537] | 783 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 784 | L_NPROC=$(( $i - 1 )) |
---|
| 785 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[9019] | 786 | ln -sf ../LONG/AMM12_LONG_00000288_restart_${L_NPROC}.nc . |
---|
[3537] | 787 | done |
---|
[4245] | 788 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 789 | set_xio_using_server iodef.xml true |
---|
| 790 | else |
---|
| 791 | set_xio_using_server iodef.xml false |
---|
| 792 | fi |
---|
[3520] | 793 | cd ${SETTE_DIR} |
---|
[10755] | 794 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[3520] | 795 | cd ${SETTE_DIR} |
---|
[3532] | 796 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 797 | |
---|
[3680] | 798 | ## Reproducibility tests for AMM12 |
---|
| 799 | export TEST_NAME="REPRO_8_4" |
---|
[9658] | 800 | cd ${MAIN_DIR} |
---|
[3520] | 801 | cd ${SETTE_DIR} |
---|
[4252] | 802 | . ./param.cfg |
---|
| 803 | . ./all_functions.sh |
---|
| 804 | . ./prepare_exe_dir.sh |
---|
[10755] | 805 | set_valid_dir |
---|
[10698] | 806 | clean_valid_dir |
---|
[3520] | 807 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 808 | NPROC=32 |
---|
[4245] | 809 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 810 | cd ${EXE_DIR} |
---|
[9019] | 811 | set_namelist namelist_cfg cn_exp \"AMM12_84\" |
---|
[4147] | 812 | set_namelist namelist_cfg nn_it000 1 |
---|
| 813 | set_namelist namelist_cfg nn_itend 576 |
---|
| 814 | set_namelist namelist_cfg jpni 8 |
---|
| 815 | set_namelist namelist_cfg jpnj 4 |
---|
[10573] | 816 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 817 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 818 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[4245] | 819 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 820 | set_xio_using_server iodef.xml true |
---|
| 821 | else |
---|
| 822 | set_xio_using_server iodef.xml false |
---|
| 823 | fi |
---|
[3520] | 824 | cd ${SETTE_DIR} |
---|
[10755] | 825 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[3520] | 826 | cd ${SETTE_DIR} |
---|
| 827 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 828 | |
---|
| 829 | cd ${SETTE_DIR} |
---|
[3680] | 830 | export TEST_NAME="REPRO_4_8" |
---|
[4252] | 831 | . ./prepare_exe_dir.sh |
---|
[10755] | 832 | set_valid_dir |
---|
[10698] | 833 | clean_valid_dir |
---|
[5478] | 834 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 835 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[3520] | 836 | cd ${EXE_DIR} |
---|
[9019] | 837 | set_namelist namelist_cfg cn_exp \"AMM12_48\" |
---|
[4147] | 838 | set_namelist namelist_cfg nn_it000 1 |
---|
| 839 | set_namelist namelist_cfg nn_itend 576 |
---|
| 840 | set_namelist namelist_cfg jpni 4 |
---|
| 841 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 842 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 843 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 844 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[4245] | 845 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 846 | set_xio_using_server iodef.xml true |
---|
| 847 | else |
---|
| 848 | set_xio_using_server iodef.xml false |
---|
| 849 | fi |
---|
[3520] | 850 | cd ${SETTE_DIR} |
---|
[10755] | 851 | . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[3520] | 852 | cd ${SETTE_DIR} |
---|
[3532] | 853 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[3520] | 854 | fi |
---|
| 855 | |
---|
| 856 | |
---|
[9518] | 857 | # --------- |
---|
| 858 | # ORCA2_SAS |
---|
| 859 | # --------- |
---|
[10747] | 860 | if [ ${config} == "SAS" ] ; then |
---|
[9518] | 861 | ## Restartability tests |
---|
[4147] | 862 | export TEST_NAME="LONG" |
---|
[9658] | 863 | cd ${MAIN_DIR} |
---|
[10687] | 864 | . ./makenemo -m ${CMP_NAM} -n ORCA2_SAS_ICE_ST -r ORCA2_SAS_ICE -j 8 add_key ${ADD_KEYS} del_key ${DEL_KEYS} |
---|
[4147] | 865 | cd ${SETTE_DIR} |
---|
[4252] | 866 | . ./param.cfg |
---|
| 867 | . ./all_functions.sh |
---|
| 868 | . ./prepare_exe_dir.sh |
---|
[10755] | 869 | set_valid_dir |
---|
[10698] | 870 | clean_valid_dir |
---|
[4147] | 871 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 872 | NPROC=32 |
---|
[7646] | 873 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
[4147] | 874 | cd ${EXE_DIR} |
---|
| 875 | set_namelist namelist_cfg cn_exp \"SAS\" |
---|
| 876 | set_namelist namelist_cfg nn_it000 1 |
---|
[10750] | 877 | set_namelist namelist_cfg nn_itend 256 |
---|
| 878 | set_namelist namelist_cfg nn_stock 128 |
---|
[7646] | 879 | set_namelist namelist_cfg jpni 4 |
---|
| 880 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 881 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 882 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 883 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9019] | 884 | set_namelist namelist_ice_cfg ln_icediachk .true. |
---|
[4245] | 885 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 886 | set_xio_using_server iodef.xml true |
---|
| 887 | else |
---|
| 888 | set_xio_using_server iodef.xml false |
---|
| 889 | fi |
---|
[4147] | 890 | cd ${SETTE_DIR} |
---|
[10755] | 891 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[4147] | 892 | |
---|
| 893 | cd ${SETTE_DIR} |
---|
| 894 | export TEST_NAME="SHORT" |
---|
[4252] | 895 | . ./prepare_exe_dir.sh |
---|
[10755] | 896 | set_valid_dir |
---|
[10698] | 897 | clean_valid_dir |
---|
[4147] | 898 | cd ${EXE_DIR} |
---|
| 899 | set_namelist namelist_cfg cn_exp \"SAS\" |
---|
[10750] | 900 | set_namelist namelist_cfg nn_it000 129 |
---|
| 901 | set_namelist namelist_cfg nn_itend 256 |
---|
[7646] | 902 | set_namelist namelist_cfg jpni 4 |
---|
| 903 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 904 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 905 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 906 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[7646] | 907 | set_namelist namelist_cfg ln_rstart .true. |
---|
[4147] | 908 | set_namelist namelist_cfg nn_rstctl 2 |
---|
[9019] | 909 | set_namelist namelist_cfg nn_date0 010109 |
---|
[10750] | 910 | set_namelist namelist_cfg cn_ocerst_in \"SAS_00000128_restart\" |
---|
| 911 | set_namelist namelist_ice_cfg cn_icerst_in \"SAS_00000128_restart_ice\" |
---|
[4245] | 912 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 913 | set_xio_using_server iodef.xml true |
---|
| 914 | else |
---|
| 915 | set_xio_using_server iodef.xml false |
---|
| 916 | fi |
---|
[7646] | 917 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 918 | L_NPROC=$(( $i - 1 )) |
---|
| 919 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[10750] | 920 | ln -sf ../LONG/SAS_00000128_restart_${L_NPROC}.nc . |
---|
| 921 | ln -sf ../LONG/SAS_00000128_restart_ice_${L_NPROC}.nc . |
---|
[7646] | 922 | done |
---|
[4147] | 923 | cd ${SETTE_DIR} |
---|
[10755] | 924 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[4147] | 925 | cd ${SETTE_DIR} |
---|
| 926 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 927 | |
---|
[9518] | 928 | ## Reproducibility tests |
---|
| 929 | export TEST_NAME="REPRO_4_8" |
---|
[9658] | 930 | cd ${MAIN_DIR} |
---|
[4990] | 931 | cd ${SETTE_DIR} |
---|
| 932 | . ./param.cfg |
---|
| 933 | . ./all_functions.sh |
---|
| 934 | . ./prepare_exe_dir.sh |
---|
[10755] | 935 | set_valid_dir |
---|
[10698] | 936 | clean_valid_dir |
---|
[4990] | 937 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[9518] | 938 | NPROC=32 |
---|
[4990] | 939 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 940 | cd ${EXE_DIR} |
---|
[9518] | 941 | set_namelist namelist_cfg cn_exp \"SAS_48\" |
---|
[4990] | 942 | set_namelist namelist_cfg nn_it000 1 |
---|
[10750] | 943 | set_namelist namelist_cfg nn_itend 80 |
---|
[9518] | 944 | set_namelist namelist_cfg jpni 4 |
---|
| 945 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 946 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 947 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 948 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[4990] | 949 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 950 | set_xio_using_server iodef.xml true |
---|
| 951 | else |
---|
| 952 | set_xio_using_server iodef.xml false |
---|
| 953 | fi |
---|
| 954 | cd ${SETTE_DIR} |
---|
[10755] | 955 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[4990] | 956 | cd ${SETTE_DIR} |
---|
| 957 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
[9019] | 958 | |
---|
[4990] | 959 | cd ${SETTE_DIR} |
---|
[7646] | 960 | export TEST_NAME="REPRO_8_4" |
---|
[4990] | 961 | . ./prepare_exe_dir.sh |
---|
[10755] | 962 | set_valid_dir |
---|
[10698] | 963 | clean_valid_dir |
---|
[4990] | 964 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 965 | NPROC=32 |
---|
[4990] | 966 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 967 | cd ${EXE_DIR} |
---|
[9518] | 968 | set_namelist namelist_cfg cn_exp \"SAS_84\" |
---|
[4990] | 969 | set_namelist namelist_cfg nn_it000 1 |
---|
[10750] | 970 | set_namelist namelist_cfg nn_itend 80 |
---|
[7646] | 971 | set_namelist namelist_cfg jpni 8 |
---|
| 972 | set_namelist namelist_cfg jpnj 4 |
---|
[10573] | 973 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 974 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 975 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[4990] | 976 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 977 | set_xio_using_server iodef.xml true |
---|
| 978 | else |
---|
| 979 | set_xio_using_server iodef.xml false |
---|
| 980 | fi |
---|
| 981 | cd ${SETTE_DIR} |
---|
[10755] | 982 | . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[4990] | 983 | cd ${SETTE_DIR} |
---|
| 984 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 985 | |
---|
| 986 | fi |
---|
| 987 | |
---|
[9518] | 988 | |
---|
| 989 | # -------------- |
---|
[9663] | 990 | # ORCA2_ICE_OBS |
---|
[9518] | 991 | # -------------- |
---|
[4990] | 992 | ## Test assimilation interface code, OBS and ASM for reproducibility |
---|
| 993 | ## Restartability not tested (ASM code not restartable while increments are being applied) |
---|
[10747] | 994 | if [ ${config} == "ORCA2_ICE_OBS" ] ; then |
---|
[9518] | 995 | ## Reproducibility tests |
---|
[7646] | 996 | export TEST_NAME="REPRO_4_8" |
---|
[9658] | 997 | cd ${MAIN_DIR} |
---|
[10687] | 998 | . ./makenemo -m ${CMP_NAM} -n ORCA2_ICE_OBS_ST -r ORCA2_ICE_PISCES -d "OCE ICE" -j 8 add_key "key_asminc ${ADD_KEYS}" del_key "key_top" |
---|
[4990] | 999 | cd ${SETTE_DIR} |
---|
| 1000 | . ./param.cfg |
---|
| 1001 | . ./all_functions.sh |
---|
| 1002 | . ./prepare_exe_dir.sh |
---|
[10755] | 1003 | set_valid_dir |
---|
[10698] | 1004 | clean_valid_dir |
---|
[4990] | 1005 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 1006 | NPROC=32 |
---|
[4990] | 1007 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1008 | cd ${EXE_DIR} |
---|
[9019] | 1009 | set_namelist namelist_cfg cn_exp \"O2L3OBS_48\" |
---|
[4990] | 1010 | set_namelist namelist_cfg nn_it000 1 |
---|
[10750] | 1011 | set_namelist namelist_cfg nn_itend 80 |
---|
[7646] | 1012 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
[4990] | 1013 | set_namelist namelist_cfg jpni 4 |
---|
[7646] | 1014 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 1015 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1016 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 1017 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
| 1018 | set_namelist namelist_cfg sn_cfctl%l_trcstat .true. |
---|
[6140] | 1019 | set_namelist namelist_cfg ln_diaobs .true. |
---|
[4990] | 1020 | set_namelist namelist_cfg ln_t3d .true. |
---|
| 1021 | set_namelist namelist_cfg ln_s3d .true. |
---|
| 1022 | set_namelist namelist_cfg ln_sst .true. |
---|
| 1023 | set_namelist namelist_cfg ln_sla .true. |
---|
[6140] | 1024 | set_namelist namelist_cfg ln_sic .true. |
---|
| 1025 | set_namelist namelist_cfg ln_vel3d .true. |
---|
[4990] | 1026 | set_namelist namelist_cfg ln_bkgwri .true. |
---|
| 1027 | set_namelist namelist_cfg ln_trainc .true. |
---|
| 1028 | set_namelist namelist_cfg ln_dyninc .true. |
---|
| 1029 | set_namelist namelist_cfg ln_sshinc .true. |
---|
| 1030 | set_namelist namelist_cfg ln_asmiau .true. |
---|
[9663] | 1031 | #remove all useless options for pisces (due to ORCA2_ICE_PISCES reference configuration) |
---|
[7722] | 1032 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
| 1033 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 1034 | # if not you need input files, and for tests is not necessary |
---|
| 1035 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 1036 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 1037 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 1038 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 1039 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 1040 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 1041 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 1042 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
| 1043 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[4990] | 1044 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1045 | set_xio_using_server iodef.xml true |
---|
| 1046 | else |
---|
| 1047 | set_xio_using_server iodef.xml false |
---|
| 1048 | fi |
---|
| 1049 | cd ${SETTE_DIR} |
---|
[10755] | 1050 | . ./prepare_job.sh input_ORCA2_ICE_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[4990] | 1051 | cd ${SETTE_DIR} |
---|
| 1052 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1053 | |
---|
| 1054 | cd ${SETTE_DIR} |
---|
[7646] | 1055 | export TEST_NAME="REPRO_8_4" |
---|
[4990] | 1056 | . ./prepare_exe_dir.sh |
---|
[10755] | 1057 | set_valid_dir |
---|
[10698] | 1058 | clean_valid_dir |
---|
[4990] | 1059 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[7646] | 1060 | NPROC=32 |
---|
[4990] | 1061 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1062 | cd ${EXE_DIR} |
---|
[9019] | 1063 | set_namelist namelist_cfg cn_exp \"O2L3OBS_84\" |
---|
[4990] | 1064 | set_namelist namelist_cfg nn_it000 1 |
---|
[10750] | 1065 | set_namelist namelist_cfg nn_itend 80 |
---|
[7646] | 1066 | set_namelist namelist_cfg ln_read_cfg .true. |
---|
| 1067 | set_namelist namelist_cfg jpni 8 |
---|
| 1068 | set_namelist namelist_cfg jpnj 4 |
---|
[10573] | 1069 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1070 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 1071 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
| 1072 | set_namelist namelist_cfg sn_cfctl%l_trcstat .true. |
---|
[6140] | 1073 | set_namelist namelist_cfg ln_diaobs .true. |
---|
[4990] | 1074 | set_namelist namelist_cfg ln_t3d .true. |
---|
| 1075 | set_namelist namelist_cfg ln_s3d .true. |
---|
| 1076 | set_namelist namelist_cfg ln_sst .true. |
---|
| 1077 | set_namelist namelist_cfg ln_sla .true. |
---|
[6140] | 1078 | set_namelist namelist_cfg ln_sic .true. |
---|
| 1079 | set_namelist namelist_cfg ln_vel3d .true. |
---|
[4990] | 1080 | set_namelist namelist_cfg ln_bkgwri .true. |
---|
| 1081 | set_namelist namelist_cfg ln_trainc .true. |
---|
| 1082 | set_namelist namelist_cfg ln_dyninc .true. |
---|
| 1083 | set_namelist namelist_cfg ln_sshinc .true. |
---|
| 1084 | set_namelist namelist_cfg ln_asmiau .true. |
---|
[9663] | 1085 | #remove all useless options for pisces (due to ORCA2_ICE_PISCES reference configuration) |
---|
[7722] | 1086 | set_namelist namelist_top_cfg ln_trcdta .false. |
---|
| 1087 | # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false |
---|
| 1088 | # if not you need input files, and for tests is not necessary |
---|
| 1089 | set_namelist namelist_pisces_cfg ln_presatm .false. |
---|
| 1090 | set_namelist namelist_pisces_cfg ln_varpar .false. |
---|
| 1091 | set_namelist namelist_pisces_cfg ln_dust .false. |
---|
| 1092 | set_namelist namelist_pisces_cfg ln_solub .false. |
---|
| 1093 | set_namelist namelist_pisces_cfg ln_river .false. |
---|
| 1094 | set_namelist namelist_pisces_cfg ln_ndepo .false. |
---|
| 1095 | set_namelist namelist_pisces_cfg ln_ironsed .false. |
---|
| 1096 | set_namelist namelist_pisces_cfg ln_ironice .false. |
---|
| 1097 | set_namelist namelist_pisces_cfg ln_hydrofe .false. |
---|
[4990] | 1098 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1099 | set_xio_using_server iodef.xml true |
---|
| 1100 | else |
---|
| 1101 | set_xio_using_server iodef.xml false |
---|
| 1102 | fi |
---|
| 1103 | cd ${SETTE_DIR} |
---|
[10755] | 1104 | . ./prepare_job.sh input_ORCA2_ICE_OBS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[4990] | 1105 | cd ${SETTE_DIR} |
---|
| 1106 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1107 | fi |
---|
[5589] | 1108 | |
---|
[9483] | 1109 | # ------------ |
---|
[9663] | 1110 | # AGRIF ICE |
---|
[9483] | 1111 | # ----------- |
---|
[10747] | 1112 | if [ ${config} == "AGRIF" ] ; then |
---|
[9518] | 1113 | ## Restartability tests |
---|
[9483] | 1114 | export TEST_NAME="LONG" |
---|
[9658] | 1115 | cd ${MAIN_DIR} |
---|
[10687] | 1116 | . ./makenemo -m ${CMP_NAM} -n AGRIF_DEMO_ST -r AGRIF_DEMO -j 8 add_key ${ADD_KEYS} del_key ${DEL_KEYS} |
---|
[9483] | 1117 | cd ${SETTE_DIR} |
---|
| 1118 | . ./param.cfg |
---|
| 1119 | . ./all_functions.sh |
---|
| 1120 | . ./prepare_exe_dir.sh |
---|
[10755] | 1121 | set_valid_dir |
---|
[10698] | 1122 | clean_valid_dir |
---|
[9483] | 1123 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
[9776] | 1124 | NPROC=16 |
---|
[9483] | 1125 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1126 | cd ${EXE_DIR} |
---|
| 1127 | set_namelist namelist_cfg cn_exp \"AGRIF_LONG\" |
---|
| 1128 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1129 | set_namelist namelist_cfg nn_itend 20 |
---|
| 1130 | set_namelist namelist_cfg nn_stock 10 |
---|
[10573] | 1131 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1132 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 1133 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9483] | 1134 | set_namelist 1_namelist_cfg cn_exp \"AGRIF_LONG\" |
---|
| 1135 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
[9776] | 1136 | set_namelist 1_namelist_cfg nn_itend 20 |
---|
| 1137 | set_namelist 1_namelist_cfg nn_stock 10 |
---|
[10573] | 1138 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 1139 | set_namelist 1_namelist_cfg sn_cfctl%l_config .true. |
---|
| 1140 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9483] | 1141 | set_namelist 2_namelist_cfg cn_exp \"AGRIF_LONG\" |
---|
| 1142 | set_namelist 2_namelist_cfg nn_it000 1 |
---|
[9776] | 1143 | set_namelist 2_namelist_cfg nn_itend 80 |
---|
| 1144 | set_namelist 2_namelist_cfg nn_stock 40 |
---|
[10573] | 1145 | set_namelist 2_namelist_cfg ln_ctl .false. |
---|
| 1146 | set_namelist 2_namelist_cfg sn_cfctl%l_config .true. |
---|
| 1147 | set_namelist 2_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9776] | 1148 | set_namelist 3_namelist_cfg cn_exp \"AGRIF_LONG\" |
---|
| 1149 | set_namelist 3_namelist_cfg nn_it000 1 |
---|
| 1150 | set_namelist 3_namelist_cfg nn_itend 240 |
---|
| 1151 | set_namelist 3_namelist_cfg nn_stock 120 |
---|
[10573] | 1152 | set_namelist 3_namelist_cfg ln_ctl .false. |
---|
| 1153 | set_namelist 3_namelist_cfg sn_cfctl%l_config .true. |
---|
| 1154 | set_namelist 3_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9507] | 1155 | |
---|
[9483] | 1156 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1157 | set_xio_using_server iodef.xml true |
---|
| 1158 | else |
---|
| 1159 | set_xio_using_server iodef.xml false |
---|
| 1160 | fi |
---|
| 1161 | cd ${SETTE_DIR} |
---|
[10755] | 1162 | . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9483] | 1163 | |
---|
| 1164 | cd ${SETTE_DIR} |
---|
| 1165 | export TEST_NAME="SHORT" |
---|
| 1166 | . ./prepare_exe_dir.sh |
---|
[10755] | 1167 | set_valid_dir |
---|
[10698] | 1168 | clean_valid_dir |
---|
[9483] | 1169 | cd ${EXE_DIR} |
---|
| 1170 | set_namelist namelist_cfg cn_exp \"AGRIF_SHORT\" |
---|
| 1171 | set_namelist namelist_cfg nn_it000 11 |
---|
| 1172 | set_namelist namelist_cfg nn_itend 20 |
---|
| 1173 | set_namelist namelist_cfg nn_stock 10 |
---|
[10573] | 1174 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1175 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 1176 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9483] | 1177 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 1178 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 1179 | set_namelist 1_namelist_cfg cn_exp \"AGRIF_SHORT\" |
---|
[9776] | 1180 | set_namelist 1_namelist_cfg nn_it000 11 |
---|
| 1181 | set_namelist 1_namelist_cfg nn_itend 20 |
---|
| 1182 | set_namelist 1_namelist_cfg nn_stock 10 |
---|
[10573] | 1183 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 1184 | set_namelist 1_namelist_cfg sn_cfctl%l_config .true. |
---|
| 1185 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9483] | 1186 | set_namelist 1_namelist_cfg ln_rstart .true. |
---|
| 1187 | set_namelist 1_namelist_cfg nn_rstctl 2 |
---|
| 1188 | set_namelist 2_namelist_cfg cn_exp \"AGRIF_SHORT\" |
---|
[9776] | 1189 | set_namelist 2_namelist_cfg nn_it000 41 |
---|
| 1190 | set_namelist 2_namelist_cfg nn_itend 80 |
---|
| 1191 | set_namelist 2_namelist_cfg nn_stock 40 |
---|
[10573] | 1192 | set_namelist 2_namelist_cfg ln_ctl .false. |
---|
| 1193 | set_namelist 2_namelist_cfg sn_cfctl%l_config .true. |
---|
| 1194 | set_namelist 2_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9483] | 1195 | set_namelist 2_namelist_cfg ln_rstart .true. |
---|
| 1196 | set_namelist 2_namelist_cfg nn_rstctl 2 |
---|
[9776] | 1197 | set_namelist 3_namelist_cfg cn_exp \"AGRIF_SHORT\" |
---|
| 1198 | set_namelist 3_namelist_cfg nn_it000 121 |
---|
| 1199 | set_namelist 3_namelist_cfg nn_itend 240 |
---|
| 1200 | set_namelist 3_namelist_cfg nn_stock 120 |
---|
[10573] | 1201 | set_namelist 3_namelist_cfg ln_ctl .false. |
---|
| 1202 | set_namelist 3_namelist_cfg sn_cfctl%l_config .true. |
---|
| 1203 | set_namelist 3_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9776] | 1204 | set_namelist 3_namelist_cfg ln_rstart .true. |
---|
| 1205 | set_namelist 3_namelist_cfg nn_rstctl 2 |
---|
[9483] | 1206 | set_namelist namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000010_restart\" |
---|
| 1207 | set_namelist namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000010_restart_ice\" |
---|
[9776] | 1208 | set_namelist 1_namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000010_restart\" |
---|
| 1209 | set_namelist 1_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000010_restart_ice\" |
---|
| 1210 | set_namelist 2_namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000040_restart\" |
---|
| 1211 | set_namelist 2_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000040_restart_ice\" |
---|
| 1212 | set_namelist 3_namelist_cfg cn_ocerst_in \"AGRIF_LONG_00000120_restart\" |
---|
| 1213 | set_namelist 3_namelist_ice_cfg cn_icerst_in \"AGRIF_LONG_00000120_restart_ice\" |
---|
[9483] | 1214 | |
---|
| 1215 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 1216 | L_NPROC=$(( $i - 1 )) |
---|
| 1217 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
| 1218 | ln -sf ../LONG/AGRIF_LONG_00000010_restart_${L_NPROC}.nc . |
---|
| 1219 | ln -sf ../LONG/AGRIF_LONG_00000010_restart_ice_${L_NPROC}.nc . |
---|
[9776] | 1220 | ln -sf ../LONG/1_AGRIF_LONG_00000010_restart_${L_NPROC}.nc . |
---|
| 1221 | ln -sf ../LONG/1_AGRIF_LONG_00000010_restart_ice_${L_NPROC}.nc . |
---|
| 1222 | ln -sf ../LONG/2_AGRIF_LONG_00000040_restart_${L_NPROC}.nc . |
---|
| 1223 | ln -sf ../LONG/2_AGRIF_LONG_00000040_restart_ice_${L_NPROC}.nc . |
---|
| 1224 | ln -sf ../LONG/3_AGRIF_LONG_00000120_restart_${L_NPROC}.nc . |
---|
| 1225 | ln -sf ../LONG/3_AGRIF_LONG_00000120_restart_ice_${L_NPROC}.nc . |
---|
[9483] | 1226 | done |
---|
| 1227 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1228 | set_xio_using_server iodef.xml true |
---|
| 1229 | else |
---|
| 1230 | set_xio_using_server iodef.xml false |
---|
| 1231 | fi |
---|
| 1232 | cd ${SETTE_DIR} |
---|
[10755] | 1233 | . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9483] | 1234 | cd ${SETTE_DIR} |
---|
| 1235 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1236 | |
---|
[9518] | 1237 | ## Reproducibility tests |
---|
[9483] | 1238 | export TEST_NAME="REPRO_4_8" |
---|
[9658] | 1239 | cd ${MAIN_DIR} |
---|
[9483] | 1240 | cd ${SETTE_DIR} |
---|
| 1241 | . ./param.cfg |
---|
| 1242 | . ./all_functions.sh |
---|
| 1243 | . ./prepare_exe_dir.sh |
---|
[10755] | 1244 | set_valid_dir |
---|
[10698] | 1245 | clean_valid_dir |
---|
[9483] | 1246 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1247 | NPROC=32 |
---|
| 1248 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1249 | cd ${EXE_DIR} |
---|
| 1250 | set_namelist namelist_cfg cn_exp \"AGRIF_48\" |
---|
| 1251 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1252 | set_namelist namelist_cfg nn_itend 20 |
---|
| 1253 | set_namelist namelist_cfg jpni 4 |
---|
| 1254 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 1255 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1256 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 1257 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9776] | 1258 | set_namelist 1_namelist_cfg cn_exp \"AGRIF_48\" |
---|
[9483] | 1259 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
[9776] | 1260 | set_namelist 1_namelist_cfg nn_itend 20 |
---|
[9483] | 1261 | set_namelist 1_namelist_cfg jpni 4 |
---|
| 1262 | set_namelist 1_namelist_cfg jpnj 8 |
---|
[10573] | 1263 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 1264 | set_namelist 1_namelist_cfg sn_cfctl%l_config .true. |
---|
| 1265 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9776] | 1266 | set_namelist 2_namelist_cfg cn_exp \"AGRIF_48\" |
---|
[9483] | 1267 | set_namelist 2_namelist_cfg nn_it000 1 |
---|
[9776] | 1268 | set_namelist 2_namelist_cfg nn_itend 80 |
---|
[9483] | 1269 | set_namelist 2_namelist_cfg jpni 4 |
---|
| 1270 | set_namelist 2_namelist_cfg jpnj 8 |
---|
[10573] | 1271 | set_namelist 2_namelist_cfg ln_ctl .false. |
---|
| 1272 | set_namelist 2_namelist_cfg sn_cfctl%l_config .true. |
---|
| 1273 | set_namelist 2_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9776] | 1274 | set_namelist 3_namelist_cfg cn_exp \"AGRIF_48\" |
---|
| 1275 | set_namelist 3_namelist_cfg nn_it000 1 |
---|
| 1276 | set_namelist 3_namelist_cfg nn_itend 240 |
---|
| 1277 | set_namelist 3_namelist_cfg jpni 4 |
---|
| 1278 | set_namelist 3_namelist_cfg jpnj 8 |
---|
[10573] | 1279 | set_namelist 3_namelist_cfg ln_ctl .false. |
---|
| 1280 | set_namelist 3_namelist_cfg sn_cfctl%l_config .true. |
---|
| 1281 | set_namelist 3_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9483] | 1282 | |
---|
| 1283 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1284 | set_xio_using_server iodef.xml true |
---|
| 1285 | else |
---|
| 1286 | set_xio_using_server iodef.xml false |
---|
| 1287 | fi |
---|
| 1288 | cd ${SETTE_DIR} |
---|
[10755] | 1289 | . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9483] | 1290 | cd ${SETTE_DIR} |
---|
| 1291 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1292 | |
---|
| 1293 | cd ${SETTE_DIR} |
---|
| 1294 | export TEST_NAME="REPRO_8_4" |
---|
| 1295 | . ./prepare_exe_dir.sh |
---|
[10755] | 1296 | set_valid_dir |
---|
[10698] | 1297 | clean_valid_dir |
---|
[9483] | 1298 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1299 | NPROC=32 |
---|
| 1300 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1301 | cd ${EXE_DIR} |
---|
| 1302 | set_namelist namelist_cfg cn_exp \"AGRIF_84\" |
---|
| 1303 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1304 | set_namelist namelist_cfg nn_itend 20 |
---|
| 1305 | set_namelist namelist_cfg jpni 8 |
---|
| 1306 | set_namelist namelist_cfg jpnj 4 |
---|
[10573] | 1307 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1308 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 1309 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9776] | 1310 | set_namelist 1_namelist_cfg cn_exp \"AGRIF_84\" |
---|
[9483] | 1311 | set_namelist 1_namelist_cfg nn_it000 1 |
---|
[9776] | 1312 | set_namelist 1_namelist_cfg nn_itend 20 |
---|
[9483] | 1313 | set_namelist 1_namelist_cfg jpni 8 |
---|
| 1314 | set_namelist 1_namelist_cfg jpnj 4 |
---|
[10573] | 1315 | set_namelist 1_namelist_cfg ln_ctl .false. |
---|
| 1316 | set_namelist 1_namelist_cfg sn_cfctl%l_config .true. |
---|
| 1317 | set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9776] | 1318 | set_namelist 2_namelist_cfg cn_exp \"AGRIF_84\" |
---|
[9483] | 1319 | set_namelist 2_namelist_cfg nn_it000 1 |
---|
[9776] | 1320 | set_namelist 2_namelist_cfg nn_itend 80 |
---|
[9483] | 1321 | set_namelist 2_namelist_cfg jpni 8 |
---|
| 1322 | set_namelist 2_namelist_cfg jpnj 4 |
---|
[10573] | 1323 | set_namelist 2_namelist_cfg ln_ctl .false. |
---|
| 1324 | set_namelist 2_namelist_cfg sn_cfctl%l_config .true. |
---|
| 1325 | set_namelist 2_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9776] | 1326 | set_namelist 3_namelist_cfg cn_exp \"AGRIF_84\" |
---|
| 1327 | set_namelist 3_namelist_cfg nn_it000 1 |
---|
| 1328 | set_namelist 3_namelist_cfg nn_itend 240 |
---|
| 1329 | set_namelist 3_namelist_cfg jpni 8 |
---|
| 1330 | set_namelist 3_namelist_cfg jpnj 4 |
---|
[10573] | 1331 | set_namelist 3_namelist_cfg ln_ctl .false. |
---|
| 1332 | set_namelist 3_namelist_cfg sn_cfctl%l_config .true. |
---|
| 1333 | set_namelist 3_namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9483] | 1334 | |
---|
| 1335 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1336 | set_xio_using_server iodef.xml true |
---|
| 1337 | else |
---|
| 1338 | set_xio_using_server iodef.xml false |
---|
| 1339 | fi |
---|
| 1340 | cd ${SETTE_DIR} |
---|
[10755] | 1341 | . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9483] | 1342 | cd ${SETTE_DIR} |
---|
| 1343 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1344 | |
---|
[9507] | 1345 | ## test code corruption with AGRIF (phase 1) ==> Compile with key_agrif but run with no zoom |
---|
| 1346 | export TEST_NAME="ORCA2" |
---|
[9658] | 1347 | cd ${MAIN_DIR} |
---|
[9483] | 1348 | cd ${SETTE_DIR} |
---|
| 1349 | . ./param.cfg |
---|
| 1350 | . ./all_functions.sh |
---|
| 1351 | . ./prepare_exe_dir.sh |
---|
[10755] | 1352 | set_valid_dir |
---|
[10698] | 1353 | clean_valid_dir |
---|
[9483] | 1354 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1355 | NPROC=32 |
---|
| 1356 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1357 | cd ${EXE_DIR} |
---|
[9507] | 1358 | set_namelist namelist_cfg cn_exp \"ORCA2\" |
---|
[9483] | 1359 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1360 | set_namelist namelist_cfg nn_itend 150 |
---|
[10573] | 1361 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1362 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 1363 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9507] | 1364 | |
---|
[9483] | 1365 | # Set the number of fine grids to zero: |
---|
| 1366 | sed -i "1s/.*/0/" ${EXE_DIR}/AGRIF_FixedGrids.in |
---|
| 1367 | |
---|
| 1368 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1369 | set_xio_using_server iodef.xml true |
---|
| 1370 | else |
---|
| 1371 | set_xio_using_server iodef.xml false |
---|
| 1372 | fi |
---|
| 1373 | cd ${SETTE_DIR} |
---|
[10755] | 1374 | . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9483] | 1375 | cd ${SETTE_DIR} |
---|
| 1376 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1377 | |
---|
| 1378 | fi |
---|
| 1379 | |
---|
[9525] | 1380 | |
---|
[9776] | 1381 | ## test code corruption with AGRIF (phase 2) ==> Compile without key_agrif (to be compared with AGRIF_DEMO_ST/ORCA2) |
---|
[10747] | 1382 | if [ ${config} == "AGRIF" ] ; then |
---|
[9507] | 1383 | export TEST_NAME="ORCA2" |
---|
[9658] | 1384 | cd ${MAIN_DIR} |
---|
[10687] | 1385 | . ./makenemo -m ${CMP_NAM} -n AGRIF_DEMO_NOAGRIF_ST -r AGRIF_DEMO -j 8 add_key ${ADD_KEYS} del_key "key_agrif" |
---|
[9483] | 1386 | cd ${SETTE_DIR} |
---|
| 1387 | . ./param.cfg |
---|
| 1388 | . ./all_functions.sh |
---|
| 1389 | . ./prepare_exe_dir.sh |
---|
[10755] | 1390 | set_valid_dir |
---|
[10698] | 1391 | clean_valid_dir |
---|
[9483] | 1392 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1393 | NPROC=32 |
---|
| 1394 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1395 | cd ${EXE_DIR} |
---|
[9507] | 1396 | set_namelist namelist_cfg cn_exp \"ORCA2\" |
---|
[9483] | 1397 | set_namelist namelist_cfg nn_it000 1 |
---|
| 1398 | set_namelist namelist_cfg nn_itend 150 |
---|
[10573] | 1399 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1400 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 1401 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9483] | 1402 | # |
---|
| 1403 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1404 | set_xio_using_server iodef.xml true |
---|
| 1405 | else |
---|
| 1406 | set_xio_using_server iodef.xml false |
---|
| 1407 | fi |
---|
| 1408 | cd ${SETTE_DIR} |
---|
[10755] | 1409 | . ./prepare_job.sh input_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9483] | 1410 | cd ${SETTE_DIR} |
---|
| 1411 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1412 | |
---|
| 1413 | fi |
---|
| 1414 | |
---|
[9553] | 1415 | # ------- |
---|
| 1416 | # SPITZ12 |
---|
| 1417 | # ------- |
---|
[10747] | 1418 | if [ ${config} == "SPITZ12" ] ; then |
---|
[9553] | 1419 | ## Restartability tests |
---|
| 1420 | export TEST_NAME="LONG" |
---|
[9658] | 1421 | cd ${MAIN_DIR} |
---|
[10687] | 1422 | . ./makenemo -m ${CMP_NAM} -n SPITZ12_ST -r SPITZ12 -j 8 add_key ${ADD_KEYS} del_key ${DEL_KEYS} |
---|
[9553] | 1423 | cd ${SETTE_DIR} |
---|
| 1424 | . ./param.cfg |
---|
| 1425 | . ./all_functions.sh |
---|
| 1426 | . ./prepare_exe_dir.sh |
---|
[10755] | 1427 | set_valid_dir |
---|
[10698] | 1428 | clean_valid_dir |
---|
[9553] | 1429 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1430 | NPROC=32 |
---|
| 1431 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1432 | cd ${EXE_DIR} |
---|
| 1433 | set_namelist namelist_cfg cn_exp \"S12_LONG\" |
---|
| 1434 | set_namelist namelist_cfg nn_it000 1 |
---|
[9744] | 1435 | set_namelist namelist_cfg nn_itend 240 |
---|
| 1436 | set_namelist namelist_cfg nn_stock 120 |
---|
| 1437 | set_namelist namelist_cfg nn_date0 20020101 |
---|
[9553] | 1438 | set_namelist namelist_cfg jpni 4 |
---|
| 1439 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 1440 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1441 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 1442 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9744] | 1443 | #set_namelist namelist_ice_cfg ln_icediachk .true. |
---|
[9553] | 1444 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1445 | set_xio_using_server iodef.xml true |
---|
| 1446 | else |
---|
| 1447 | set_xio_using_server iodef.xml false |
---|
| 1448 | fi |
---|
| 1449 | cd ${SETTE_DIR} |
---|
[10755] | 1450 | . ./prepare_job.sh input_SPITZ12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9553] | 1451 | |
---|
| 1452 | cd ${SETTE_DIR} |
---|
| 1453 | export TEST_NAME="SHORT" |
---|
| 1454 | . ./prepare_exe_dir.sh |
---|
[10755] | 1455 | set_valid_dir |
---|
[10698] | 1456 | clean_valid_dir |
---|
[9553] | 1457 | cd ${EXE_DIR} |
---|
| 1458 | set_namelist namelist_cfg cn_exp \"S12_SHORT\" |
---|
[9744] | 1459 | set_namelist namelist_cfg nn_it000 121 |
---|
| 1460 | set_namelist namelist_cfg nn_itend 240 |
---|
| 1461 | set_namelist namelist_cfg nn_stock 120 |
---|
[9553] | 1462 | set_namelist namelist_cfg ln_rstart .true. |
---|
| 1463 | set_namelist namelist_cfg nn_rstctl 2 |
---|
| 1464 | set_namelist namelist_cfg jpni 4 |
---|
| 1465 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 1466 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1467 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 1468 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9744] | 1469 | set_namelist namelist_cfg cn_ocerst_in \"S12_LONG_00000120_restart\" |
---|
| 1470 | set_namelist namelist_ice_cfg cn_icerst_in \"S12_LONG_00000120_restart_ice\" |
---|
[9553] | 1471 | for (( i=1; i<=$NPROC; i++)) ; do |
---|
| 1472 | L_NPROC=$(( $i - 1 )) |
---|
| 1473 | L_NPROC=`printf "%04d\n" ${L_NPROC}` |
---|
[9744] | 1474 | ln -sf ../LONG/S12_LONG_00000120_restart_${L_NPROC}.nc . |
---|
| 1475 | ln -sf ../LONG/S12_LONG_00000120_restart_ice_${L_NPROC}.nc . |
---|
[9553] | 1476 | done |
---|
| 1477 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1478 | set_xio_using_server iodef.xml true |
---|
| 1479 | else |
---|
| 1480 | set_xio_using_server iodef.xml false |
---|
| 1481 | fi |
---|
| 1482 | cd ${SETTE_DIR} |
---|
[10755] | 1483 | . ./prepare_job.sh input_SPITZ12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9553] | 1484 | cd ${SETTE_DIR} |
---|
| 1485 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1486 | |
---|
| 1487 | ## Reproducibility tests |
---|
| 1488 | export TEST_NAME="REPRO_4_8" |
---|
[9658] | 1489 | cd ${MAIN_DIR} |
---|
[9553] | 1490 | cd ${SETTE_DIR} |
---|
| 1491 | . ./param.cfg |
---|
| 1492 | . ./all_functions.sh |
---|
| 1493 | . ./prepare_exe_dir.sh |
---|
[10755] | 1494 | set_valid_dir |
---|
[10698] | 1495 | clean_valid_dir |
---|
[9553] | 1496 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1497 | NPROC=32 |
---|
| 1498 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1499 | cd ${EXE_DIR} |
---|
| 1500 | set_namelist namelist_cfg cn_exp \"S12_48\" |
---|
| 1501 | set_namelist namelist_cfg nn_it000 1 |
---|
[9744] | 1502 | set_namelist namelist_cfg nn_itend 120 |
---|
| 1503 | set_namelist namelist_cfg nn_date0 20020101 |
---|
[9553] | 1504 | set_namelist namelist_cfg jpni 4 |
---|
| 1505 | set_namelist namelist_cfg jpnj 8 |
---|
[10573] | 1506 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1507 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 1508 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9553] | 1509 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1510 | set_xio_using_server iodef.xml true |
---|
| 1511 | else |
---|
| 1512 | set_xio_using_server iodef.xml false |
---|
| 1513 | fi |
---|
| 1514 | cd ${SETTE_DIR} |
---|
[10755] | 1515 | . ./prepare_job.sh input_SPITZ12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9553] | 1516 | cd ${SETTE_DIR} |
---|
| 1517 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1518 | |
---|
| 1519 | cd ${SETTE_DIR} |
---|
| 1520 | export TEST_NAME="REPRO_8_4" |
---|
| 1521 | . ./prepare_exe_dir.sh |
---|
[10755] | 1522 | set_valid_dir |
---|
[10698] | 1523 | clean_valid_dir |
---|
[9553] | 1524 | JOB_FILE=${EXE_DIR}/run_job.sh |
---|
| 1525 | NPROC=32 |
---|
| 1526 | if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi |
---|
| 1527 | cd ${EXE_DIR} |
---|
| 1528 | set_namelist namelist_cfg cn_exp \"S12_84\" |
---|
| 1529 | set_namelist namelist_cfg nn_it000 1 |
---|
[9744] | 1530 | set_namelist namelist_cfg nn_itend 120 |
---|
| 1531 | set_namelist namelist_cfg nn_date0 20020101 |
---|
[9553] | 1532 | set_namelist namelist_cfg jpni 8 |
---|
| 1533 | set_namelist namelist_cfg jpnj 4 |
---|
[10573] | 1534 | set_namelist namelist_cfg ln_ctl .false. |
---|
| 1535 | set_namelist namelist_cfg sn_cfctl%l_config .true. |
---|
| 1536 | set_namelist namelist_cfg sn_cfctl%l_runstat .true. |
---|
[9553] | 1537 | if [ ${USING_MPMD} == "yes" ] ; then |
---|
| 1538 | set_xio_using_server iodef.xml true |
---|
| 1539 | else |
---|
| 1540 | set_xio_using_server iodef.xml false |
---|
| 1541 | fi |
---|
| 1542 | cd ${SETTE_DIR} |
---|
[10755] | 1543 | . ./prepare_job.sh input_SPITZ12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} |
---|
[9553] | 1544 | cd ${SETTE_DIR} |
---|
| 1545 | . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} |
---|
| 1546 | fi |
---|
| 1547 | |
---|
| 1548 | |
---|
[3520] | 1549 | done |
---|