- Timestamp:
- 10/17/18 17:33:11 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/ins_job
r1468 r1470 36 36 -e : turn on ensemble mode (hindcast/forecast or date restart) 37 37 -f : ins_job is force to create jobs even if they already exist 38 on curie only :39 -p project : add default project on curie40 -c number of cores : add default number of cores for postprocessing on curie : 1-1641 38 on irene only : 42 39 -p project : add default project on irene … … 165 162 166 163 #- 167 # Define Project parameters to set up jobs header for Curie (TGCC) 168 # on curie define ProjectID and ProjectCore : option or answer 169 # on curie ProjectNode forced to standard since 16/3/2016 170 #- 171 172 if [ X"${SYSTEM}" == "Xcurie" ] ; then 164 # Define Project parameters to set up jobs header for Irene (TGCC) 165 # on Irene define ProjectID and ProjectCore : option or answer 166 # on Irene ProjectNode default projectnode set to xlarge since 17/10/2018 167 #- 168 169 170 if [ X"${SYSTEM}" == "Xirene" ] ; then 171 172 #- set ProjectID if required 173 173 if ( ! ${x_p} ) ; then 174 ProjectID=$( ccc_myproject | gawk '{ if ( $3 ~ /^project$/ && $4 !~ /^tgcc/ ) { print $4 } }' | head -n 1 ) 175 ProjectID=${ProjectID:="devcmip6"} 174 #- default ProjectID 175 ProjectID=$( ccc_myproject | grep -i irene |grep -i skylake | gawk '{ if ( $3 ~ /^project$/ && $4 !~ /^tgcc/ ) { print $4 } }' | sort -u | grep -v gencmip6 | head -n 1 ) 176 ProjectID=${ProjectID:="gch0316"} 176 177 answer="" 177 print - "Hit Enter or give project ID (default is ${ProjectID}), possible projects are $( echo $( ccc_myproject | grep -i curie | gawk '{ if ( $3 ~ /^project$/ && $4 !~ /^tgcc/ ) { print $4 } }' | sort -u ) ) :" 178 print - "Wait for the next question ..." 179 print - "Hit Enter or give project ID (default is ${ProjectID}), possible projects are $( echo $( ccc_myproject | grep -i irene | grep -i skylake | gawk '{ if ( $3 ~ /^project$/ && $4 !~ /^tgcc/ ) { print $4 } }' | grep -v gencmip6 | sort -u ) ) or other xxxcmip6 : $(for i in $(groups) ; do echo $i|grep -v gencmip6|grep .cmip6 1>/dev/null 2>&1 && echo -n $i " " ; done ; echo ) " 178 180 read answer 179 181 … … 182 184 fi 183 185 184 if [ "X${ProjectID}" = "Xgencmip6" ] ; then185 ProjectID=devcmip6186 fi187 186 fi # if ( ! ${x_p} ) 188 187 189 #- ProjectNode forced to standard since 16/3/2016190 ProjectNode="standard"191 192 echo ProjectID is ${ProjectID} and ProjectNode for PostProcessing is ${ProjectNode}193 194 #- ProjectNode is known (standard since 16/3/2016) set ProjectCoreMax195 ProjectCoreMax="16"196 197 if ( ! ${x_c} ) ; then198 #- ProjectNode is known (standard since 16/3/2016), set ProjectCore to default or answer199 ProjectCore="4"200 answerOK=false201 202 while ( ! ${answerOK} ) ; do203 answer=""204 print - "Hit Enter or give NUMBER OF CORES required for post-processing (default is \"${ProjectCore}\"), possible numbers of cores are \"1\" to \"${ProjectCoreMax}\" : "205 read answer206 [ "X${answer}" == "X" ] || [ ${answer} -ge 1 -a ${answer} -le ${ProjectCoreMax} ] && answerOK=true207 done208 209 if [ "X${answer}" != "X" ] ; then210 ProjectCore=${answer}211 fi212 213 fi # if ( ! ${x_c} )214 215 echo ProjectCore is ${ProjectCore}216 #- ProjectCore is set (option or answer)217 # let check minimum/maximum value 1/${ProjectCoreMax}218 219 elif [ X"${SYSTEM}" == "Xirene" ] ; then220 if ( ! ${x_p} ) ; then221 ProjectID=$( ccc_myproject | grep -i irene |grep -i skylake | gawk '{ if ( $3 ~ /^project$/ && $4 !~ /^tgcc/ ) { print $4 } }' | head -n 1 )222 ProjectID=${ProjectID:="gch0316"}223 answer=""224 print - "Hit Enter or give project ID (default is ${ProjectID}), possible projects are $( echo $( ccc_myproject | grep -i irene | grep -i skylake | gawk '{ if ( $3 ~ /^project$/ && $4 !~ /^tgcc/ ) { print $4 } }' | sort -u ) ) :"225 read answer226 227 if [ "X${answer}" != "X" ] ; then228 ProjectID=${answer}229 fi230 231 fi # if ( ! ${x_p} )232 233 188 echo ProjectID is ${ProjectID} at Irene 234 189 235 190 191 # set ProjectNode if required 236 192 if ( ! ${x_q} ) ; then 237 #- ProjectID is known (option or answer), set ProjectNode238 ProjectNode=" skylake"193 #- default ProjectNode 194 ProjectNode="xlarge" 239 195 answerOK=false 240 196 … … 251 207 252 208 fi # if ( ! ${x_q} ) 253 echo ProjectNode is ${ProjectNode} at Irene209 echo ProjectNode for post-processing is ${ProjectNode} at Irene 254 210 255 211 #- ProjectNode is known (option or answer) set ProjectCoreMax … … 260 216 #- ProjectNode is known (option or answer), set ProjectCore default 261 217 [ "${ProjectNode}" = "xlarge" ] && ProjectCore="8" || ProjectCore="4" 218 219 # let check minimum/maximum value 1/${ProjectCoreMax} 220 262 221 answerOK=false 263 222 … … 276 235 fi # if ( ! ${x_c} ) 277 236 278 echo ProjectCore is ${ProjectCore}237 echo ProjectCore for post-processing is ${ProjectCore} 279 238 #- ProjectCore is set (option or answer) 280 # let check minimum/maximum value 1/${ProjectCoreMax}281 239 282 240 #- ProjetCore is known (option or answer) set PostID : project ID for post-processing 283 241 284 242 if ( ! ${x_s} ) ; then 285 PostID=$( ccc_myproject | grep -i irene | grep -i ${ProjectNode} | gawk '{ if ( $3 ~ /^project$/ && $4 !~ /^tgcc/ ) { print $4 } }' | head -n 1 ) 286 PostID=${PostID:="gch0316"} 243 #- ProjetCore is known (option or answer) set PostID : project ID for post-processing 244 PostID=$( ccc_myproject | grep -i irene | grep -i ${ProjectNode} | gawk '{ if ( $3 ~ /^project$/ && $4 !~ /^tgcc/ ) { print $4 } }' | sort -u | grep -v gencmip6 | head -n 1 ) 245 PostID=${PostID:="${ProjectID}"} 287 246 answer="" 288 print - "Hit Enter or give project ID (default is ${PostID}), possible projects are $( echo $( ccc_myproject | grep -i irene | grep -i ${ProjectNode} | gawk '{ if ( $3 ~ /^project$/ && $4 !~ /^tgcc/ ) { print $4 } }' | sort -u ) ) :" 247 print - "Wait for the next question ..." 248 print - "Hit Enter or give project ID (default is ${PostID}), possible projects are $( echo $( ccc_myproject | grep -i irene | grep -i ${ProjectNode} | gawk '{ if ( $3 ~ /^project$/ && $4 !~ /^tgcc/ ) { print $4 } }' | grep -v gencmip6 | sort -u ) ) or other xxxcmip6 : $(for i in $(groups) ; do echo $i|grep -v gencmip6|grep .cmip6 1>/dev/null 2>&1 && echo -n $i " " ; done ; echo ) " 289 249 read answer 290 250 … … 314 274 fi # if ( ! ${x_pm} ) 315 275 echo MPIEnvironment is ${MPIEnvironment} 276 316 277 elif [ X"${SYSTEM}" == "Xlxiv8" ] || [ X"${SYSTEM}" == "Xifort_CICLAD" ] ; then 317 278 # obelix, ciclad, climserv
Note: See TracChangeset
for help on using the changeset viewer.