Changeset 1465 for trunk


Ignore:
Timestamp:
07/09/18 15:59:11 (6 years ago)
Author:
acosce
Message:

Add the choice by ins_job of number of cores for pack_output.
I don't modify the number of cores of pack_restart and pack_debug that actually well run on 4 cores.

Location:
trunk/libIGCM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_pack_output

    r1460 r1465  
    1919#-Q- irene #MSUB -T 36000          # Maximum elapsed time 
    2020#-Q- irene #MSUB -q skylake 
    21 #-Q- irene #MSUB -c 4 
     21#-Q- irene #MSUB -c ::default_core:: 
    2222#-Q- irene #MSUB -Q normal 
    2323#-Q- irene #MSUB -A ::default_project:: 
  • trunk/libIGCM/ins_job

    r1437 r1465  
    220220  echo  ProjectID is ${ProjectID} at Irene  
    221221 
     222 
     223  #- ProjectNode is known (standard since 16/3/2016) set ProjectCoreMax 
     224  ProjectCoreMax="48" 
     225 
     226  if ( ! ${x_c} ) ; then 
     227    #- ProjectNode is known (standard since 16/3/2016), set ProjectCore to default or answer 
     228    ProjectCore="4" 
     229    answerOK=false 
     230 
     231    while ( ! ${answerOK} ) ; do 
     232      answer="" 
     233      print - "Hit Enter or give NUMBER OF CORES required for post-processing (default is \"${ProjectCore}\"), possible numbers of cores are \"1\" to \"${ProjectCoreMax}\" : " 
     234      read answer 
     235      [ "X${answer}" == "X" ] || [ ${answer} -ge 1 -a ${answer} -le ${ProjectCoreMax} ] && answerOK=true 
     236    done 
     237 
     238    if [ "X${answer}" != "X" ] ; then 
     239      ProjectCore=${answer} 
     240    fi 
     241 
     242  fi # if ( ! ${x_c} ) 
     243 
     244  echo ProjectCore is ${ProjectCore} 
     245  #- ProjectCore is set (option or answer) 
     246  # let check minimum/maximum value 1/${ProjectCoreMax} 
     247 
    222248elif [ X"${SYSTEM}" == "Xada" ] ; then 
    223249  if ( ! ${x_m} ) ; then 
Note: See TracChangeset for help on using the changeset viewer.