Changeset 3680 for branches/2012/dev_MERGE_2012/NEMOGCM/SETTE/sette.sh
- Timestamp:
- 2012-11-27T15:42:24+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2012/dev_MERGE_2012/NEMOGCM/SETTE/sette.sh
r3667 r3680 41 41 # BATCH_COMMAND : name of the command for batch submission 42 42 # 43 # MPI_INTERACT :44 # 45 # for MPP tests, "no" for batch execution, "yes" for interactive execution46 # 47 # NOTE: for run with 1 process tests are run always in MPI_INTERACT="yes"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" 48 48 # 49 49 # Principal script is sette.sh, that calls … … 84 84 # 85 85 # 86 # prepare_job.sh 87 # 88 # to generate the script run_job.sh 89 # 86 90 # fcm_job.sh 87 91 # 88 # runs job in interactive or batch mode : all jobs using 1 process are run interactive, and all MPP jobs are 89 # 90 # run in batch (MPI_INTERACT="no") or interactive (MPI_INTERACT="yes") see sette.sh and BATCH_TEMPLATE directory 92 # run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes") see sette.sh and BATCH_TEMPLATE directory 91 93 # 92 94 # (note this job needs to have an input_CONFIG.cfg in which can be found input tar file) … … 121 123 # ========== 122 124 # 123 # $Id :$125 # $Id$ 124 126 # 125 127 # * creation … … 135 137 export MPIRUN_FLAG="yes" 136 138 139 137 140 # Directory to run the tests 138 141 SETTE_DIR=$(cd $(dirname "$0"); pwd) … … 150 153 do 151 154 152 # TESTS FOR GYRE _LOBSTERCONFIGURATION155 # TESTS FOR GYRE CONFIGURATION 153 156 if [ ${config} -eq 1 ] ; then 154 ## Restartability tests for GYRE _LOBSTER157 ## Restartability tests for GYRE 155 158 export TEST_NAME="LONG" 156 159 cd ${SETTE_DIR} 157 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE LOB_LONG -r GYRE_LOBSTER add_key "key_mpp_mpi"160 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_LONG -r GYRE -j 8 add_key "key_mpp_mpi" 158 161 cd ${SETTE_DIR} 159 162 . param.cfg … … 164 167 \rm ${JOB_FILE} 165 168 cd ${EXE_DIR} 166 set_namelist namelist cn_exp \"GYRE LOB_LONG\"169 set_namelist namelist cn_exp \"GYRE_LONG\" 167 170 set_namelist namelist nn_it000 1 168 171 set_namelist namelist nn_itend 120 … … 170 173 set_namelist namelist ln_clobber .true. 171 174 set_namelist namelist nn_solv 2 172 set_namelist namelist_top ln_diatrc .false.173 175 set_namelist namelist jpni 2 174 176 set_namelist namelist jpnj 2 … … 181 183 . prepare_exe_dir.sh 182 184 cd ${EXE_DIR} 183 set_namelist namelist cn_exp \"GYRE LOB_SHORT\"185 set_namelist namelist cn_exp \"GYRE_SHORT\" 184 186 set_namelist namelist nn_it000 61 185 187 set_namelist namelist nn_itend 120 … … 192 194 set_namelist namelist jpnj 2 193 195 set_namelist namelist jpnij 4 194 set_namelist namelist cn_ocerst_in \"GYRELOB_LONG_00000060_restart\" 195 set_namelist namelist_top cn_trcrst_in \"GYRELOB_LONG_00000060_restart_trc\" 196 set_namelist namelist_top ln_diatrc .false. 197 set_namelist namelist_top ln_rsttr .true. 198 set_namelist namelist_top nn_rsttr 2 196 set_namelist namelist cn_ocerst_in \"GYRE_LONG_00000060_restart\" 199 197 for (( i=1; i<=$NPROC; i++)) ; do 200 198 L_NPROC=$(( $i - 1 )) 201 199 L_NPROC=`printf "%04d\n" ${L_NPROC}` 202 ln -sf ../LONG/GYRELOB_LONG_00000060_restart_${L_NPROC}.nc . 203 ln -sf ../LONG/GYRELOB_LONG_00000060_restart_trc_${L_NPROC}.nc . 200 ln -sf ../LONG/GYRE_LONG_00000060_restart_${L_NPROC}.nc . 204 201 done 205 202 cd ${SETTE_DIR} … … 210 207 211 208 if [ ${config} -eq 2 ] ; then 212 ## Repro pducibility tests for GYRE_LOBSTER209 ## Reproducibility tests for GYRE 213 210 export TEST_NAME="REPRO_1_4" 214 211 cd ${SETTE_DIR} 215 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE LOB_4 -r GYRE_LOBSTERadd_key "key_mpp_mpi key_mpp_rep"212 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_4 -r GYRE -j 8 add_key "key_mpp_mpi key_mpp_rep" 216 213 cd ${SETTE_DIR} 217 214 . param.cfg … … 222 219 \rm ${JOB_FILE} 223 220 cd ${EXE_DIR} 224 set_namelist namelist cn_exp \"GYRE LOB_14\"221 set_namelist namelist cn_exp \"GYRE_14\" 225 222 set_namelist namelist nn_it000 1 226 223 set_namelist namelist nn_itend 60 … … 230 227 set_namelist namelist ln_clobber .true. 231 228 set_namelist namelist nn_solv 2 232 set_namelist namelist_top ln_diatrc .false.233 set_namelist namelist_top ln_trcdta .false.234 229 set_namelist namelist jpni 1 235 230 set_namelist namelist jpnj 4 … … 243 238 export TEST_NAME="REPRO_2_2" 244 239 . prepare_exe_dir.sh 245 cd ${EXE_DIR} 246 set_namelist namelist cn_exp \"GYRELOB_22\" 240 JOB_FILE=${EXE_DIR}/run_job.sh 241 NPROC=4 242 \rm $JOB_FILE 243 cd ${EXE_DIR} 244 set_namelist namelist cn_exp \"GYRE_22\" 247 245 set_namelist namelist nn_it000 1 248 246 set_namelist namelist nn_itend 60 … … 251 249 set_namelist namelist ln_clobber .true. 252 250 set_namelist namelist nn_solv 2 253 set_namelist namelist_top ln_diatrc .false.254 set_namelist namelist_top ln_trcdta .false.255 251 set_namelist namelist jpni 2 256 252 set_namelist namelist jpnj 2 … … 268 264 export TEST_NAME="LONG" 269 265 cd ${SETTE_DIR} 270 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_mpi" 266 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_mpi" 271 267 cd ${SETTE_DIR} 272 268 . param.cfg … … 290 286 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 291 287 # if not you need input files, and for tests is not necessary 292 set_namelist namelist_pisces ln_ironsed .false. 288 set_namelist namelist_pisces ln_presatm .false. 289 set_namelist namelist_pisces ln_varpar .false. 290 set_namelist namelist_pisces ln_dust .false. 291 set_namelist namelist_pisces ln_solub .false. 293 292 set_namelist namelist_pisces ln_river .false. 294 293 set_namelist namelist_pisces ln_ndepo .false. 295 set_namelist namelist_pisces ln_ dust.false.296 set_namelist namelist_pisces ln_ presatm.false.294 set_namelist namelist_pisces ln_ironsed .false. 295 set_namelist namelist_pisces ln_hydrofe .false. 297 296 cd ${SETTE_DIR} 298 297 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} … … 313 312 set_namelist namelist jpnij 4 314 313 set_namelist namelist nn_solv 2 314 set_namelist namelist_top ln_diatrc .false. 315 set_namelist namelist_top ln_rsttr .true. 316 set_namelist namelist_top nn_rsttr 2 315 317 set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart\" 316 318 set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice\" 317 319 set_namelist namelist_top cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\" 318 set_namelist namelist_top ln_diatrc .false.319 set_namelist namelist_top ln_rsttr .true.320 set_namelist namelist_top nn_rsttr 2321 320 # put ln_ironsed, ln_river, ln_ndepo, ln_dust 322 321 # if not you need input files, and for tests is not necessary 323 set_namelist namelist_pisces ln_ironsed .false. 322 set_namelist namelist_pisces ln_presatm .false. 323 set_namelist namelist_pisces ln_varpar .false. 324 set_namelist namelist_pisces ln_dust .false. 325 set_namelist namelist_pisces ln_solub .false. 324 326 set_namelist namelist_pisces ln_river .false. 325 327 set_namelist namelist_pisces ln_ndepo .false. 326 set_namelist namelist_pisces ln_dust .false. 327 set_namelist namelist_pisces ln_presatm .false. 328 set_namelist namelist_pisces ln_ironsed .false. 329 set_namelist namelist_pisces ln_hydrofe .false. 330 # put ln_pisdmp to false : no restoring to global mean value 331 set_namelist namelist_pisces ln_pisdmp .false. 328 332 for (( i=1; i<=$NPROC; i++)) ; do 329 333 L_NPROC=$(( $i - 1 )) … … 340 344 341 345 if [ ${config} -eq 4 ] ; then 342 ## Repro pducibility tests for ORCA2_LIM_PISCES346 ## Reproducibility tests for ORCA2_LIM_PISCES 343 347 export TEST_NAME="REPRO_4_4" 344 348 cd ${SETTE_DIR} 345 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_ rep key_mpp_mpi"349 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_mpi key_mpp_rep" 346 350 cd ${SETTE_DIR} 347 351 . param.cfg … … 365 369 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 366 370 # if not you need input files, and for tests is not necessary 367 set_namelist namelist_pisces ln_ironsed .false. 371 set_namelist namelist_pisces ln_presatm .false. 372 set_namelist namelist_pisces ln_varpar .false. 373 set_namelist namelist_pisces ln_dust .false. 374 set_namelist namelist_pisces ln_solub .false. 368 375 set_namelist namelist_pisces ln_river .false. 369 376 set_namelist namelist_pisces ln_ndepo .false. 370 set_namelist namelist_pisces ln_dust .false. 371 set_namelist namelist_pisces ln_presatm .false. 377 set_namelist namelist_pisces ln_ironsed .false. 378 set_namelist namelist_pisces ln_hydrofe .false. 379 # put ln_pisdmp to false : no restoring to global mean value 380 set_namelist namelist_pisces ln_pisdmp .false. 372 381 cd ${SETTE_DIR} 373 382 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} … … 378 387 export TEST_NAME="REPRO_2_8" 379 388 . prepare_exe_dir.sh 389 JOB_FILE=${EXE_DIR}/run_job.sh 390 NPROC=16 391 \rm $JOB_FILE 380 392 cd ${EXE_DIR} 381 393 set_namelist namelist nn_it000 1 382 394 set_namelist namelist nn_itend 75 383 395 set_namelist namelist nn_fwb 0 384 set_namelist namelist ln_ctl .false.385 396 set_namelist namelist ln_clobber .true. 386 397 set_namelist namelist jpni 2 … … 392 403 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 393 404 # if not you need input files, and for tests is not necessary 394 set_namelist namelist_pisces ln_ironsed .false. 405 set_namelist namelist_pisces ln_presatm .false. 406 set_namelist namelist_pisces ln_varpar .false. 407 set_namelist namelist_pisces ln_dust .false. 408 set_namelist namelist_pisces ln_solub .false. 395 409 set_namelist namelist_pisces ln_river .false. 396 410 set_namelist namelist_pisces ln_ndepo .false. 397 set_namelist namelist_pisces ln_dust .false. 398 set_namelist namelist_pisces ln_presatm .false. 411 set_namelist namelist_pisces ln_ironsed .false. 412 set_namelist namelist_pisces ln_hydrofe .false. 413 # put ln_pisdmp to false : no restoring to global mean value 414 set_namelist namelist_pisces ln_pisdmp .false. 399 415 cd ${SETTE_DIR} 400 416 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} … … 408 424 export TEST_NAME="LONG" 409 425 cd ${SETTE_DIR} 410 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_mpi key_mpp_rep" 426 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_mpi key_mpp_rep" 411 427 cd ${SETTE_DIR} 412 428 . param.cfg … … 429 445 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 430 446 # if not you need input files, and for tests is not necessary 431 set_namelist namelist_pisces ln_ironsed .false. 447 set_namelist namelist_pisces ln_presatm .false. 448 set_namelist namelist_pisces ln_varpar .false. 449 set_namelist namelist_pisces ln_dust .false. 450 set_namelist namelist_pisces ln_solub .false. 432 451 set_namelist namelist_pisces ln_river .false. 433 452 set_namelist namelist_pisces ln_ndepo .false. 434 set_namelist namelist_pisces ln_dust .false. 435 set_namelist namelist_pisces ln_presatm .false. 453 set_namelist namelist_pisces ln_ironsed .false. 454 set_namelist namelist_pisces ln_hydrofe .false. 455 # put ln_pisdmp to false : no restoring to global mean value 456 set_namelist namelist_pisces ln_pisdmp .false. 436 457 cd ${SETTE_DIR} 437 458 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} … … 440 461 export TEST_NAME="SHORT" 441 462 . prepare_exe_dir.sh 442 JOB_FILE=${EXE_DIR}/run_job.sh443 NPROC=4444 \rm $JOB_FILE445 463 cd ${EXE_DIR} 446 464 set_namelist namelist cn_exp \"OFFP_SHORT\" … … 452 470 set_namelist namelist jpnj 2 453 471 set_namelist namelist jpnij 4 454 cp ../LONG/OFFP_LONG_00000020_restart*nc .455 472 set_namelist namelist_top ln_diatrc .false. 456 473 set_namelist namelist_top ln_rsttr .true. … … 464 481 # put ln_ironsed, ln_river, ln_ndepo, ln_dust 465 482 # if not you need input files, and for tests is not necessary 466 set_namelist namelist_pisces ln_ironsed .false. 483 set_namelist namelist_pisces ln_presatm .false. 484 set_namelist namelist_pisces ln_varpar .false. 485 set_namelist namelist_pisces ln_dust .false. 486 set_namelist namelist_pisces ln_solub .false. 467 487 set_namelist namelist_pisces ln_river .false. 468 488 set_namelist namelist_pisces ln_ndepo .false. 469 set_namelist namelist_pisces ln_dust .false. 470 set_namelist namelist_pisces ln_presatm .false. 489 set_namelist namelist_pisces ln_ironsed .false. 490 set_namelist namelist_pisces ln_hydrofe .false. 491 # put ln_pisdmp to false : no restoring to global mean value 492 set_namelist namelist_pisces ln_pisdmp .false. 471 493 cd ${SETTE_DIR} 472 494 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} … … 476 498 477 499 if [ ${config} -eq 6 ] ; then 478 ## Repro pducibility tests for ORCA2_OFF_PISCES500 ## Reproducibility tests for ORCA2_OFF_PISCES 479 501 export TEST_NAME="REPRO_4_4" 480 502 cd ${SETTE_DIR} 481 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_ rep key_mpp_mpi"503 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_mpi key_mpp_rep" 482 504 cd ${SETTE_DIR} 483 505 . param.cfg … … 499 521 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 500 522 # if not you need input files, and for tests is not necessary 501 set_namelist namelist_pisces ln_ironsed .false. 523 set_namelist namelist_pisces ln_presatm .false. 524 set_namelist namelist_pisces ln_varpar .false. 525 set_namelist namelist_pisces ln_dust .false. 526 set_namelist namelist_pisces ln_solub .false. 502 527 set_namelist namelist_pisces ln_river .false. 503 528 set_namelist namelist_pisces ln_ndepo .false. 504 set_namelist namelist_pisces ln_dust .false. 505 set_namelist namelist_pisces ln_presatm .false. 529 set_namelist namelist_pisces ln_ironsed .false. 530 set_namelist namelist_pisces ln_hydrofe .false. 531 # put ln_pisdmp to false : no restoring to global mean value 532 set_namelist namelist_pisces ln_pisdmp .false. 506 533 cd ${SETTE_DIR} 507 534 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} … … 512 539 export TEST_NAME="REPRO_2_8" 513 540 . prepare_exe_dir.sh 541 JOB_FILE=${EXE_DIR}/run_job.sh 542 NPROC=16 543 \rm $JOB_FILE 514 544 cd ${EXE_DIR} 515 545 set_namelist namelist nn_it000 1 … … 524 554 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 525 555 # if not you need input files, and for tests is not necessary 526 set_namelist namelist_pisces ln_ironsed .false. 556 set_namelist namelist_pisces ln_presatm .false. 557 set_namelist namelist_pisces ln_varpar .false. 558 set_namelist namelist_pisces ln_dust .false. 559 set_namelist namelist_pisces ln_solub .false. 527 560 set_namelist namelist_pisces ln_river .false. 528 561 set_namelist namelist_pisces ln_ndepo .false. 529 set_namelist namelist_pisces ln_dust .false. 530 set_namelist namelist_pisces ln_presatm .false. 562 set_namelist namelist_pisces ln_ironsed .false. 563 set_namelist namelist_pisces ln_hydrofe .false. 564 # put ln_pisdmp to false : no restoring to global mean value 565 set_namelist namelist_pisces ln_pisdmp .false. 531 566 cd ${SETTE_DIR} 532 567 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} … … 535 570 fi 536 571 572 # TESTS FOR AMM12 CONFIGURATION 537 573 if [ ${config} -eq 7 ] ; then 538 574 ## Restartability tests for AMM12 539 575 export TEST_NAME="LONG" 540 576 cd ${SETTE_DIR} 541 . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 add_key "key_tide"577 . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 542 578 cd ${SETTE_DIR} 543 579 . param.cfg … … 556 592 set_namelist namelist nn_dyn2d 2 557 593 set_namelist namelist nn_tra_dta 0 594 set_namelist namelist cn_ocerst_in amm12.restart_20070101 558 595 set_namelist namelist jpni 8 559 596 set_namelist namelist jpnj 4 … … 591 628 592 629 if [ ${config} -eq 8 ] ; then 593 594 export TEST_NAME="REP O_8_4"595 cd ${SETTE_DIR} 596 . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 add_key "key_mpp_rep key_tide"630 ## Reproducibility tests for AMM12 631 export TEST_NAME="REPRO_8_4" 632 cd ${SETTE_DIR} 633 . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 add_key "key_mpp_rep" 597 634 cd ${SETTE_DIR} 598 635 . param.cfg … … 610 647 set_namelist namelist nn_dyn2d 2 611 648 set_namelist namelist nn_tra_dta 0 649 set_namelist namelist cn_ocerst_in amm12.restart_20070101 612 650 set_namelist namelist jpni 8 613 651 set_namelist namelist jpnj 4 … … 619 657 620 658 cd ${SETTE_DIR} 621 export TEST_NAME="REP O_4_8"659 export TEST_NAME="REPRO_4_8" 622 660 . prepare_exe_dir.sh 623 661 cd ${EXE_DIR} … … 629 667 set_namelist namelist nn_tra_dta 0 630 668 set_namelist namelist ln_clobber .true. 669 set_namelist namelist cn_ocerst_in amm12.restart_20070101 631 670 set_namelist namelist jpni 4 632 671 set_namelist namelist jpnj 8 … … 643 682 export TEST_NAME="SHORT" 644 683 cd ${SETTE_DIR} 645 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM -j 8 add_key "key_mpp_ rep key_mpp_mpikey_agrif" del_key "key_zdftmx"684 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM -j 8 add_key "key_mpp_mpi key_mpp_rep key_agrif" del_key "key_zdftmx" 646 685 cd ${SETTE_DIR} 647 686 . param.cfg
Note: See TracChangeset
for help on using the changeset viewer.