- Timestamp:
- Oct 23, 2017, 5:53:34 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dynamico_lmdz/aquaplanet/CMIP5a/RUN_AQUAPLANET_DYNAMICO_LMDZ5/prepare.sh
r4067 r4079 66 66 67 67 function sed_ce0l() { 68 def USING_SERVER false68 def USING_SERVER true 69 69 def CE0L yes 70 70 def READ_START no … … 102 102 cd ${MYDIR} 103 103 rm -rf gcm.log *.nc xios_*.err xios_*.out gcm.log logs 104 ln -s ../FILES_LMDZ/*.nc . 104 105 symlink() { if [ -e \$1 ] ; then ln -s \$1 \$2 ; fi ; } 106 107 for x in ../FILES_LMDZ/*.nc ; do ln -s \$x . ; done 105 108 106 109 cat <<END > killme.sh … … 116 119 } 117 120 121 function prologue_ce0l() { 122 echo 123 } 124 118 125 function prologue_first() { 119 126 cat <<EOF 120 ln -s store0/limit.nc store0/climoz_LMDZ.nc store0/startphy.nc . 127 symlink store0/limit.nc . 128 symlink store0/climoz_LMDZ.nc . 129 symlink store0/startphy.nc . 121 130 EOF 122 131 } … … 124 133 function prologue_next() { 125 134 cat <<EOF 126 ln -s store0/limit.nc store0/climoz_LMDZ.nc . 127 ln -s store_prev/restartphy.nc startphy.nc 128 ln -s store_prev/restart.nc start.nc 135 symlink store0/limit.nc . 136 symlink store0/climoz_LMDZ.nc . 137 symlink store_prev/restartphy.nc startphy.nc 138 symlink store_prev/restart.nc start.nc 129 139 EOF 130 140 } … … 166 176 167 177 function batch_X64_CURIE_ce0l() { 168 cat <<EOF 169 #!/bin/bash 170 ## Request name 171 #MSUB -r ${EXPERIMENT}_ce0l_mpi 172 #MSUB -q standard 173 #MSUB -A gen7548 174 #MSUB -x 175 ## Number of tasks (=MPI processes) to use 176 #MSUB -n $NB_MPI_CE0L 177 ## Elapsed time limit in seconds 178 #MSUB -T 600 179 ## Quality of Service required (long [3 days], normal [1 day], test [30 min]) 180 #MSUB -Q normal 181 182 $( prologue_all ) 183 date > gcm.log 184 export OMP_NUM_THREADS=1 185 ccc_mprun $ICOSA_LMDZ >> gcm.log 186 date >> gcm.log 187 $( epilogue_ce0l ) 188 $( epilogue_all ) 189 EOF 178 batch_X64_CURIE ce0l $WALLTIME_CE0L 190 179 } 191 180 192 181 function batch_X64_CURIE_first() { 193 batch_X64_CURIE first 182 batch_X64_CURIE first $WALLTIME_JOB 194 183 } 195 184 196 185 function batch_X64_CURIE_next() { 197 batch_X64_CURIE next 198 } 199 200 function batch_X64_CURIE() { # $1 = first or next 186 batch_X64_CURIE next $WALLTIME_JOB 187 } 188 189 function batch_X64_CURIE() { # $1 = first or next $2 = walltime 201 190 NB_MPI_TOTAL=$(( $NB_MPI_DYNAMICO + $NB_MPI_XIOS )) 202 191 cat <<EOF … … 210 199 #MSUB -n $NB_MPI_TOTAL 211 200 ## Elapsed time limit in seconds 212 #MSUB -T $ JOB_WALLTIME201 #MSUB -T $2 213 202 ## Quality of Service required (long [3 days], normal [1 day], test [30 min]) 214 203 #MSUB -Q normal
Note: See TracChangeset
for help on using the changeset viewer.