Changeset 3143 for branches/2011
- Timestamp:
- 2011-11-17T16:26:08+01:00 (13 years ago)
- Location:
- branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/SETTE
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/SETTE/BATCH_TEMPLATE/sette_batch_template
r2890 r3143 14 14 # @ queue 15 15 16 # 17 # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these 18 # (via sed operating on this template job file). 19 # 20 OCEANCORES=NPROCS 21 export SETTE_DIR=DEF_SETTE_DIR 22 16 23 ############################################################### 17 24 # … … 20 27 # Local settings for machine IBM Power6 (VARGAS at IDRIS France) 21 28 # 22 export MPIRUN="mpiexec -n" 29 export MPIRUN="mpiexec -n $OCEANCORES" 30 23 31 # 24 # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these 25 # (via sed operating on this template job file). 32 # load sette functions (only post_test_tidyup needed) 26 33 # 27 OCEANCORES=NPROCS 28 export SETTE_DIR=DEF_SETTE_DIR 34 . ${SETTE_DIR}/all_functions.sh 35 36 # Don't remove neither change the following comment line 37 # BODY 38 39 29 40 # 30 41 # These variables are needed by post_test_tidyup function in all_functions.sh … … 39 50 # 40 51 # end of set up 52 53 41 54 ############################################################### 42 55 # … … 45 58 cd ${EXE_DIR} 46 59 47 #48 # load sette functions (only post_test_tidyup needed)49 #50 . ${SETTE_DIR}/all_functions.sh51 #52 60 echo Running on host `hostname` 53 61 echo Time is `date` … … 56 64 # Run the parallel MPI executable 57 65 # 58 echo "Running time ${MPIRUN} " $OCEANCORES "./opa"66 echo "Running time ${MPIRUN} ./opa" 59 67 # 60 time ${MPIRUN} " $OCEANCORES" ./opa 68 69 if [ MPI_FLAG == "yes" ]; then 70 time ${MPIRUN} ./opa 71 else 72 time ./opa 73 fi 74 75 61 76 # 62 77 post_test_tidyup 78 79 # END_BODY 80 # Don't remove neither change the previous comment line 81 63 82 exit -
branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/SETTE/fcm_job.sh
r3050 r3143 25 25 # :: 26 26 # 27 # $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME 27 # $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_INTERACT MPI_FLAG 28 28 # 29 29 # … … 47 47 # :: 48 48 # 49 # $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME 49 # $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_INTERACT MPI_FLAG 50 50 # 51 # run a job of config GYRE with 1 processor SHORT test ( 5 days ) 52 # $ ./fcm_job.sh input_GYRE.cfg 1 SHORT 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 53 # 54 # run a job of config ORCA2_LIM_PISCES with 8 processors test RESTARTABILITY 55 # $ ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 LONG 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 56 56 # 57 57 # … … 74 74 # 75 75 76 usage=" Usage : ./fcm_job.sh input_CONFIG_NAME.cfg NUMBER_OF_PROCS TEST_NAME "77 usage=" example : ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 SHORT "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" 78 78 79 79 80 minargcount= 380 minargcount=2 81 81 if [ ${#} -lt ${minargcount} ] 82 82 then … … 91 91 fi 92 92 93 #94 # set and export TEST_NAME. It will be used within the post_test_tidyup function95 #96 export TEST_NAME=$397 93 98 # export EXE_DIR. This directory is used to execute model 99 # 100 export EXE_DIR 101 # 102 # 103 echo "date: `date`" >> ${SETTE_DIR}/output.sette 104 echo "" >> ${SETTE_DIR}/output.sette 105 echo "running config: ${NEW_CONF}" >> ${SETTE_DIR}/output.sette 106 echo "" >> ${SETTE_DIR}/output.sette 107 echo "list of cpp_keys: " >> ${SETTE_DIR}/output.sette 108 echo "`more ../CONFIG/${NEW_CONF}/cpp_${NEW_CONF}.fcm`" >> ${SETTE_DIR}/output.sette 109 echo "" >> ${SETTE_DIR}/output.sette 110 echo "compiling with: ${CMP_NAM}" >> ${SETTE_DIR}/output.sette 111 echo "" >> ${SETTE_DIR}/output.sette 112 echo "executing script : \"fcm_job $@\" " >> ${SETTE_DIR}/output.sette 113 echo " " >> ${SETTE_DIR}/output.sette 114 115 ################################################################ 116 # SET INPUT 117 # get the input tarfile if needed 118 tar_file=$(sed -ne "1,1p" $1) 119 if [ "$(cat $1 | grep -c ".tar" )" -ne 0 ] ; then 120 echo "looking for tar file" >> ${SETTE_DIR}/output.sette 121 echo " " >> ${SETTE_DIR}/output.sette 122 cp ${FORCING_DIR}/${tar_file} ${INPUT_DIR}/. 123 echo "file in ${INPUT_DIR}" 124 if [ ! -f ${INPUT_DIR}/${tar_file} ] ; then 125 echo "PROBLEM during copy of tar file" >> ${SETTE_DIR}/output.sette 126 echo "tar file IS NOT present in ${INPUT_DIR} directory " >> ${SETTE_DIR}/output.sette 127 echo " " >> ${SETTE_DIR}/output.sette 128 echo "PROBLEM during copy of tar file" 129 exit 1 130 else 131 cd ${EXE_DIR} ; tar xvof ${INPUT_DIR}/*.tar ; gunzip -f *gz 132 fi 133 fi 134 135 if [ ! -f ${EXE_DIR}/namelist_ice ] ; then 136 if [ -f ${EXE_DIR}/namelist_ice_lim2 ] ; then 137 echo "choosing for namelist ice " >> ${SETTE_DIR}/output.sette 138 echo " " >> ${SETTE_DIR}/output.sette 139 cp ${EXE_DIR}/namelist_ice_lim2 ${EXE_DIR}/namelist_ice 140 elif [ -f ${EXE_DIR}/namelist_ice_lim3 ] ; then 141 cp ${EXE_DIR}/namelist_ice_lim3 ${EXE_DIR}/namelist_ice 142 fi 143 fi 144 145 146 if [ "$(cat ${CONFIG_DIR}/${NEW_CONF}/cpp_${NEW_CONF}.fcm | grep -c "agrif" )" -ne 0 ] ; then 147 #- Namelist for ocean and ice (agrif fine grid) 148 echo "choosing for namelist for AGRIF" >> ${SETTE_DIR}/output.sette 149 echo " " >> ${SETTE_DIR}/output.sette 150 cp ${EXE_DIR}/1_namelist_ice_lim2 ${EXE_DIR}/1_namelist_ice 151 fi 152 ################################################################ 153 94 export NB_PROCS=$1 95 export JOB_FILE=$2 154 96 ################################################################ 155 97 # RUN OPA 156 98 cd ${EXE_DIR} 157 NB_PROC=$2158 if [ ! -r ${EXE_DIR}/opa ]159 then160 echo "executable opa does not exist"161 echo "executable opa does not exist, exit" >> ${SETTE_DIR}/output.sette162 exit 1163 fi164 if [ ${NB_PROC} == 1 ] ; then165 echo "running opa" >> ${SETTE_DIR}/output.sette166 echo " " >> ${SETTE_DIR}/output.sette167 ./opa168 #169 # Tidy out output from this test and populate the NEMO_VALIDATION_DIR tree170 #171 post_test_tidyup172 else173 echo "running opa in MPI" >> ${SETTE_DIR}/output.sette174 echo " " >> ${SETTE_DIR}/output.sette175 99 176 if [ ${MPI_INTERACT} == "yes" ] ; then 177 # 178 # example for brodie (NEC SX8) machine 179 # mpirun -np ${NB_PROC} opa 180 # example for dedale machine 181 # mpirun --mca btl self,tcp -np ${NB_PROC} opa 182 # example for vargas (IBM Power6) machine 183 mpiexec -n ${NB_PROC} opa 184 # 185 post_test_tidyup 186 fi 187 # 188 # example for NOCS Altix system using PBS batch submission (requires ${SETTE_DIR}/sette_batch_template file) 189 # 190 if [ ${MPI_INTERACT} == "no" ] ; then 191 case ${COMPILER} in 192 ALTIX_NAUTILUS_MPT) 193 NB_REM=$( echo $NB_PROC | awk '{print $1 % 4}') 194 if [ ${NB_REM} == 0 ] ; then 195 # number of processes required is an integer multiple of 4 196 # 197 NB_NODES=$( echo $NB_PROC | awk '{print $1 / 4}') 198 else 199 # 200 # number of processes required is not an integer multiple of 4 201 # round up the number of nodes required. 202 # 203 NB_NODES=$( echo $NB_PROC | awk '{printf("%d",$1 / 4 + 1 )}') 204 fi 205 ;; 206 *) 207 NB_NODES=${NB_PROC} 208 ;; 100 # submit job to batch system 101 if [ ${NB_PROC} -eq 1 ]; then 102 eval ${BATCH_COMMAND_SEQ} $JOB_FILE 103 else 104 eval ${BATCH_COMMAND_PAR} $JOB_FILE 105 fi 209 106 210 esac211 #212 # Pass settings into job file by using sed to edit predefined strings213 #214 cat ${SETTE_DIR}/job_batch_template | sed -e"s/NODES/${NB_NODES}/" -e"s/NPROCS/${NB_PROC}/" \215 -e"s:DEF_SETTE_DIR:${SETTE_DIR}:" -e"s:DEF_INPUT_DIR:${INPUT_DIR}:" \216 -e"s:DEF_EXE_DIR:${EXE_DIR}:" \217 -e"s:DEF_CONFIG_DIR:${CONFIG_DIR}:" \218 -e"s:DEF_NEMO_VALIDATION:${NEMO_VALIDATION_DIR}:" -e"s:DEF_NEW_CONF:${NEW_CONF}:" \219 -e"s:DEF_CMP_NAM:${CMP_NAM}:" -e"s:DEF_TEST_NAME:${TEST_NAME}:" > run_sette_test.job220 #221 # submit job to batch system222 ${BATCH_COMMAND} run_sette_test.job223 fi224 225 fi -
branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/SETTE/sette.sh
r3130 r3143 129 129 #- 130 130 # Compiler among those in NEMOGCM/ARCH 131 COMPILER=X64_TITANE 132 export BATCH_COMMAND=ccc_msub 133 export MPI_INTERACT="no" 131 COMPILER=PW6_calypso 132 export BATCH_COMMAND_PAR="bsub < " 133 export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR 134 134 135 135 136 # Directory to run the tests … … 145 146 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 146 147 147 for config in 1 2 3 4 5 6 7 148 for config in 1 2 3 4 5 6 7 8 9 148 149 do 149 150 … … 153 154 export TEST_NAME="LONG" 154 155 cd ${SETTE_DIR} 155 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_LONG -r GYRE_LOBSTER 156 cd ${SETTE_DIR} 157 . param.cfg 158 . all_functions.sh 159 . prepare_exe_dir.sh 156 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_LONG -r GYRE_LOBSTER -j 8 157 cd ${SETTE_DIR} 158 . param.cfg 159 . all_functions.sh 160 . prepare_exe_dir.sh 161 JOB_FILE=${EXE_DIR}/run_job.sh 162 MPIRUN_FLAG="yes" 163 NPROC=1 164 rm $JOB_FILE 160 165 cd ${EXE_DIR} 161 166 set_namelist namelist cn_exp \"GYRELOB_LONG\" … … 167 172 set_namelist namelist_top ln_diatrc .false. 168 173 cd ${SETTE_DIR} 169 . ./ fcm_job.sh input_GYRE.cfg 1 ${TEST_NAME}174 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 170 175 171 176 cd ${SETTE_DIR} … … 181 186 set_namelist namelist ln_clobber .true. 182 187 set_namelist namelist nn_solv 2 183 cp ..\/LONG\/GYRELOB_LONG_00000060_restart*.nc . 188 ln -s -f ..\/LONG\/GYRELOB_LONG_00000060_restart.nc 189 ln -s -f ..\/LONG\/GYRELOB_LONG_00000060_restart_trc.nc 184 190 set_namelist namelist cn_ocerst_in \"GYRELOB_LONG_00000060_restart\" 185 191 set_namelist namelist_top ln_diatrc .false. … … 188 194 set_namelist namelist_top cn_trcrst_in \"GYRELOB_LONG_00000060_restart_trc\" 189 195 cd ${SETTE_DIR} 190 . ./fcm_job.sh input_GYRE.cfg 1 ${TEST_NAME} 196 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 197 cd ${SETTE_DIR} 198 . ./fcm_job.sh $NPROC $JOB_FILE 191 199 fi 192 200 … … 195 203 export TEST_NAME="REPRO_1_4" 196 204 cd ${SETTE_DIR} 197 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_4 -r GYRE_LOBSTER add_key "key_mpp_rep key_mpp_mpi" 198 cd ${SETTE_DIR} 199 . param.cfg 200 . all_functions.sh 201 . prepare_exe_dir.sh 205 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_4 -r GYRE_LOBSTER -j 8 add_key "key_mpp_rep key_mpp_mpi" 206 cd ${SETTE_DIR} 207 . param.cfg 208 . all_functions.sh 209 . prepare_exe_dir.sh 210 JOB_FILE=${EXE_DIR}/run_job.sh 211 MPIRUN_FLAG="yes" 212 NPROC=4 213 rm $JOB_FILE 202 214 cd ${EXE_DIR} 203 215 set_namelist namelist cn_exp \"GYRELOB_14\" … … 215 227 set_namelist namelist jpnij 4 216 228 cd ${SETTE_DIR} 217 . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} 229 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 230 cd ${SETTE_DIR} 231 . ./fcm_job.sh $NPROC $JOB_FILE 218 232 219 233 cd ${SETTE_DIR} 220 234 export TEST_NAME="REPRO_2_2" 221 235 . prepare_exe_dir.sh 236 JOB_FILE=${EXE_DIR}/run_job.sh 237 MPIRUN_FLAG="yes" 238 NPROC=4 239 rm $JOB_FILE 222 240 cd ${EXE_DIR} 223 241 set_namelist namelist cn_exp \"GYRELOB_22\" … … 234 252 set_namelist namelist jpnij 4 235 253 cd ${SETTE_DIR} 236 . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} 254 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 255 cd ${SETTE_DIR} 256 . ./fcm_job.sh $NPROC $JOB_FILE 237 257 fi 238 258 … … 242 262 export TEST_NAME="LONG" 243 263 cd ${SETTE_DIR} 244 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES 245 cd ${SETTE_DIR} 246 . param.cfg 247 . all_functions.sh 248 . prepare_exe_dir.sh 264 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8 265 cd ${SETTE_DIR} 266 . param.cfg 267 . all_functions.sh 268 . prepare_exe_dir.sh 269 JOB_FILE=${EXE_DIR}/run_job.sh 270 MPIRUN_FLAG="yes" 271 NPROC=1 272 rm $JOB_FILE 249 273 cd ${EXE_DIR} 250 274 set_namelist namelist cn_exp \"O2LP_LONG\" … … 265 289 set_namelist namelist_pisces ln_presatm .false. 266 290 cd ${SETTE_DIR} 267 . ./ fcm_job.sh input_ORCA2_LIM_PISCES.cfg 1 ${TEST_NAME}291 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 268 292 269 293 cd ${SETTE_DIR} … … 279 303 set_namelist namelist ln_clobber .true. 280 304 set_namelist namelist nn_solv 2 281 cp ../LONG/O2LP_LONG_00000075_restart*nc . 305 ln -s -f ../LONG/O2LP_LONG_00000075_restart.nc 306 ln -s -f ../LONG/O2LP_LONG_00000075_restart_ice.nc 307 ln -s -f ../LONG/O2LP_LONG_00000075_restart_trc.nc 282 308 set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart\" 283 309 set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice\" … … 295 321 set_namelist namelist_pisces ln_presatm .false. 296 322 cd ${SETTE_DIR} 297 . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 1 ${TEST_NAME} 323 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 324 cd ${SETTE_DIR} 325 . ./fcm_job.sh $NPROC $JOB_FILE 298 326 fi 299 327 … … 302 330 export TEST_NAME="REPRO_4_4" 303 331 cd ${SETTE_DIR} 304 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES add_key "key_mpp_rep key_mpp_mpi" 305 cd ${SETTE_DIR} 306 . param.cfg 307 . all_functions.sh 308 . prepare_exe_dir.sh 332 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_rep key_mpp_mpi" 333 cd ${SETTE_DIR} 334 . param.cfg 335 . all_functions.sh 336 . prepare_exe_dir.sh 337 JOB_FILE=${EXE_DIR}/run_job.sh 338 MPIRUN_FLAG="yes" 339 NPROC=16 340 rm $JOB_FILE 309 341 cd ${EXE_DIR} 310 342 set_namelist namelist nn_it000 1 … … 327 359 set_namelist namelist_pisces ln_presatm .false. 328 360 cd ${SETTE_DIR} 329 . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 ${TEST_NAME} 361 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 362 cd ${SETTE_DIR} 363 . ./fcm_job.sh $NPROC $JOB_FILE 330 364 331 365 cd ${SETTE_DIR} 332 366 export TEST_NAME="REPRO_2_8" 333 367 . prepare_exe_dir.sh 368 JOB_FILE=${EXE_DIR}/run_job.sh 369 MPIRUN_FLAG="yes" 370 NPROC=16 371 rm $JOB_FILE 334 372 cd ${EXE_DIR} 335 373 set_namelist namelist nn_it000 1 … … 352 390 set_namelist namelist_pisces ln_presatm .false. 353 391 cd ${SETTE_DIR} 354 . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 ${TEST_NAME} 392 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 393 cd ${SETTE_DIR} 394 . ./fcm_job.sh $NPROC $JOB_FILE 355 395 fi 356 396 … … 360 400 export TEST_NAME="LONG" 361 401 cd ${SETTE_DIR} 362 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES 363 cd ${SETTE_DIR} 364 . param.cfg 365 . all_functions.sh 366 . prepare_exe_dir.sh 402 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 403 cd ${SETTE_DIR} 404 . param.cfg 405 . all_functions.sh 406 . prepare_exe_dir.sh 407 JOB_FILE=${EXE_DIR}/run_job.sh 408 MPIRUN_FLAG="yes" 409 NPROC=1 410 rm $JOB_FILE 367 411 cd ${EXE_DIR} 368 412 set_namelist namelist cn_exp \"OFFP_LONG\" … … 382 426 set_namelist namelist_pisces ln_presatm .false. 383 427 cd ${SETTE_DIR} 384 . ./ fcm_job.sh input_ORCA2_OFF_PISCES.cfg 1 ${TEST_NAME}428 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 385 429 386 430 cd ${SETTE_DIR} … … 393 437 set_namelist namelist nn_stock 20 394 438 set_namelist namelist ln_clobber .true. 395 cp ../LONG/OFFP_LONG_00000020_restart*nc .439 ln -s ../LONG/OFFP_LONG_00000020_restart_trc.nc . 396 440 set_namelist namelist_top ln_diatrc .false. 397 441 set_namelist namelist_top ln_rsttr .true. … … 407 451 set_namelist namelist_pisces ln_presatm .false. 408 452 cd ${SETTE_DIR} 409 . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 1 ${TEST_NAME} 453 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 454 cd ${SETTE_DIR} 455 . ./fcm_job.sh $NPROC $JOB_FILE 410 456 fi 411 457 … … 414 460 export TEST_NAME="REPRO_4_4" 415 461 cd ${SETTE_DIR} 416 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES add_key "key_mpp_rep key_mpp_mpi" 417 cd ${SETTE_DIR} 418 . param.cfg 419 . all_functions.sh 420 . prepare_exe_dir.sh 462 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep key_mpp_mpi" 463 cd ${SETTE_DIR} 464 . param.cfg 465 . all_functions.sh 466 . prepare_exe_dir.sh 467 JOB_FILE=${EXE_DIR}/run_job.sh 468 MPIRUN_FLAG="yes" 469 NPROC=16 470 rm $JOB_FILE 421 471 cd ${EXE_DIR} 422 472 set_namelist namelist nn_it000 1 … … 437 487 set_namelist namelist_pisces ln_presatm .false. 438 488 cd ${SETTE_DIR} 439 . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 16 ${TEST_NAME} 489 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 490 cd ${SETTE_DIR} 491 . ./fcm_job.sh $NPROC $JOB_FILE 440 492 441 493 cd ${SETTE_DIR} 442 494 export TEST_NAME="REPRO_2_8" 443 495 . prepare_exe_dir.sh 496 JOB_FILE=${EXE_DIR}/run_job.sh 497 MPIRUN_FLAG="yes" 498 NPROC=16 499 rm $JOB_FILE 444 500 cd ${EXE_DIR} 445 501 set_namelist namelist nn_it000 1 … … 460 516 set_namelist namelist_pisces ln_presatm .false. 461 517 cd ${SETTE_DIR} 462 . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 16 ${TEST_NAME} 518 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 519 cd ${SETTE_DIR} 520 . ./fcm_job.sh $NPROC $JOB_FILE 463 521 fi 464 522 … … 468 526 export TEST_NAME="REPO_8_4" 469 527 cd ${SETTE_DIR} 470 . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 add_key "key_mpp_rep" 471 cd ${SETTE_DIR} 472 . param.cfg 473 . all_functions.sh 474 . prepare_exe_dir.sh 528 . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 add_key "key_mpp_rep" 529 cd ${SETTE_DIR} 530 . param.cfg 531 . all_functions.sh 532 . prepare_exe_dir.sh 533 JOB_FILE=${EXE_DIR}/run_job.sh 534 MPIRUN_FLAG="yes" 535 NPROC=32 536 rm $JOB_FILE 475 537 cd ${EXE_DIR} 476 538 set_namelist namelist nn_it000 1 … … 485 547 set_namelist namelist jpnij 32 486 548 cd ${SETTE_DIR} 487 . ./fcm_job.sh input_AMM12.cfg 32 ${TEST_NAME} 549 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 550 cd ${SETTE_DIR} 551 . ./fcm_job.sh $NPROC $JOB_FILE 488 552 489 553 cd ${SETTE_DIR} 490 554 export TEST_NAME="REPO_4_8" 491 555 . prepare_exe_dir.sh 556 JOB_FILE=${EXE_DIR}/run_job.sh 557 MPIRUN_FLAG="yes" 558 NPROC=32 559 rm $JOB_FILE 492 560 cd ${EXE_DIR} 493 561 set_namelist namelist nn_it000 1 … … 502 570 set_namelist namelist jpnij 32 503 571 cd ${SETTE_DIR} 504 . ./fcm_job.sh input_AMM12.cfg 32 ${TEST_NAME} 572 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 573 cd ${SETTE_DIR} 574 . ./fcm_job.sh $NPROC $JOB_FILE 505 575 fi 506 576 … … 509 579 export TEST_NAME="LONG" 510 580 cd ${SETTE_DIR} 511 . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 add_key "key_mpp_rep" 512 cd ${SETTE_DIR} 513 . param.cfg 514 . all_functions.sh 515 . prepare_exe_dir.sh 581 . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 add_key "key_mpp_rep" 582 cd ${SETTE_DIR} 583 . param.cfg 584 . all_functions.sh 585 . prepare_exe_dir.sh 586 JOB_FILE=${EXE_DIR}/run_job.sh 587 MPIRUN_FLAG="yes" 588 NPROC=32 589 rm $JOB_FILE 516 590 cd ${EXE_DIR} 517 591 set_namelist namelist nn_it000 1 … … 527 601 set_namelist namelist jpnij 32 528 602 cd ${SETTE_DIR} 529 . ./ fcm_job.sh input_AMM12.cfg 32 ${TEST_NAME}603 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 530 604 531 605 cd ${SETTE_DIR} … … 548 622 set_namelist namelist cn_ocerst_in \"AMM12_00000006_restart\" 549 623 cd ${SETTE_DIR} 550 . ./fcm_job.sh input_AMM12.cfg 32 ${TEST_NAME} 624 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 625 cd ${SETTE_DIR} 626 . ./fcm_job.sh $NPROC $JOB_FILE 551 627 fi 552 628 … … 556 632 export TEST_NAME="SHORT" 557 633 cd ${SETTE_DIR} 558 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM add_key "key_mpp_rep key_mpp_mpi key_agrif" del_key "key_zdftmx" 559 cd ${SETTE_DIR} 560 . param.cfg 561 . all_functions.sh 562 . prepare_exe_dir.sh 634 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM -j 8 add_key "key_mpp_rep key_mpp_mpi key_agrif" del_key "key_zdftmx" 635 cd ${SETTE_DIR} 636 . param.cfg 637 . all_functions.sh 638 . prepare_exe_dir.sh 639 JOB_FILE=${EXE_DIR}/run_job.sh 640 MPIRUN_FLAG="yes" 641 NPROC=2 642 rm $JOB_FILE 563 643 cd ${EXE_DIR} 564 644 set_namelist namelist nn_it000 1 … … 574 654 set_namelist 1_namelist ln_clobber .true. 575 655 cd ${SETTE_DIR} 576 . ./fcm_job.sh input_ORCA2_LIM_AGRIF.cfg 2 ${TEST_NAME} 656 . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 657 cd ${SETTE_DIR} 658 . ./fcm_job.sh $NPROC $JOB_FILE 577 659 fi 578 660
Note: See TracChangeset
for help on using the changeset viewer.