Changeset 1470


Ignore:
Timestamp:
10/17/18 17:33:11 (5 years ago)
Author:
mafoipsl
Message:

For ins_job :

  • delete actions done for curie
  • for irene, set default postprocessing node to xlarge
  • for irene add the list of cmip6 sous-imputation instead of gencmip6. i (it takes some times. Message added : Wait for the next question ...)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/ins_job

    r1468 r1470  
    3636  -e                  : turn on ensemble mode (hindcast/forecast or date restart) 
    3737  -f                  : ins_job is force to create jobs even if they already exist 
    38 on curie only :  
    39   -p project          : add default project on curie 
    40   -c number of cores  : add default number of cores for postprocessing on curie : 1-16 
    4138on irene only :  
    4239  -p project          : add default project on irene 
     
    165162 
    166163#- 
    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 
     170if [ X"${SYSTEM}" == "Xirene" ] ; then 
     171 
     172  #- set ProjectID if required 
    173173  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"} 
    176177    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 ) " 
    178180    read answer 
    179181 
     
    182184    fi 
    183185 
    184     if [ "X${ProjectID}" = "Xgencmip6" ] ; then 
    185       ProjectID=devcmip6 
    186     fi 
    187186  fi # if ( ! ${x_p} ) 
    188187 
    189   #- ProjectNode forced to standard since 16/3/2016 
    190   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 ProjectCoreMax 
    195   ProjectCoreMax="16" 
    196  
    197   if ( ! ${x_c} ) ; then 
    198     #- ProjectNode is known (standard since 16/3/2016), set ProjectCore to default or answer 
    199     ProjectCore="4" 
    200     answerOK=false 
    201  
    202     while ( ! ${answerOK} ) ; do 
    203       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 answer 
    206       [ "X${answer}" == "X" ] || [ ${answer} -ge 1 -a ${answer} -le ${ProjectCoreMax} ] && answerOK=true 
    207     done 
    208  
    209     if [ "X${answer}" != "X" ] ; then 
    210       ProjectCore=${answer} 
    211     fi 
    212  
    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" ] ; then 
    220   if ( ! ${x_p} ) ; then 
    221     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 answer 
    226  
    227     if [ "X${answer}" != "X" ] ; then 
    228       ProjectID=${answer} 
    229     fi 
    230  
    231   fi # if ( ! ${x_p} ) 
    232  
    233188  echo  ProjectID is ${ProjectID} at Irene  
    234189 
    235190 
     191  # set ProjectNode if required 
    236192  if ( ! ${x_q} ) ; then  
    237      #- ProjectID is known (option or answer), set ProjectNode  
    238      ProjectNode="skylake" 
     193     #- default ProjectNode  
     194     ProjectNode="xlarge" 
    239195     answerOK=false  
    240196   
     
    251207   
    252208  fi # if ( ! ${x_q} )  
    253   echo ProjectNode is ${ProjectNode} at Irene  
     209  echo ProjectNode for post-processing is ${ProjectNode} at Irene  
    254210 
    255211  #- ProjectNode is known (option or answer) set ProjectCoreMax  
     
    260216    #- ProjectNode is known (option or answer), set ProjectCore default 
    261217    [ "${ProjectNode}" = "xlarge" ] && ProjectCore="8" || ProjectCore="4"  
     218 
     219    # let check minimum/maximum value 1/${ProjectCoreMax} 
     220 
    262221    answerOK=false 
    263222 
     
    276235  fi # if ( ! ${x_c} ) 
    277236 
    278   echo ProjectCore is ${ProjectCore} 
     237  echo ProjectCore for post-processing is ${ProjectCore} 
    279238  #- ProjectCore is set (option or answer) 
    280   # let check minimum/maximum value 1/${ProjectCoreMax} 
    281239 
    282240  #- ProjetCore is known (option or answer) set PostID : project ID for post-processing 
    283241 
    284242  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}"} 
    287246    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 ) " 
    289249    read answer 
    290250 
     
    314274  fi # if ( ! ${x_pm} ) 
    315275  echo MPIEnvironment is ${MPIEnvironment} 
     276 
    316277elif [ X"${SYSTEM}" == "Xlxiv8" ] || [ X"${SYSTEM}" == "Xifort_CICLAD" ] ; then 
    317278  # obelix, ciclad, climserv 
Note: See TracChangeset for help on using the changeset viewer.