- Timestamp:
- 2014-11-28T14:59:01+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2014/dev_r4650_UKMO13_CICE_changes_take2/NEMOGCM/SETTE/sette_xios.sh
r4373 r4921 1 1 #!/bin/bash 2 2 ############################################################ 3 # Author : Simona Flavoni for NEMO4 # Contact: sflod@locean-ipsl.upmc.fr5 # 201 3 : A.C. Coward added options for testing with XIOS in dettached mode6 # 7 # sette .sh : principal script of SET TEsts for NEMO (SETTE)3 # Author : Italo Epicoco - CMCC 4 # Contact: italo.epicoco@unisalento.it 5 # 2014 : A.C. Coward added new namelist settings for GYRE configuration 6 # 7 # sette_xios.sh : additional script of SET TEsts for XIOS within NEMO 8 8 # ---------------------------------------------------------------------- 9 # NEMO/SETTE , NEMO Consortium (201 0)9 # NEMO/SETTE , NEMO Consortium (2014) 10 10 # Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 11 11 # ---------------------------------------------------------------------- … … 29 29 # MPIRUN_FLAG : flag to run in parallel (MPI) "yes" 30 30 # to run in sequential mode (NB_PROC = 1) "no" 31 # USING_XIOS : flag to control the activation of key_iomput32 # "yes" to compile using key_iomput and link to the external XIOS library33 # "no" to compile without key_iomput and link to the old IOIPSL library34 31 # 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 32 # "true" to run in MPMD (detached) mode with stand-alone IO servers 33 # "false" to run in SPMD (attached) mode without separate IO servers 38 34 # NUM_XIOSERVERS : number of stand-alone IO servers to employ 39 # set to zero if USING_MPMD=" no"40 # 41 # Principal script is sette .sh, that calls35 # set to zero if USING_MPMD="false" 36 # 37 # Principal script is sette_xios.sh, that calls 42 38 # 43 39 # makenemo : to create successive exectuables in ${CONFIG_NAME}/BLD/bin/nemo.exe … … 81 77 # executed commands 82 78 # 83 # NOTE: if sette .sh is stopped in output.sette there is written the last command84 # executed by sette .sh85 # 86 # example use: ./sette .sh79 # NOTE: if sette_xios.sh is stopped in output.sette there is written the last command 80 # executed by sette_xios.sh 81 # 82 # example use: ./sette_xios.sh 87 83 ######################################################################################### 88 84 # … … 103 99 104 100 CMP_NAM=${1:-$COMPILER} 101 # 102 #================================================================================= 105 103 # Copy job_batch_COMPILER file for specific compiler into job_batch_template 104 # Note this batch template needs to be capable of launching both SPMD and MPMD 105 # tasks with internal selection depending on the value of NUM_XIOSERVERS 106 # (0=SPMD; >0 = MPMD) 107 #================================================================================= 108 # 106 109 cd ${SETTE_DIR} 107 110 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 108 111 109 for config in 2112 for config in 1 2 110 113 111 114 do 112 115 113 # TESTS FOR GYRE CONFIGURATION 116 #========================================================== 117 # TESTS FOR XIOS USING GYRE CONFIGURATION AT LOW RESOLUTION 118 #========================================================== 119 114 120 if [ ${config} -eq 1 ] ; then 115 ## Restartability tests for GYRE 121 ## Test of XIOS configured in attached mode with multiple output files (one for each process). 122 ## $NPROC processes are used 116 123 117 124 NPROC=4 125 jp_cfg=1 126 jpni=2 127 jpnj=2 118 128 export NUM_XIOSERVERS=0 119 129 export USING_MPMD="false" … … 124 134 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_XIOS_LR -r GYRE_XIOS -j 8 125 135 cd ${SETTE_DIR} 126 . param.cfg127 . all_functions.sh128 . prepare_exe_dir.sh136 . ./param.cfg 137 . ./all_functions.sh 138 . ./prepare_exe_dir.sh 129 139 JOB_FILE=${EXE_DIR}/run_job.sh 130 140 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi … … 133 143 set_namelist namelist_cfg nn_it000 1 134 144 set_namelist namelist_cfg nn_itend 120 135 set_namelist namelist_cfg nn_stock 60 136 set_namelist namelist_cfg ln_clobber .true. 137 set_namelist namelist_cfg jp_cfg 1 138 set_namelist namelist_cfg jpni 2 139 set_namelist namelist_cfg jpnj 2 145 set_namelist namelist_cfg nn_stock 120 146 set_namelist namelist_cfg ln_clobber .true. 147 set_namelist namelist_cfg jp_cfg $jp_cfg 148 set_namelist namelist_cfg jpidta $(( $jp_cfg * 30 + 2 )) 149 set_namelist namelist_cfg jpjdta $(( $jp_cfg * 20 + 2 )) 150 set_namelist namelist_cfg jpiglo $(( $jp_cfg * 30 + 2 )) 151 set_namelist namelist_cfg jpjglo $(( $jp_cfg * 20 + 2 )) 152 set_namelist namelist_cfg jpni $jpni 153 set_namelist namelist_cfg jpnj $jpnj 140 154 set_namelist namelist_cfg jpnij $NPROC 141 155 … … 149 163 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 150 164 165 166 ## Test of XIOS configured in attached mode with a single output file. 151 167 152 168 export TEST_NAME="ATTACHED_ONE" … … 154 170 export USING_MPMD="false" 155 171 cd ${SETTE_DIR} 156 . prepare_exe_dir.sh172 . ./prepare_exe_dir.sh 157 173 JOB_FILE=${EXE_DIR}/run_job.sh 158 174 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi … … 161 177 set_namelist namelist_cfg nn_it000 1 162 178 set_namelist namelist_cfg nn_itend 120 163 set_namelist namelist_cfg nn_stock 60 164 set_namelist namelist_cfg ln_clobber .true. 165 set_namelist namelist_cfg jp_cfg 1 166 set_namelist namelist_cfg jpni 2 167 set_namelist namelist_cfg jpnj 2 179 set_namelist namelist_cfg nn_stock 120 180 set_namelist namelist_cfg ln_clobber .true. 181 set_namelist namelist_cfg jp_cfg $jp_cfg 182 set_namelist namelist_cfg jpidta $(( $jp_cfg * 30 + 2 )) 183 set_namelist namelist_cfg jpjdta $(( $jp_cfg * 20 + 2 )) 184 set_namelist namelist_cfg jpiglo $(( $jp_cfg * 30 + 2 )) 185 set_namelist namelist_cfg jpjglo $(( $jp_cfg * 20 + 2 )) 186 set_namelist namelist_cfg jpni $jpni 187 set_namelist namelist_cfg jpnj $jpnj 168 188 set_namelist namelist_cfg jpnij $NPROC 169 189 … … 177 197 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 178 198 199 200 ## Test of XIOS configured in detached mode with a single output file. 201 ## $NUM_XIOSERVERS IO server are used. 202 ## the total number of allocated cores is $NUM_XIOSERVERS + $NPROC 179 203 180 204 export TEST_NAME="DETACHED_ONE" … … 182 206 export USING_MPMD="true" 183 207 cd ${SETTE_DIR} 184 . prepare_exe_dir.sh 208 # 209 . ./prepare_exe_dir.sh 185 210 JOB_FILE=${EXE_DIR}/run_job.sh 186 211 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi … … 189 214 set_namelist namelist_cfg nn_it000 1 190 215 set_namelist namelist_cfg nn_itend 120 191 set_namelist namelist_cfg nn_stock 60 192 set_namelist namelist_cfg ln_clobber .true. 193 set_namelist namelist_cfg jp_cfg 1 194 set_namelist namelist_cfg jpni 2 195 set_namelist namelist_cfg jpnj 2 216 set_namelist namelist_cfg nn_stock 120 217 set_namelist namelist_cfg ln_clobber .true. 218 set_namelist namelist_cfg jp_cfg $jp_cfg 219 set_namelist namelist_cfg jpidta $(( $jp_cfg * 30 + 2 )) 220 set_namelist namelist_cfg jpjdta $(( $jp_cfg * 20 + 2 )) 221 set_namelist namelist_cfg jpiglo $(( $jp_cfg * 30 + 2 )) 222 set_namelist namelist_cfg jpjglo $(( $jp_cfg * 20 + 2 )) 223 set_namelist namelist_cfg jpni $jpni 224 set_namelist namelist_cfg jpnj $jpnj 196 225 set_namelist namelist_cfg jpnij $NPROC 197 226 … … 204 233 cd ${SETTE_DIR} 205 234 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 235 236 ## Test of XIOS configured in detached mode with multiple output files (one for each IO server). 237 ## $NUM_XIOSERVERS IO server are used. 238 ## the total number of allocated cores is $NUM_XIOSERVERS + $NPROC 239 206 240 207 241 export TEST_NAME="DETACHED_MULTIPLE" … … 209 243 export USING_MPMD="true" 210 244 cd ${SETTE_DIR} 211 . prepare_exe_dir.sh245 . ./prepare_exe_dir.sh 212 246 JOB_FILE=${EXE_DIR}/run_job.sh 213 247 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi … … 216 250 set_namelist namelist_cfg nn_it000 1 217 251 set_namelist namelist_cfg nn_itend 120 218 set_namelist namelist_cfg nn_stock 60 219 set_namelist namelist_cfg ln_clobber .true. 220 set_namelist namelist_cfg jp_cfg 1 221 set_namelist namelist_cfg jpni 2 222 set_namelist namelist_cfg jpnj 2 252 set_namelist namelist_cfg nn_stock 120 253 set_namelist namelist_cfg ln_clobber .true. 254 set_namelist namelist_cfg jp_cfg $jp_cfg 255 set_namelist namelist_cfg jpidta $(( $jp_cfg * 30 + 2 )) 256 set_namelist namelist_cfg jpjdta $(( $jp_cfg * 20 + 2 )) 257 set_namelist namelist_cfg jpiglo $(( $jp_cfg * 30 + 2 )) 258 set_namelist namelist_cfg jpjglo $(( $jp_cfg * 20 + 2 )) 259 set_namelist namelist_cfg jpni $jpni 260 set_namelist namelist_cfg jpnj $jpnj 223 261 set_namelist namelist_cfg jpnij $NPROC 224 262 … … 234 272 fi 235 273 274 #========================================================== 275 # TESTS FOR XIOS USING GYRE CONFIGURATION AT HIGH RESOLUTION 276 #========================================================== 277 236 278 if [ ${config} -eq 2 ] ; then 237 ## Restartability tests for GYRE 238 239 NPROC=152 279 ## Test of XIOS configured in attached mode with multiple output files (one for each process). 280 ## $NPROC processes are used 281 282 NPROC=64 283 jp_cfg=30 284 jpni=8 285 jpnj=8 240 286 export NUM_XIOSERVERS=0 241 287 export USING_MPMD="false" … … 246 292 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_XIOS_HR -r GYRE_XIOS -j 8 247 293 cd ${SETTE_DIR} 248 . param.cfg 249 . all_functions.sh 250 . prepare_exe_dir.sh 294 # 295 . ./param.cfg 296 . ./all_functions.sh 297 . ./prepare_exe_dir.sh 298 # 251 299 JOB_FILE=${EXE_DIR}/run_job.sh 252 300 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi … … 258 306 set_namelist namelist_cfg nn_bench 1 259 307 set_namelist namelist_cfg ln_clobber .true. 260 set_namelist namelist_cfg jp_cfg 144 261 set_namelist namelist_cfg jpni 19 262 set_namelist namelist_cfg jpnj 8 308 set_namelist namelist_cfg jp_cfg $jp_cfg 309 set_namelist namelist_cfg jpidta $(( $jp_cfg * 30 + 2 )) 310 set_namelist namelist_cfg jpjdta $(( $jp_cfg * 20 + 2 )) 311 set_namelist namelist_cfg jpiglo $(( $jp_cfg * 30 + 2 )) 312 set_namelist namelist_cfg jpjglo $(( $jp_cfg * 20 + 2 )) 313 set_namelist namelist_cfg jpni $jpni 314 set_namelist namelist_cfg jpnj $jpnj 263 315 set_namelist namelist_cfg jpnij $NPROC 264 316 … … 273 325 274 326 327 ## Test of XIOS configured in attached mode with a single output file. 275 328 276 329 export TEST_NAME="ATTACHED_ONE" … … 278 331 export USING_MPMD="false" 279 332 cd ${SETTE_DIR} 280 . prepare_exe_dir.sh 333 # 334 . ./prepare_exe_dir.sh 335 # 281 336 JOB_FILE=${EXE_DIR}/run_job.sh 282 337 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi … … 288 343 set_namelist namelist_cfg nn_bench 1 289 344 set_namelist namelist_cfg ln_clobber .true. 290 set_namelist namelist_cfg jp_cfg 144 291 set_namelist namelist_cfg jpni 19 292 set_namelist namelist_cfg jpnj 8 345 set_namelist namelist_cfg jp_cfg $jp_cfg 346 set_namelist namelist_cfg jpidta $(( $jp_cfg * 30 + 2 )) 347 set_namelist namelist_cfg jpjdta $(( $jp_cfg * 20 + 2 )) 348 set_namelist namelist_cfg jpiglo $(( $jp_cfg * 30 + 2 )) 349 set_namelist namelist_cfg jpjglo $(( $jp_cfg * 20 + 2 )) 350 set_namelist namelist_cfg jpni $jpni 351 set_namelist namelist_cfg jpnj $jpnj 293 352 set_namelist namelist_cfg jpnij $NPROC 294 353 … … 301 360 cd ${SETTE_DIR} 302 361 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 362 363 364 ## Test of XIOS configured in detached mode with a single output file. 365 ## $NUM_XIOSERVERS IO server are used. 366 ## the total number of allocated cores is $NUM_XIOSERVERS + $NPROC 303 367 304 368 export TEST_NAME="DETACHED_ONE" … … 306 370 export USING_MPMD="true" 307 371 cd ${SETTE_DIR} 308 . prepare_exe_dir.sh 372 # 373 . ./prepare_exe_dir.sh 374 # 309 375 JOB_FILE=${EXE_DIR}/run_job.sh 310 376 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi … … 316 382 set_namelist namelist_cfg nn_bench 1 317 383 set_namelist namelist_cfg ln_clobber .true. 318 set_namelist namelist_cfg jp_cfg 144 319 set_namelist namelist_cfg jpni 19 320 set_namelist namelist_cfg jpnj 8 384 set_namelist namelist_cfg jp_cfg $jp_cfg 385 set_namelist namelist_cfg jpidta $(( $jp_cfg * 30 + 2 )) 386 set_namelist namelist_cfg jpjdta $(( $jp_cfg * 20 + 2 )) 387 set_namelist namelist_cfg jpiglo $(( $jp_cfg * 30 + 2 )) 388 set_namelist namelist_cfg jpjglo $(( $jp_cfg * 20 + 2 )) 389 set_namelist namelist_cfg jpni $jpni 390 set_namelist namelist_cfg jpnj $jpnj 321 391 set_namelist namelist_cfg jpnij $NPROC 322 392 … … 329 399 cd ${SETTE_DIR} 330 400 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 401 402 ## Test of XIOS configured in detached mode with multiple output files (one for each IO server). 403 ## $NUM_XIOSERVERS IO server are used. 404 ## the total number of allocated cores is $NUM_XIOSERVERS + $NPROC 331 405 332 406 export TEST_NAME="DETACHED_MULTIPLE" … … 334 408 export USING_MPMD="true" 335 409 cd ${SETTE_DIR} 336 . prepare_exe_dir.sh410 . ./prepare_exe_dir.sh 337 411 JOB_FILE=${EXE_DIR}/run_job.sh 338 412 if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi … … 344 418 set_namelist namelist_cfg nn_bench 1 345 419 set_namelist namelist_cfg ln_clobber .true. 346 set_namelist namelist_cfg jp_cfg 144 347 set_namelist namelist_cfg jpni 19 348 set_namelist namelist_cfg jpnj 8 420 set_namelist namelist_cfg jp_cfg $jp_cfg 421 set_namelist namelist_cfg jpidta $(( $jp_cfg * 30 + 2 )) 422 set_namelist namelist_cfg jpjdta $(( $jp_cfg * 20 + 2 )) 423 set_namelist namelist_cfg jpiglo $(( $jp_cfg * 30 + 2 )) 424 set_namelist namelist_cfg jpjglo $(( $jp_cfg * 20 + 2 )) 425 set_namelist namelist_cfg jpni $jpni 426 set_namelist namelist_cfg jpnj $jpnj 349 427 set_namelist namelist_cfg jpnij $NPROC 350 428
Note: See TracChangeset
for help on using the changeset viewer.