- Timestamp:
- 2013-11-19T12:19:21+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2013/dev_LOCEAN_CMCC_INGV_MERC_UKMO_2013/NEMOGCM/SETTE/sette.sh
r4242 r4245 2 2 ############################################################ 3 3 # Author : Simona Flavoni for NEMO 4 # Contact : sflod@locean-ipsl.upmc.fr 4 # Contact: sflod@locean-ipsl.upmc.fr 5 # 2013 : A.C. Coward added options for testing with XIOS in dettached mode 5 6 # 6 7 # sette.sh : principal script of SET TEsts for NEMO (SETTE) … … 15 16 #set -u 16 17 #set -e 17 #+ 18 # 19 # ================ 20 # sette.sh 21 # ================ 22 # 23 # ---------------------------------------------- 24 # Set of tests for NEMO 25 # ---------------------------------------------- 26 # 27 # SYNOPSIS 28 # ======== 29 # 30 # :: 31 # 32 # $ ./sette.sh 33 # 18 # =========== 34 19 # DESCRIPTION 35 20 # =========== … … 37 22 # Variables to be checked by user: 38 23 # 39 # COMPILER : name of compiler as defined in NEMOGCM/ARCH directory 40 # 41 # BATCH_COMMAND : name of the command for batch submission 42 # 43 # INTERACT_FLAG : flag to run in interactive mode "yes" 44 # to run in batch mode "no" 45 # 46 # MPIRUN_FLAG : flag to run in parallel (MPI) "yes" 47 # to run in sequential mode (NB_PROC = 1) "no" 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" 48 40 # 49 41 # Principal script is sette.sh, that calls 50 42 # 51 # makenemo 52 # 53 # creates the exectuable in ${CONFIG_NAME}/BLD/bin/nemo.exe (and its link opa in ${CONFIG_NAME}/EXP00) 43 # makenemo : to create successive exectuables in ${CONFIG_NAME}/BLD/bin/nemo.exe 44 # and links to opa in ${CONFIG_NAME}/EXP00) 54 45 # 55 46 # param.cfg : sets and loads following directories: 56 47 # 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) 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) 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 # 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 58 # (solver.stat and ocean.output) in it after execution of test. 59 # 60 # VALIDATION tree is: 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 65 # execution directory takes name of TEST_NAME defined for every test 66 # in sette.sh. (each test in executed in its own directory) 67 # 68 # prepare_job.sh : to generate the script run_job.sh 69 # 70 # fcm_job.sh : run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes") 71 # see sette.sh and BATCH_TEMPLATE directory 72 # 73 # NOTE: jobs requiring initial or forcing data need to have an input_CONFIG.cfg in which 74 # can be found paths to the input tar file) 75 # NOTE: if job is not launched for any reason you have the executable ready in ${EXE_DIR} 76 # directory 77 # NOTE: the changed namelists are left in ${EXE_DIR} directory whereas original namelists 78 # remain in ${NEW_CONF}/EXP00 62 79 # 63 # NEMO_VALIDATION_DIR : is the validation directory 64 # 65 # (NOTE: this file is the same for all configrations to be tested with sette) 66 # 67 # 68 # all_functions.sh : loads functions used by sette (note: new functions can be added here) 69 # 70 # set_namelist : function declared in all_functions that set namelist parameters for tests 71 # 72 # post_test_tidyup : creates validation storage directory and copy needed output files (solver.stat and ocean.output) in it after execution of test. 73 # 74 # Tree of VALIDATION is: 75 # 76 # NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) 77 # 78 # 79 # prepare_exe_dir.sh : defines and creates directory where the test is executed 80 # 81 # execution directory takes name of TEST_NAME defined in every test in sette.sh 82 # 83 # ( each test in executed in its own directory ) 84 # 85 # 86 # prepare_job.sh 87 # 88 # to generate the script run_job.sh 89 # 90 # fcm_job.sh 91 # 92 # run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes") see sette.sh and BATCH_TEMPLATE directory 93 # 94 # (note this job needs to have an input_CONFIG.cfg in which can be found input tar file) 95 # 96 # NOTE: if job is not launched for some problems you have executable ready in ${EXE_DIR} directory 97 # 98 # NOTE: the changed namelists are leaved in ${EXE_DIR} directory whereas original namelist remains in ${NEW_CONF}/EXP00 99 # 100 # in ${SETTE_DIR} is created output.sette with the echo of executed commands 101 # 102 # if sette.sh is stopped in output.sette there is written the last command executed by sette.sh 103 # 104 # if you run: ./sette.sh 2>&1 | tee out.sette 105 # 106 # in ${SETTE_DIR} out.sette is redirected standard error & standard output 107 # 108 # 109 # EXAMPLES 110 # ======== 111 # 112 # :: 113 # 114 # $ ./sette.sh 115 # 116 # 117 # TODO 118 # ==== 119 # 120 # option debug 121 # 122 # EVOLUTIONS 123 # ========== 124 # 125 # $Id$ 126 # 127 # * creation 128 # 129 #- 130 # 131 #- 80 # NOTE: a log file, output.sette, is created in ${SETTE_DIR} with the echoes of 81 # executed commands 82 # 83 # NOTE: if sette.sh is stopped in output.sette there is written the last command 84 # executed by sette.sh 85 # 86 # example use: ./sette.sh 87 ######################################################################################### 88 # 132 89 # Compiler among those in NEMOGCM/ARCH 133 90 COMPILER=x3750_ADA … … 136 93 export INTERACT_FLAG="no" 137 94 export MPIRUN_FLAG="yes" 138 # IF YOU DON'T WANT TO USE XIOS : (this is a list of keys to be delete) 139 #export KEY_XIOS="key_iomput" 140 # IF YOU WANT TO USE XIOS : 141 export KEY_XIOS="" 142 95 export USING_XIOS="yes" 96 # 97 export DEL_KEYS="key_iomput" 98 if [ ${USING_XIOS} == "yes" ] 99 then 100 export DEL_KEYS="" 101 fi 102 # 103 # Settings which control the use of stand alone servers (only relevant if using xios) 104 # 105 export USING_MPMD="no" 106 export NUM_XIOSERVERS=4 107 export JOB_PREFIX=batch-mpmd 108 # 109 if [ ${USING_MPMD} == "no" ] 110 then 111 export NUM_XIOSERVERS=0 112 export JOB_PREFIX=batch 113 fi 114 # 115 # 116 if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no"] 117 then 118 echo "Incompatible choices. MPMD mode requires the XIOS server" 119 exit 120 fi 121 # 143 122 144 123 # Directory to run the tests … … 152 131 # Copy job_batch_COMPILER file for specific compiler into job_batch_template 153 132 cd ${SETTE_DIR} 154 cp BATCH_TEMPLATE/ batch-${COMPILER} job_batch_template || exit133 cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit 155 134 156 135 for config in 1 2 3 4 5 6 7 8 9 10 11 … … 163 142 export TEST_NAME="LONG" 164 143 cd ${CONFIG_DIR} 165 . ./makenemo -m ${CMP_NAM} -n GYRE_LONG -r GYRE -j 8 add_key "key_mpp_mpi" del_key ${KEY_XIOS}144 . ./makenemo -m ${CMP_NAM} -n GYRE_LONG -r GYRE -j 8 del_key ${DEL_KEYS} 166 145 cd ${SETTE_DIR} 167 146 . param.cfg … … 170 149 JOB_FILE=${EXE_DIR}/run_job.sh 171 150 NPROC=4 172 \rm ${JOB_FILE}151 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 173 152 cd ${EXE_DIR} 174 153 set_namelist namelist_cfg cn_exp \"GYRE_LONG\" … … 181 160 set_namelist namelist_cfg jpnj 2 182 161 set_namelist namelist_cfg jpnij 4 183 cd ${SETTE_DIR} 184 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 162 if [ ${USING_MPMD} == "yes" ] ; then 163 set_xio_using_server iodef.xml true 164 else 165 set_xio_using_server iodef.xml false 166 fi 167 cd ${SETTE_DIR} 168 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 185 169 186 170 cd ${SETTE_DIR} … … 200 184 set_namelist namelist_cfg jpnij 4 201 185 set_namelist namelist_cfg cn_ocerst_in \"GYRE_LONG_00000060_restart\" 186 if [ ${USING_MPMD} == "yes" ] ; then 187 set_xio_using_server iodef.xml true 188 else 189 set_xio_using_server iodef.xml false 190 fi 202 191 for (( i=1; i<=$NPROC; i++)) ; do 203 192 L_NPROC=$(( $i - 1 )) … … 205 194 ln -sf ../LONG/GYRE_LONG_00000060_restart_${L_NPROC}.nc . 206 195 done 207 cd ${SETTE_DIR} 208 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 196 if [ ${USING_MPMD} == "yes" ] ; then 197 set_xio_using_server iodef.xml true 198 else 199 set_xio_using_server iodef.xml false 200 fi 201 cd ${SETTE_DIR} 202 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 209 203 cd ${SETTE_DIR} 210 204 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} … … 215 209 export TEST_NAME="REPRO_1_4" 216 210 cd ${CONFIG_DIR} 217 . ./makenemo -m ${CMP_NAM} -n GYRE_4 -r GYRE -j 8 add_key "key_mpp_ mpi key_mpp_rep" del_key ${KEY_XIOS}211 . ./makenemo -m ${CMP_NAM} -n GYRE_4 -r GYRE -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} 218 212 cd ${SETTE_DIR} 219 213 . param.cfg … … 222 216 JOB_FILE=${EXE_DIR}/run_job.sh 223 217 NPROC=4 224 \rm ${JOB_FILE}218 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 225 219 cd ${EXE_DIR} 226 220 set_namelist namelist_cfg cn_exp \"GYRE_14\" … … 235 229 set_namelist namelist_cfg jpnj 4 236 230 set_namelist namelist_cfg jpnij 4 237 cd ${SETTE_DIR} 238 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 231 if [ ${USING_MPMD} == "yes" ] ; then 232 set_xio_using_server iodef.xml true 233 else 234 set_xio_using_server iodef.xml false 235 fi 236 cd ${SETTE_DIR} 237 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 239 238 cd ${SETTE_DIR} 240 239 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} … … 245 244 JOB_FILE=${EXE_DIR}/run_job.sh 246 245 NPROC=4 247 \rm $JOB_FILE246 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 248 247 cd ${EXE_DIR} 249 248 set_namelist namelist_cfg cn_exp \"GYRE_22\" … … 257 256 set_namelist namelist_cfg jpnj 2 258 257 set_namelist namelist_cfg jpnij 4 259 cd ${SETTE_DIR} 260 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 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 263 cd ${SETTE_DIR} 264 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 261 265 cd ${SETTE_DIR} 262 266 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} … … 269 273 export TEST_NAME="LONG" 270 274 cd ${CONFIG_DIR} 271 . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_mpi" del_key ${KEY_XIOS}275 . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8 del_key ${DEL_KEYS} 272 276 cd ${SETTE_DIR} 273 277 . param.cfg … … 276 280 JOB_FILE=${EXE_DIR}/run_job.sh 277 281 NPROC=4 278 \rm ${JOB_FILE}282 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 279 283 cd ${EXE_DIR} 280 284 set_namelist namelist_cfg cn_exp \"O2LP_LONG\" … … 299 303 set_namelist namelist_pisces_cfg ln_ironsed .false. 300 304 set_namelist namelist_pisces_cfg ln_hydrofe .false. 301 cd ${SETTE_DIR} 302 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 305 if [ ${USING_MPMD} == "yes" ] ; then 306 set_xio_using_server iodef.xml true 307 else 308 set_xio_using_server iodef.xml false 309 fi 310 cd ${SETTE_DIR} 311 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 303 312 304 313 cd ${SETTE_DIR} … … 342 351 ln -sf ../LONG/O2LP_LONG_00000075_restart_ice_${L_NPROC}.nc . 343 352 done 344 cd ${SETTE_DIR} 345 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 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 358 cd ${SETTE_DIR} 359 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 346 360 cd ${SETTE_DIR} 347 361 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} … … 352 366 export TEST_NAME="REPRO_4_4" 353 367 cd ${CONFIG_DIR} 354 . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_ mpi key_mpp_rep" del_key ${KEY_XIOS}368 . ./makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} 355 369 cd ${SETTE_DIR} 356 370 . param.cfg … … 359 373 JOB_FILE=${EXE_DIR}/run_job.sh 360 374 NPROC=16 361 \rm $JOB_FILE375 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 362 376 cd ${EXE_DIR} 363 377 set_namelist namelist_cfg nn_it000 1 … … 384 398 # put ln_pisdmp to false : no restoring to global mean value 385 399 set_namelist namelist_pisces_cfg ln_pisdmp .false. 386 cd ${SETTE_DIR} 387 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 400 if [ ${USING_MPMD} == "yes" ] ; then 401 set_xio_using_server iodef.xml true 402 else 403 set_xio_using_server iodef.xml false 404 fi 405 cd ${SETTE_DIR} 406 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 388 407 cd ${SETTE_DIR} 389 408 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} … … 394 413 JOB_FILE=${EXE_DIR}/run_job.sh 395 414 NPROC=16 396 \rm $JOB_FILE415 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 397 416 cd ${EXE_DIR} 398 417 set_namelist namelist_cfg nn_it000 1 … … 418 437 # put ln_pisdmp to false : no restoring to global mean value 419 438 set_namelist namelist_pisces_cfg ln_pisdmp .false. 420 cd ${SETTE_DIR} 421 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 439 if [ ${USING_MPMD} == "yes" ] ; then 440 set_xio_using_server iodef.xml true 441 else 442 set_xio_using_server iodef.xml false 443 fi 444 cd ${SETTE_DIR} 445 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 422 446 cd ${SETTE_DIR} 423 447 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} … … 429 453 export TEST_NAME="LONG" 430 454 cd ${CONFIG_DIR} 431 . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_ mpi key_mpp_rep" del_key ${KEY_XIOS}455 . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} 432 456 cd ${SETTE_DIR} 433 457 . param.cfg … … 436 460 JOB_FILE=${EXE_DIR}/run_job.sh 437 461 NPROC=4 438 \rm $JOB_FILE462 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 439 463 cd ${EXE_DIR} 440 464 set_namelist namelist_cfg cn_exp \"OFFP_LONG\" … … 460 484 # put ln_pisdmp to false : no restoring to global mean value 461 485 set_namelist namelist_pisces_cfg ln_pisdmp .false. 462 cd ${SETTE_DIR} 463 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 486 if [ ${USING_MPMD} == "yes" ] ; then 487 set_xio_using_server iodef.xml true 488 else 489 set_xio_using_server iodef.xml false 490 fi 491 cd ${SETTE_DIR} 492 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 464 493 465 494 cd ${SETTE_DIR} … … 496 525 # put ln_pisdmp to false : no restoring to global mean value 497 526 set_namelist namelist_pisces_cfg ln_pisdmp .false. 498 cd ${SETTE_DIR} 499 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 527 if [ ${USING_MPMD} == "yes" ] ; then 528 set_xio_using_server iodef.xml true 529 else 530 set_xio_using_server iodef.xml false 531 fi 532 cd ${SETTE_DIR} 533 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 500 534 cd ${SETTE_DIR} 501 535 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} … … 506 540 export TEST_NAME="REPRO_4_4" 507 541 cd ${CONFIG_DIR} 508 . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_ mpi key_mpp_rep" del_key ${KEY_XIOS}542 . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} 509 543 cd ${SETTE_DIR} 510 544 . param.cfg … … 513 547 JOB_FILE=${EXE_DIR}/run_job.sh 514 548 NPROC=16 515 \rm $JOB_FILE549 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 516 550 cd ${EXE_DIR} 517 551 set_namelist namelist_cfg nn_it000 1 … … 536 570 # put ln_pisdmp to false : no restoring to global mean value 537 571 set_namelist namelist_pisces_cfg ln_pisdmp .false. 538 cd ${SETTE_DIR} 539 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 572 if [ ${USING_MPMD} == "yes" ] ; then 573 set_xio_using_server iodef.xml true 574 else 575 set_xio_using_server iodef.xml false 576 fi 577 cd ${SETTE_DIR} 578 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 540 579 cd ${SETTE_DIR} 541 580 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} … … 546 585 JOB_FILE=${EXE_DIR}/run_job.sh 547 586 NPROC=16 548 \rm $JOB_FILE587 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 549 588 cd ${EXE_DIR} 550 589 set_namelist namelist_cfg nn_it000 1 … … 569 608 # put ln_pisdmp to false : no restoring to global mean value 570 609 set_namelist namelist_pisces_cfg ln_pisdmp .false. 571 cd ${SETTE_DIR} 572 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 610 if [ ${USING_MPMD} == "yes" ] ; then 611 set_xio_using_server iodef.xml true 612 else 613 set_xio_using_server iodef.xml false 614 fi 615 cd ${SETTE_DIR} 616 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 573 617 cd ${SETTE_DIR} 574 618 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} … … 580 624 export TEST_NAME="LONG" 581 625 cd ${CONFIG_DIR} 582 . ./makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 add_key "key_tide" del_key ${ KEY_XIOS}626 . ./makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 add_key "key_tide" del_key ${DEL_KEYS} 583 627 cd ${SETTE_DIR} 584 628 . param.cfg … … 587 631 JOB_FILE=${EXE_DIR}/run_job.sh 588 632 NPROC=32 589 \rm $JOB_FILE633 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 590 634 cd ${EXE_DIR} 591 635 set_namelist namelist_cfg nn_it000 1 … … 602 646 set_namelist namelist_cfg jpnj 4 603 647 set_namelist namelist_cfg jpnij 32 604 cd ${SETTE_DIR} 605 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 648 if [ ${USING_MPMD} == "yes" ] ; then 649 set_xio_using_server iodef.xml true 650 else 651 set_xio_using_server iodef.xml false 652 fi 653 cd ${SETTE_DIR} 654 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 606 655 607 656 cd ${SETTE_DIR} … … 627 676 ln -sf ../LONG/AMM12_00000006_restart_oce_out_${L_NPROC}.nc . 628 677 done 629 cd ${SETTE_DIR} 630 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 678 if [ ${USING_MPMD} == "yes" ] ; then 679 set_xio_using_server iodef.xml true 680 else 681 set_xio_using_server iodef.xml false 682 fi 683 cd ${SETTE_DIR} 684 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 631 685 cd ${SETTE_DIR} 632 686 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} … … 637 691 export TEST_NAME="REPRO_8_4" 638 692 cd ${CONFIG_DIR} 639 . ./makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 add_key "key_mpp_rep key_tide" del_key ${ KEY_XIOS}693 . ./makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 add_key "key_mpp_rep key_tide" del_key ${DEL_KEYS} 640 694 cd ${SETTE_DIR} 641 695 . param.cfg … … 644 698 JOB_FILE=${EXE_DIR}/run_job.sh 645 699 NPROC=32 646 \rm ${JOB_FILE}700 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 647 701 cd ${EXE_DIR} 648 702 set_namelist namelist_cfg nn_it000 1 … … 657 711 set_namelist namelist_cfg jpnj 4 658 712 set_namelist namelist_cfg jpnij 32 659 cd ${SETTE_DIR} 660 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 713 if [ ${USING_MPMD} == "yes" ] ; then 714 set_xio_using_server iodef.xml true 715 else 716 set_xio_using_server iodef.xml false 717 fi 718 cd ${SETTE_DIR} 719 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 661 720 cd ${SETTE_DIR} 662 721 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} … … 677 736 set_namelist namelist_cfg jpnj 8 678 737 set_namelist namelist_cfg jpnij 32 679 cd ${SETTE_DIR} 680 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 681 cd ${SETTE_DIR} 682 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 683 fi 684 685 # TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests) 738 if [ ${USING_MPMD} == "yes" ] ; then 739 set_xio_using_server iodef.xml true 740 else 741 set_xio_using_server iodef.xml false 742 fi 743 cd ${SETTE_DIR} 744 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 745 cd ${SETTE_DIR} 746 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 747 fi 748 749 750 # TESTS FOR ORCA2_SAS_LIM CONFIGURATION 686 751 if [ ${config} -eq 9 ] ; then 687 ## ORCA2_LIM with Agulhas AGRIF zoom in MPI688 export TEST_NAME="SHORT"689 cd ${CONFIG_DIR}690 . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM -j 8 add_key "key_mpp_mpi key_mpp_rep key_agrif" del_key "key_zdftmx" del_key ${KEY_XIOS}691 cd ${SETTE_DIR}692 . param.cfg693 . all_functions.sh694 . prepare_exe_dir.sh695 JOB_FILE=${EXE_DIR}/run_job.sh696 NPROC=2697 \rm ${JOB_FILE}698 cd ${EXE_DIR}699 set_namelist namelist_cfg nn_it000 1700 set_namelist namelist_cfg nn_itend 75701 set_namelist namelist_cfg ln_ctl .false.702 set_namelist namelist_cfg ln_clobber .true.703 set_namelist namelist_cfg jpni 1704 set_namelist namelist_cfg jpnj 2705 set_namelist namelist_cfg jpnij 2706 set_namelist 1_namelist_cfg nn_it000 1707 set_namelist 1_namelist_cfg nn_itend 150708 set_namelist 1_namelist_cfg ln_ctl .false.709 set_namelist 1_namelist_cfg ln_clobber .true.710 cd ${SETTE_DIR}711 . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE}712 cd ${SETTE_DIR}713 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}714 fi715 716 # TESTS FOR ORCA2_SAS_LIM CONFIGURATION717 if [ ${config} -eq 10 ] ; then718 752 ## Restartability tests for SAS 719 753 export TEST_NAME="LONG" 720 754 cd ${CONFIG_DIR} 721 . ./makenemo -m ${CMP_NAM} -n SAS_LONG -r ORCA2_SAS_LIM -j 8 add_key " " del_key ${KEY_XIOS}755 . ./makenemo -m ${CMP_NAM} -n SAS_LONG -r ORCA2_SAS_LIM -j 8 "key_mpp_rep" del_key ${DEL_KEYS} 722 756 cd ${SETTE_DIR} 723 757 . param.cfg … … 737 771 set_namelist namelist_cfg jpnj 4 738 772 set_namelist namelist_cfg jpnij 32 739 cd ${SETTE_DIR} 740 . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 773 if [ ${USING_MPMD} == "yes" ] ; then 774 set_xio_using_server iodef.xml true 775 else 776 set_xio_using_server iodef.xml false 777 fi 778 cd ${SETTE_DIR} 779 . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 741 780 742 781 cd ${SETTE_DIR} … … 759 798 ln -sf ../LONG/SAS_00000050_restart_${L_NPROC}.nc . 760 799 done 761 cd ${SETTE_DIR} 762 . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 763 cd ${SETTE_DIR} 764 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 765 fi 766 767 if [ ${config} -eq 11 ] ; then 800 if [ ${USING_MPMD} == "yes" ] ; then 801 set_xio_using_server iodef.xml true 802 else 803 set_xio_using_server iodef.xml false 804 fi 805 cd ${SETTE_DIR} 806 . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 807 cd ${SETTE_DIR} 808 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 809 fi 810 811 if [ ${config} -eq 10 ] ; then 768 812 ## Reproducibility tests for ORCA2_SAS_LIM 769 813 export TEST_NAME="REPRO_8_4" 770 814 cd ${CONFIG_DIR} 771 . ./makenemo -m ${CMP_NAM} -n SAS_32 -r ORCA2_SAS_LIM -j 8 add_key " " del_key ${KEY_XIOS}815 . ./makenemo -m ${CMP_NAM} -n SAS_32 -r ORCA2_SAS_LIM -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} 772 816 cd ${SETTE_DIR} 773 817 . param.cfg … … 786 830 set_namelist namelist_cfg jpnj 4 787 831 set_namelist namelist_cfg jpnij 32 788 cd ${SETTE_DIR} 789 . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 790 cd ${SETTE_DIR} 791 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 792 832 if [ ${USING_MPMD} == "yes" ] ; then 833 set_xio_using_server iodef.xml true 834 else 835 set_xio_using_server iodef.xml false 836 fi 837 cd ${SETTE_DIR} 838 . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 839 cd ${SETTE_DIR} 840 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 793 841 cd ${SETTE_DIR} 794 842 export TEST_NAME="REPRO_4_8" … … 803 851 set_namelist namelist_cfg jpnj 8 804 852 set_namelist namelist_cfg jpnij 32 805 cd ${SETTE_DIR} 806 . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 807 cd ${SETTE_DIR} 808 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 809 fi 853 if [ ${USING_MPMD} == "yes" ] ; then 854 set_xio_using_server iodef.xml true 855 else 856 set_xio_using_server iodef.xml false 857 fi 858 cd ${SETTE_DIR} 859 . ./prepare_job.sh input_SAS.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 860 cd ${SETTE_DIR} 861 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 862 fi 863 864 # TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests) 865 if [ ${config} -eq 11 ] ; then 866 ## ORCA2_LIM with Agulhas AGRIF zoom in MPI 867 export TEST_NAME="SHORT" 868 cd ${CONFIG_DIR} 869 . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM -j 8 add_key "key_mpp_rep key_agrif" del_key "key_zdftmx" del_key ${DEL_KEYS} 870 cd ${SETTE_DIR} 871 . param.cfg 872 . all_functions.sh 873 . prepare_exe_dir.sh 874 JOB_FILE=${EXE_DIR}/run_job.sh 875 NPROC=2 876 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 877 cd ${EXE_DIR} 878 set_namelist namelist_cfg nn_it000 1 879 set_namelist namelist_cfg nn_itend 75 880 set_namelist namelist_cfg ln_ctl .false. 881 set_namelist namelist_cfg ln_clobber .true. 882 set_namelist namelist_cfg jpni 1 883 set_namelist namelist_cfg jpnj 2 884 set_namelist namelist_cfg jpnij 2 885 set_namelist 1_namelist_cfg nn_it000 1 886 set_namelist 1_namelist_cfg nn_itend 150 887 set_namelist 1_namelist_cfg ln_ctl .false. 888 set_namelist 1_namelist_cfg ln_clobber .true. 889 if [ ${USING_MPMD} == "yes" ] ; then 890 set_xio_using_server iodef.xml true 891 else 892 set_xio_using_server iodef.xml false 893 fi 894 cd ${SETTE_DIR} 895 . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 896 cd ${SETTE_DIR} 897 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 898 fi 899 810 900 811 901 done
Note: See TracChangeset
for help on using the changeset viewer.