Changeset 4707 for trunk/NEMOGCM/SETTE
- Timestamp:
- 2014-07-06T23:11:46+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/SETTE/sette_xios.sh
r4692 r4707 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 # … … 114 110 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 115 111 116 for config in 2112 for config in 1 2 117 113 118 114 do 119 115 120 # TESTS FOR GYRE CONFIGURATION 116 #========================================================== 117 # TESTS FOR XIOS USING GYRE CONFIGURATION AT LOW RESOLUTION 118 #========================================================== 119 121 120 if [ ${config} -eq 1 ] ; then 122 ## 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 123 123 124 124 NPROC=4 125 jp_cfg=1 126 jpni=2 127 jpnj=2 125 128 export NUM_XIOSERVERS=0 126 129 export USING_MPMD="false" … … 140 143 set_namelist namelist_cfg nn_it000 1 141 144 set_namelist namelist_cfg nn_itend 120 142 set_namelist namelist_cfg nn_stock 60 143 set_namelist namelist_cfg ln_clobber .true. 144 set_namelist namelist_cfg jp_cfg 1 145 set_namelist namelist_cfg jpni 2 146 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 147 154 set_namelist namelist_cfg jpnij $NPROC 148 155 … … 156 163 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 157 164 165 166 ## Test of XIOS configured in attached mode with a single output file. 158 167 159 168 export TEST_NAME="ATTACHED_ONE" … … 168 177 set_namelist namelist_cfg nn_it000 1 169 178 set_namelist namelist_cfg nn_itend 120 170 set_namelist namelist_cfg nn_stock 60 171 set_namelist namelist_cfg ln_clobber .true. 172 set_namelist namelist_cfg jp_cfg 1 173 set_namelist namelist_cfg jpni 2 174 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 175 188 set_namelist namelist_cfg jpnij $NPROC 176 189 … … 184 197 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 185 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 186 203 187 204 export TEST_NAME="DETACHED_ONE" … … 197 214 set_namelist namelist_cfg nn_it000 1 198 215 set_namelist namelist_cfg nn_itend 120 199 set_namelist namelist_cfg nn_stock 60 200 set_namelist namelist_cfg ln_clobber .true. 201 set_namelist namelist_cfg jp_cfg 1 202 set_namelist namelist_cfg jpni 2 203 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 204 225 set_namelist namelist_cfg jpnij $NPROC 205 226 … … 212 233 cd ${SETTE_DIR} 213 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 214 240 215 241 export TEST_NAME="DETACHED_MULTIPLE" … … 224 250 set_namelist namelist_cfg nn_it000 1 225 251 set_namelist namelist_cfg nn_itend 120 226 set_namelist namelist_cfg nn_stock 60 227 set_namelist namelist_cfg ln_clobber .true. 228 set_namelist namelist_cfg jp_cfg 1 229 set_namelist namelist_cfg jpni 2 230 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 231 261 set_namelist namelist_cfg jpnij $NPROC 232 262 … … 242 272 fi 243 273 274 #========================================================== 275 # TESTS FOR XIOS USING GYRE CONFIGURATION AT HIGH RESOLUTION 276 #========================================================== 277 244 278 if [ ${config} -eq 2 ] ; then 245 ## Restartability tests for GYRE 279 ## Test of XIOS configured in attached mode with multiple output files (one for each process). 280 ## $NPROC processes are used 246 281 247 282 NPROC=64 … … 290 325 291 326 327 ## Test of XIOS configured in attached mode with a single output file. 292 328 293 329 export TEST_NAME="ATTACHED_ONE" … … 325 361 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 326 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 367 327 368 export TEST_NAME="DETACHED_ONE" 328 369 export NUM_XIOSERVERS=8 … … 359 400 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 360 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 405 361 406 export TEST_NAME="DETACHED_MULTIPLE" 362 407 export NUM_XIOSERVERS=8
Note: See TracChangeset
for help on using the changeset viewer.