Changeset 4111 for dynamico_lmdz
- Timestamp:
- Jun 8, 2018, 1:09:39 PM (7 years ago)
- Location:
- dynamico_lmdz/aquaplanet/CMIP5a/RUN_AQUAPLANET_DYNAMICO_LMDZ5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
dynamico_lmdz/aquaplanet/CMIP5a/RUN_AQUAPLANET_DYNAMICO_LMDZ5/example.sh
r4098 r4111 50 50 } 51 51 52 function submit_ X64_CURIE()52 function submit_CCC() 53 53 { 54 54 EXP=$1 ; shift … … 59 59 DEP="-a $JOBID" 60 60 } 61 62 function submit_X64_CURIE() 63 { 64 submit_CCC $* 65 } 66 67 function submit_X64_IRENE() 68 { 69 submit_CCC $* 70 } 61 71 62 72 function cmd_submit() -
dynamico_lmdz/aquaplanet/CMIP5a/RUN_AQUAPLANET_DYNAMICO_LMDZ5/prepare.sh
r4091 r4111 102 102 cd ${MYDIR} 103 103 rm -rf gcm.log *.nc xios_*.err xios_*.out gcm.log logs 104 ln -s dynamico.0000.out gcm.log 104 105 105 106 symlink() { if [ -e \$1 ] ; then ln -s \$1 \$2 ; fi ; } 106 107 107 for x in ../FILES_LMDZ/*.nc; do ln -s \$x . ; done108 for x in \$(ls ../FILES_LMDZ/*.nc) ; do ln -s \$x . ; done 108 109 109 110 cat <<END > killme.sh … … 207 208 export OMP_NUM_THREADS=1 208 209 ccc_mprun -f mpmd.conf 210 209 211 $( epilogue_$1 ) 210 212 $( epilogue_all ) … … 223 225 $ICOSA_LMDZ >> \${GCM}.out 2>\${GCM}.err 224 226 date >> \${GCM}.out 227 EOF 228 chmod a+x $MYDIR/gcm.sh 229 } 230 231 #------------ Batch jobs : machine-dependent main script : X64_IRENE -------------- 232 233 function batch_X64_IRENE_ce0l() { 234 batch_X64_IRENE ce0l $WALLTIME_CE0L 235 } 236 237 function batch_X64_IRENE_first() { 238 batch_X64_IRENE first $WALLTIME_JOB 239 } 240 241 function batch_X64_IRENE_next() { 242 batch_X64_IRENE next $WALLTIME_JOB 243 } 244 245 function batch_X64_IRENE() { # $1 = first or next $2 = walltime 246 NB_MPI_TOTAL=$(( $NB_MPI_DYNAMICO + $NB_MPI_XIOS )) 247 cat <<EOF 248 #!/bin/bash 249 ## Request name 250 #MSUB -r ${EXPERIMENT}_$1_mpi 251 #MSUB -q skylake 252 #MSUB -A gch0316 253 #MSUB -m work,scratch 254 #MSUB -x 255 ## Number of tasks (=MPI processes) to use 256 #MSUB -n $NB_MPI_TOTAL 257 ## Elapsed time limit in seconds 258 #MSUB -T $2 259 260 $( prologue_all ) 261 module load ipm 262 export IPM_REPORT=full 263 $( prologue_$1 ) 264 export OMP_NUM_THREADS=1 265 ccc_mprun -f mpmd.conf 266 awk '/IPMv2/{y=1;next}y' gcm.log 267 grep MAIN gcm.log 268 $( epilogue_$1 ) 269 $( epilogue_all ) 270 EOF 271 272 cat <<EOF > $MYDIR/mpmd.conf 273 $NB_MPI_DYNAMICO ./gcm.sh 274 $NB_MPI_XIOS $XIOS_SERVER 275 EOF 276 277 cat <<EOF > $MYDIR/gcm.sh 278 #!/bin/bash 279 280 function run() 281 { 282 hostname 283 ldd $ICOSA_LMDZ 284 $ICOSA_LMDZ 285 } 286 287 function run_print_each() 288 { 289 GCM=\$(printf 'dynamico.%04d' \$ME) 290 date > \${GCM}.out 291 run >> \${GCM}.out 2>\${GCM}.err 292 date >> \${GCM}.out 293 } 294 295 function run_print_master() 296 { 297 if ((\$ME>0)) ; then 298 run > /dev/null 2>&1 299 else 300 run_print_each 301 fi 302 } 303 304 ME=\${BRIDGE_MPRUN_RANKID} 305 306 run_print_master 307 #run_print_each 225 308 EOF 226 309 chmod a+x $MYDIR/gcm.sh
Note: See TracChangeset
for help on using the changeset viewer.