Changeset 3608
- Timestamp:
- 2012-11-19T16:40:55+01:00 (12 years ago)
- Location:
- branches/2012/dev_NOC_2012_rev3555
- Files:
-
- 11 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/2012/dev_NOC_2012_rev3555/NEMOGCM/NEMO/OPA_SRC/IOM/prtctl.F90
r3294 r3608 118 118 IF( PRESENT(tab2d_1) ) ztab2d_1(:,:) = tab2d_1(:,:) 119 119 IF( PRESENT(tab2d_2) ) ztab2d_2(:,:) = tab2d_2(:,:) 120 IF( PRESENT(tab3d_1) ) ztab3d_1(:,:,1:kdir) = tab3d_1(:,:, :)121 IF( PRESENT(tab3d_2) ) ztab3d_2(:,:,1:kdir) = tab3d_2(:,:, :)120 IF( PRESENT(tab3d_1) ) ztab3d_1(:,:,1:kdir) = tab3d_1(:,:,1:kdir) 121 IF( PRESENT(tab3d_2) ) ztab3d_2(:,:,1:kdir) = tab3d_2(:,:,1:kdir) 122 122 IF( PRESENT(mask1) ) zmask1 (:,:,:) = mask1 (:,:,:) 123 123 IF( PRESENT(mask2) ) zmask2 (:,:,:) = mask2 (:,:,:) -
branches/2012/dev_NOC_2012_rev3555/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-PW6_VARGAS
r3294 r3608 60 60 echo Directory is `pwd` 61 61 # 62 # Run the parallel MPI executable 63 # 64 echo "Running time ${MPIRUN} ./opa" 62 # Run the executable 65 63 # 66 64 if [ MPI_FLAG == "yes" ]; then 65 echo "Running time ${MPIRUN} ./opa" 67 66 time ${MPIRUN} ./opa 68 67 else 68 echo "Running time ./opa" 69 69 time ./opa 70 70 fi -
branches/2012/dev_NOC_2012_rev3555/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-X64_TITANE
r3294 r3608 54 54 # Run the parallel MPI executable 55 55 # 56 if [ MPI_FLAG == "yes" ]; then 56 57 echo "Running time ${MPIRUN} ./opa" 57 #58 if [ MPI_FLAG == "yes" ]; then59 58 time ${MPIRUN} ./opa 60 59 else 60 echo "Running time ./opa" 61 61 time ./opa 62 62 fi -
branches/2012/dev_NOC_2012_rev3555/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-ifort_MERCATOR_CLUSTER
r3294 r3608 57 57 # Run the parallel MPI executable 58 58 # 59 if [ MPI_FLAG == "yes" ]; then 59 60 echo "Running time ${MPIRUN} ./opa" 60 #61 if [ MPI_FLAG == "yes" ]; then62 61 time ${MPIRUN} ./opa 63 62 else 63 echo "Running time ./opa" 64 64 time ./opa 65 65 fi -
branches/2012/dev_NOC_2012_rev3555/NEMOGCM/SETTE/BATCH_TEMPLATE/sette_batch_template
r3294 r3608 64 64 # Run the parallel MPI executable 65 65 # 66 if [ MPI_FLAG == "yes" ]; then 66 67 echo "Running time ${MPIRUN} ./opa" 67 #68 69 if [ MPI_FLAG == "yes" ]; then70 68 time ${MPIRUN} ./opa 71 69 else 70 echo "Running time./opa" 72 71 time ./opa 73 72 fi -
branches/2012/dev_NOC_2012_rev3555/NEMOGCM/SETTE/README
r3294 r3608 32 32 IT is mandatory to have different TEST_NAME for each job run if not existing files are re-written (for example namelist) 33 33 34 fcm_job.sh needs input: input_CONFIG_NAME TOTAL_NUMBER_OF_PROCS_used TEST_NAME 34 prepare_job.sh generates the script to be executed 35 input: INPUT_FILE_CONFIG_NAME NB_PROCS TEST_NAME MPI_FLAG JOB_FILE_NAME 36 37 fcm_job.sh needs input: TOTAL_NUMBER_OF_PROCS_used JOB_FILE_NAME INTERACT_FLAG MPI_FLAG 35 38 (for example if you compile ORCA2_LIM with key_mpp_mpi 36 39 and only run short test ===> ./fcm_job input_ORCA2_LIM.cfg 4 SHORT) -
branches/2012/dev_NOC_2012_rev3555/NEMOGCM/SETTE/fcm_job.sh
r3294 r3608 6 6 # fcm_job.sh : simple job to run NEMO with fcm 7 7 ###################################################### 8 #set - x8 #set -vx 9 9 set -o posix 10 10 #set -u … … 23 23 # ======== 24 24 # 25 # :: 25 # :: lauches the script $JOB_FILE interactive or batch, one task or MPI 26 26 # 27 # $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_INTERACT MPI_FLAG27 # $ ./fcm_job.sh NUMBER_OF_PROCS JOB_FILE INTERACT MPI_FLAG 28 28 # 29 29 # … … 33 33 # Simple job for SET TESTS for NEMO (SETTE) 34 34 # 35 # get input files (if needed) : tar file 36 # (note this job needs to have an input_CONFIG.cfg in which can be found input tar file name) 37 # 38 # runs job in interactive or batch mode : all jobs using 1 process are run interactive, and all MPP jobs are 39 # 40 # run in batch (MPI_INTERACT="no") or interactive (MPI_INTERACT="yes") see sette.sh and BATCH_TEMPLATE directory 41 # 42 # and call post_test_tidyup function (that moves in NEMO_VALIDATION_DIR solver.stat, tracer.stat (for LOBSTER & PISCES) & ocean.output) 35 # 43 36 # 44 37 # EXAMPLES … … 47 40 # :: 48 41 # 49 # $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_INTERACT MPI_FLAG42 # $ ./fcm_job.sh NUMBER_OF_PROCS JOB_FILE INTERACT MPI_FLAG 50 43 # 51 # run a job of config GYRE with 1 processor SHORT test ( 5 days ) using an interactive run without mpirun 52 # $ ./fcm_job.sh input_GYRE.cfg 1 SHORT yes no 53 # 54 # run a job of config ORCA2_LIM_PISCES with 8 processors test RESTARTABILITY submitting the job to the batch queue system and using mpirun 55 # $ ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 LONG no yes 44 # run a 56 45 # 57 46 # … … 74 63 # 75 64 76 usage=" Usage : ./fcm_job.sh input_CONFIG_NAME.cfg NUMBER_OF_PROCS TEST_NAME INTERACT MPI_FLAG"77 usage=" example : ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg8 SHORT no/yes no/yes"65 usage=" Usage : ./fcm_job.sh NUMBER_OF_PROCS JOB_FILE INTERACT MPI_FLAG" 66 usage=" example : ./fcm_job.sh 8 SHORT no/yes no/yes" 78 67 79 68 80 minargcount= 269 minargcount=4 81 70 if [ ${#} -lt ${minargcount} ] 82 71 then 83 echo "not enough targuments for fcm_job.sh script"72 echo "not enough arguments for fcm_job.sh script" 84 73 echo "control number of argument of fcm_job.sh in sette.sh" 85 74 echo "${usage}" … … 94 83 export NB_PROCS=$1 95 84 export JOB_FILE=$2 85 export INTERACT=$3 86 export MPI_FLAG=$4 96 87 ################################################################ 97 88 # RUN OPA 98 89 cd ${EXE_DIR} 99 90 if [ "$INTERACT" == "yes" ]; then 91 eval $JOB_FILE 92 else if [ "$INTERACT" == "no" ]; then 100 93 # submit job to batch system 101 if [ ${NB_PROC} -eq 1]; then102 eval ${BATCH_COMMAND_SEQ} $JOB_FILE 94 if [ "$NB_PROC" == "1" ]; then 95 eval ${BATCH_COMMAND_SEQ} $JOB_FILE ; echo ${BATCH_COMMAND_SEQ} $JOB_FILE 103 96 else 104 eval ${BATCH_COMMAND_PAR} $JOB_FILE 97 eval ${BATCH_COMMAND_PAR} $JOB_FILE ; echo ${BATCH_COMMAND_PAR} $JOB_FILE 105 98 fi 106 99 fi 100 fi -
branches/2012/dev_NOC_2012_rev3555/NEMOGCM/SETTE/prepare_job.sh
r3294 r3608 6 6 # prepare_job.sh : create the job script for running job 7 7 ###################################################### 8 #set - x8 #set -vx 9 9 set -o posix 10 10 #set -u 11 11 #set -e 12 # 12 #+ 13 13 # 14 14 # ================ … … 25 25 # :: 26 26 # 27 # $ ./prepare_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_ INTERACT MPI_FLAG27 # $ ./prepare_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_FLAG JOB_FILE 28 28 # 29 29 # … … 31 31 # =========== 32 32 # 33 # Simple job for SET TESTS for NEMO (SETTE)33 # Part of the SETTE package to run tests for NEMO 34 34 # 35 # get input files (if needed) : tar file 36 # (note this job needs to have an input_CONFIG.cfg in which can be found input tar file name) 37 # 38 # runs job in interactive or batch mode : all jobs using 1 process are run interactive, and all MPP jobs are 39 # 40 # run in batch (MPI_INTERACT="no") or interactive (MPI_INTERACT="yes") see sette.sh and BATCH_TEMPLATE directory 41 # 42 # and call post_test_tidyup function (that moves in NEMO_VALIDATION_DIR solver.stat, tracer.stat (for LOBSTER & PISCES) & ocean.output) 35 # prepare the script $JOB_FILE to run the tests 43 36 # 44 37 # EXAMPLES … … 47 40 # :: 48 41 # 49 # $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_INTERACT MPI_FLAG 50 # 51 # run a job of config GYRE with 1 processor SHORT test ( 5 days ) using an interactive run without mpirun 52 # $ ./fcm_job.sh input_GYRE.cfg 1 SHORT yes no 53 # 54 # run a job of config ORCA2_LIM_PISCES with 8 processors test RESTARTABILITY submitting the job to the batch queue system and using mpirun 55 # $ ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 LONG no yes 42 # $ ./prepare_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_FLAG $JOB_FILE 43 # 44 # prepare the $JOB_FILE for execution 56 45 # 57 46 # … … 65 54 # ========== 66 55 # 67 # $Id: fcm_job.sh 3050 2011-11-07 14:11:34Z acc $56 # $Id: prepare_job.sh 3050 2011-11-07 14:11:34Z acc $ 68 57 # 69 58 # … … 74 63 # 75 64 76 usage=" Usage : ./ fcm_job.sh input_CONFIG_NAME.cfg NUMBER_OF_PROCS TEST_NAME INTERACT MPI_FLAG"77 usage=" example : ./ fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 SHORT no/yes no/yes"65 usage=" Usage : ./prepare_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_FLAG JOB_FILE" 66 usage=" example : ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg 8 SHORT no/yes $JOB_FILE" 78 67 79 68 … … 81 70 if [ ${#} -lt ${minargcount} ] 82 71 then 83 echo "not enough t arguments for fcm_job.sh script"84 echo "control number of argument of fcm_job.sh in sette.sh"72 echo "not enough arguments for prepare_job.sh script" 73 echo "control number of argument of prepare_job.sh in sette.sh" 85 74 echo "${usage}" 86 75 exit 1 … … 165 154 exit 1 166 155 fi 167 #if [ ${NB_PROC} == 1 ] ; then 168 # echo "running opa" >> ${SETTE_DIR}/output.sette 169 # echo " " >> ${SETTE_DIR}/output.sette 170 # ./opa 171 # 172 # Tidy out output from this test and populate the NEMO_VALIDATION_DIR tree 173 # 174 # post_test_tidyup 175 #else 176 # echo "running opa in MPI" >> ${SETTE_DIR}/output.sette 177 # echo " " >> ${SETTE_DIR}/output.sette 178 179 # if [ ${MPI_INTERACT} == "yes" ] ; then 180 # # 181 # # example for brodie (NEC SX8) machine 182 # # mpirun -np ${NB_PROC} opa 183 # # example for dedale machine 184 # # mpirun --mca btl self,tcp -np ${NB_PROC} opa 185 # # example for vargas (IBM Power6) machine 186 # mpiexec -n ${NB_PROC} opa 187 # # 188 # post_test_tidyup 189 # fi 190 # 156 191 157 # example for NOCS Altix system using PBS batch submission (requires ${SETTE_DIR}/sette_batch_template file) 192 158 # 193 # if [ ${MPI_ INTERACT} == "no" ] ; then159 # if [ ${MPI_FLAG} == "no" ] ; then 194 160 case ${COMPILER} in 195 161 ALTIX_NAUTILUS_MPT) … … 239 205 fi 240 206 241 chmod a+x $JOB_FILE 207 chmod a+x $JOB_FILE ; echo "$JOB_FILE is ready" 242 208 243 209 #fi -
branches/2012/dev_NOC_2012_rev3555/NEMOGCM/SETTE/sette.sh
r3294 r3608 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 # … … 129 133 #- 130 134 # Compiler among those in NEMOGCM/ARCH 131 COMPILER=PW6_ CALYPSO132 export BATCH_COMMAND_PAR=" bsub <"135 COMPILER=PW6_VARGAS 136 export BATCH_COMMAND_PAR="llsubmit" 133 137 export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR 138 export INTERACT_FLAG="no" 139 export MPIRUN_FLAG="yes" 134 140 135 141 … … 160 166 . prepare_exe_dir.sh 161 167 JOB_FILE=${EXE_DIR}/run_job.sh 162 MPIRUN_FLAG="yes"163 168 NPROC=1 164 rm $JOB_FILE169 \rm $JOB_FILE 165 170 cd ${EXE_DIR} 166 171 set_namelist namelist cn_exp \"GYRELOB_LONG\" … … 172 177 set_namelist namelist_top ln_diatrc .false. 173 178 cd ${SETTE_DIR} 179 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 174 180 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 181 cd ${SETTE_DIR} 182 . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 175 183 176 184 cd ${SETTE_DIR} … … 194 202 set_namelist namelist_top cn_trcrst_in \"GYRELOB_LONG_00000060_restart_trc\" 195 203 cd ${SETTE_DIR} 204 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 196 205 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 197 206 cd ${SETTE_DIR} 198 . ./fcm_job.sh $NPROC $JOB_FILE 207 . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 199 208 fi 200 209 … … 209 218 . prepare_exe_dir.sh 210 219 JOB_FILE=${EXE_DIR}/run_job.sh 211 MPIRUN_FLAG="yes"212 220 NPROC=4 213 rm $JOB_FILE221 \rm $JOB_FILE 214 222 cd ${EXE_DIR} 215 223 set_namelist namelist cn_exp \"GYRELOB_14\" … … 227 235 set_namelist namelist jpnij 4 228 236 cd ${SETTE_DIR} 237 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 229 238 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 230 239 cd ${SETTE_DIR} 231 . ./fcm_job.sh $NPROC $JOB_FILE 240 . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 232 241 233 242 cd ${SETTE_DIR} … … 235 244 . prepare_exe_dir.sh 236 245 JOB_FILE=${EXE_DIR}/run_job.sh 237 MPIRUN_FLAG="yes"238 246 NPROC=4 239 rm $JOB_FILE247 \rm $JOB_FILE 240 248 cd ${EXE_DIR} 241 249 set_namelist namelist cn_exp \"GYRELOB_22\" … … 252 260 set_namelist namelist jpnij 4 253 261 cd ${SETTE_DIR} 262 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 254 263 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 255 264 cd ${SETTE_DIR} 256 . ./fcm_job.sh $NPROC $JOB_FILE 265 . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 257 266 fi 258 267 … … 268 277 . prepare_exe_dir.sh 269 278 JOB_FILE=${EXE_DIR}/run_job.sh 270 MPIRUN_FLAG="yes"271 279 NPROC=1 272 rm $JOB_FILE280 \rm $JOB_FILE 273 281 cd ${EXE_DIR} 274 282 set_namelist namelist cn_exp \"O2LP_LONG\" … … 288 296 set_namelist namelist_pisces ln_presatm .false. 289 297 cd ${SETTE_DIR} 290 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 291 292 cd ${SETTE_DIR} 298 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 299 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 300 cd ${SETTE_DIR} 301 . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 302 # 293 303 export TEST_NAME="SHORT" 304 cd ${SETTE_DIR} 294 305 . prepare_exe_dir.sh 295 306 cd ${EXE_DIR} … … 319 330 set_namelist namelist_pisces ln_presatm .false. 320 331 cd ${SETTE_DIR} 332 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 321 333 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 322 334 cd ${SETTE_DIR} 323 . ./fcm_job.sh $NPROC $JOB_FILE 335 . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 324 336 fi 325 337 … … 334 346 . prepare_exe_dir.sh 335 347 JOB_FILE=${EXE_DIR}/run_job.sh 336 MPIRUN_FLAG="yes"337 348 NPROC=16 338 rm $JOB_FILE349 \rm $JOB_FILE 339 350 cd ${EXE_DIR} 340 351 set_namelist namelist nn_it000 1 … … 356 367 set_namelist namelist_pisces ln_presatm .false. 357 368 cd ${SETTE_DIR} 369 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 358 370 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 359 371 cd ${SETTE_DIR} 360 . ./fcm_job.sh $NPROC $JOB_FILE 372 . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 361 373 362 374 cd ${SETTE_DIR} … … 364 376 . prepare_exe_dir.sh 365 377 JOB_FILE=${EXE_DIR}/run_job.sh 366 MPIRUN_FLAG="yes"367 378 NPROC=16 368 rm $JOB_FILE379 \rm $JOB_FILE 369 380 cd ${EXE_DIR} 370 381 set_namelist namelist nn_it000 1 … … 386 397 set_namelist namelist_pisces ln_presatm .false. 387 398 cd ${SETTE_DIR} 399 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 388 400 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 389 401 cd ${SETTE_DIR} 390 . ./fcm_job.sh $NPROC $JOB_FILE 402 . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 391 403 fi 392 404 … … 402 414 . prepare_exe_dir.sh 403 415 JOB_FILE=${EXE_DIR}/run_job.sh 404 MPIRUN_FLAG="yes"405 416 NPROC=1 406 rm $JOB_FILE417 \rm $JOB_FILE 407 418 cd ${EXE_DIR} 408 419 set_namelist namelist cn_exp \"OFFP_LONG\" … … 421 432 set_namelist namelist_pisces ln_presatm .false. 422 433 cd ${SETTE_DIR} 434 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 423 435 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 424 436 … … 445 457 set_namelist namelist_pisces ln_presatm .false. 446 458 cd ${SETTE_DIR} 459 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 447 460 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 448 461 cd ${SETTE_DIR} 449 . ./fcm_job.sh $NPROC $JOB_FILE 462 . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 450 463 fi 451 464 … … 460 473 . prepare_exe_dir.sh 461 474 JOB_FILE=${EXE_DIR}/run_job.sh 462 MPIRUN_FLAG="yes"463 475 NPROC=16 464 rm $JOB_FILE476 \rm $JOB_FILE 465 477 cd ${EXE_DIR} 466 478 set_namelist namelist nn_it000 1 … … 480 492 set_namelist namelist_pisces ln_presatm .false. 481 493 cd ${SETTE_DIR} 494 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 482 495 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 483 496 cd ${SETTE_DIR} 484 . ./fcm_job.sh $NPROC $JOB_FILE 497 . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 485 498 486 499 cd ${SETTE_DIR} … … 488 501 . prepare_exe_dir.sh 489 502 JOB_FILE=${EXE_DIR}/run_job.sh 490 MPIRUN_FLAG="yes"491 503 NPROC=16 492 rm $JOB_FILE504 \rm $JOB_FILE 493 505 cd ${EXE_DIR} 494 506 set_namelist namelist nn_it000 1 … … 508 520 set_namelist namelist_pisces ln_presatm .false. 509 521 cd ${SETTE_DIR} 522 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 510 523 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 511 524 cd ${SETTE_DIR} 512 . ./fcm_job.sh $NPROC $JOB_FILE 525 . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 513 526 fi 514 527 … … 524 537 . prepare_exe_dir.sh 525 538 JOB_FILE=${EXE_DIR}/run_job.sh 526 MPIRUN_FLAG="yes"527 539 NPROC=32 528 rm $JOB_FILE540 \rm $JOB_FILE 529 541 cd ${EXE_DIR} 530 542 set_namelist namelist nn_it000 1 … … 539 551 set_namelist namelist jpnij 32 540 552 cd ${SETTE_DIR} 553 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 541 554 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 542 555 cd ${SETTE_DIR} 543 . ./fcm_job.sh $NPROC $JOB_FILE 556 . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 544 557 545 558 cd ${SETTE_DIR} … … 547 560 . prepare_exe_dir.sh 548 561 JOB_FILE=${EXE_DIR}/run_job.sh 549 MPIRUN_FLAG="yes"550 562 NPROC=32 551 rm $JOB_FILE563 \rm $JOB_FILE 552 564 cd ${EXE_DIR} 553 565 set_namelist namelist nn_it000 1 … … 562 574 set_namelist namelist jpnij 32 563 575 cd ${SETTE_DIR} 576 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 564 577 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 565 578 cd ${SETTE_DIR} 566 . ./fcm_job.sh $NPROC $JOB_FILE 579 . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 567 580 fi 568 581 … … 577 590 . prepare_exe_dir.sh 578 591 JOB_FILE=${EXE_DIR}/run_job.sh 579 MPIRUN_FLAG="yes"580 592 NPROC=32 581 rm $JOB_FILE593 \rm $JOB_FILE 582 594 cd ${EXE_DIR} 583 595 set_namelist namelist nn_it000 1 … … 593 605 set_namelist namelist jpnij 32 594 606 cd ${SETTE_DIR} 607 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 595 608 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 609 cd ${SETTE_DIR} 610 . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 596 611 597 612 cd ${SETTE_DIR} … … 613 628 set_namelist namelist cn_ocerst_in \"../LONG/AMM12_00000006_restart\" 614 629 cd ${SETTE_DIR} 630 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 615 631 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 616 632 cd ${SETTE_DIR} 617 . ./fcm_job.sh $NPROC $JOB_FILE 633 . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 618 634 fi 619 635 … … 629 645 . prepare_exe_dir.sh 630 646 JOB_FILE=${EXE_DIR}/run_job.sh 631 MPIRUN_FLAG="yes"632 647 NPROC=2 633 rm $JOB_FILE648 \rm $JOB_FILE 634 649 cd ${EXE_DIR} 635 650 set_namelist namelist nn_it000 1 … … 645 660 set_namelist 1_namelist ln_clobber .true. 646 661 cd ${SETTE_DIR} 662 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 647 663 . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 648 664 cd ${SETTE_DIR} 649 . ./fcm_job.sh $NPROC $JOB_FILE 665 . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 650 666 fi 651 667 -
branches/2012/dev_NOC_2012_rev3555/NEMOGCM/SETTE/sette_beginner.sh
r3294 r3608 11 11 # 12 12 ############################################################# 13 #set - x13 #set -vx 14 14 set -o posix 15 15 #set -u … … 39 39 # Compiler among those in NEMOGCM/ARCH 40 40 COMPILER=PW6_VARGAS 41 export BATCH_COMMAND=llsubmit 42 export MPI_INTERACT="no" 41 export BATCH_COMMAND_PAR="llsubmit" 42 export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR 43 # export MPI_INTERACT="no" 43 44 44 45 # Directory to run the tests … … 57 58 # small test to start 58 59 # compile GYRE configuration with gfortran_osx compiler run with 1 proc, by default in cpp_GYRE.fcm file : 59 export TEST_NAME="TEST0 1"60 export TEST_NAME="TEST02" 60 61 cd ${SETTE_DIR} 61 62 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_SHORT -r GYRE … … 65 66 # creation of execution directory 66 67 . prepare_exe_dir.sh 68 JOB_FILE=${EXE_DIR}/run_job.sh 67 69 cd ${EXE_DIR} 68 70 # setting namelist parameters … … 75 77 # frequency of creation of a restart file 76 78 set_namelist namelist nn_stock 60 79 77 80 cd ${SETTE_DIR} 81 # . ./prepare_job.sh input_file_config_name NB_PROCS TEST_NAME MPI_FLAG JOB_FILE 82 . ./prepare_job.sh input_GYRE.cfg 1 SHORT no $JOB_FILE 78 83 # run job, with 1 processor, test named SHORT (= 60 time steps) 79 . ./fcm_job.sh input_GYRE.cfg 1 ${TEST_NAME} 84 #. ./fcm_job.sh NB_PROCS JOB_FILE INTERACT_FLAG MPI_FLAG 85 cd ${SETTE_DIR} 86 . ./fcm_job.sh 1 $JOB_FILE no no 87
Note: See TracChangeset
for help on using the changeset viewer.