Ignore:
Timestamp:
02/18/13 17:09:13 (11 years ago)
Author:
sdipsl
Message:
  • default and obelix was outdated. They diverged too much from the others.
Location:
trunk/libIGCM/libIGCM_sys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh

    r785 r800  
    2323#D- 
    2424#D- This ksh library if a layer under some usefull 
    25 #D- environment variables and shell commands. 
    26 #D- All those definitions depend on host particularities. 
    27 #D- It manages a stack mechanism and test validity of operations. 
    28 #D- All function described bellow must be prefixed by IGCM_sys. 
     25#D-environment variables and shell commands. 
     26#D-All those definitions depend on host particularities. 
     27#D-It manages a stack mechanism and test validity of operations. 
     28#D-All function described bellow must be prefixed by IGCM_sys. 
    2929 
    3030#==================================================== 
     
    3333 
    3434#==================================================== 
    35 #set DEBUG_sys to true to output calls of function 
     35# set DEBUG_sys to true to output calls of function 
    3636typeset -r DEBUG_sys=${DEBUG_sys:=true} 
    3737 
     
    5656 
    5757#===================================================== 
    58 #Global Variables : 
     58# Global Variables : 
    5959#===================================================== 
    6060# Language : "fr" or "en" 
     
    7979# rsync with path 
    8080typeset -r RSYNC=/usr/bin/rsync 
    81 #RSYNC_opt args to rsync 
     81# RSYNC_opt args to rsync 
    8282typeset -r RSYNC_opt="-va" 
    83 #"-Lt -v" 
    8483# ie storage filesystem 
    8584typeset -r STOREHOST=${MASTER} 
     
    9998 
    10099#==================================================== 
    101 #- libIGCM_POST 
     100#- libIGCM_POST for frontend 
    102101typeset -r libIGCM_POST=${libIGCM} 
    103102 
     
    107106 
    108107#==================================================== 
    109 #- SCRATCHDIR (=> ${R_DONNEES}) 
    110 typeset -r SCRATCHDIR=/tmp 
    111  
    112 #==================================================== 
    113108#- SUBMIT_DIR : submission dir 
    114109typeset SUBMIT_DIR=${SUBMIT_DIR:=${PWD}} 
     
    117112#- IN 
    118113typeset -r R_IN=${R_IN:=/home/${LOGIN}/IGCM} 
     114typeset -r R_IN_ECMWF=${R_IN_ECMWF:=/home/${LOGIN}/IGCM} 
    119115 
    120116#==================================================== 
     
    127123 
    128124#==================================================== 
    129 #- OUT 
    130 IGCM_OUT=${IGCM_OUT:=IGCM_OUT} 
    131 typeset -r R_OUT=${ARCHIVE}/${IGCM_OUT} 
     125#- R_OUT 
     126typeset R_OUT=${ARCHIVE}/IGCM_OUT 
    132127 
    133128#==================================================== 
    134129#- R_FIG (hosting figures : monitoring and atlas, and/or small files) 
    135 typeset -r R_FIG=${STORAGE}/IGCM_OUT 
     130typeset R_FIG=${STORAGE}/IGCM_OUT 
    136131 
    137132#==================================================== 
    138133#- R_BUF (ONLY FOR double copy an scratch) 
    139 typeset -r R_BUF=${SCRATCHDIR}/IGCM_OUT 
     134typeset -r R_BUF=${STORAGE}/IGCM_OUT 
    140135 
    141136#==================================================== 
    142137#- BIG_DIR : BIG_DIR to store files waiting for rebuild 
    143 typeset -r BIG_DIR=${BIG_DIR:=${SCRATCHDIR}/REBUILD} 
     138typeset -r BIG_DIR=${BIG_DIR:=${STORAGE}/REBUILD} 
    144139 
    145140#==================================================== 
    146141#- RUN_DIR_PATH : Temporary working directory (=> TMP) 
    147 typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=${SCRATCHDIR}/tmp$$} 
     142typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=${STORAGE}/RUN_DIR/tmp$$} 
    148143 
    149144#==================================================== 
    150145#- HOST_MPIRUN_COMMAND 
    151146typeset -r HOST_MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND:="time mpirun"} 
    152  
    153 #========================================================= 
    154 #- Add "time" before mpirun command 
    155 MPIRUN_COMMAND="time "${MPIRUN_COMMAND} 
    156 echo ${MPIRUN_COMMAND} 
    157147 
    158148#==================================================== 
     
    186176#D-#================================================== 
    187177#D-function IGCM_sys_RshMaster 
    188 #D-* Purpose: Just a fake command to wrapp 
    189 #D-           IGCM_card call in post-treatment 
    190 #D-           Ulam do not see brodie filesystem 
    191 #D-           Cesium do not see all mercure filesystem 
    192 #D-           That's why we need this hack. 
     178#D-* Purpose: Connection to frontend machine. 
    193179#D-* Examples: 
    194180#D- 
    195181function IGCM_sys_RshMaster { 
    196182  IGCM_debug_PushStack "IGCM_sys_RshMaster" $@ 
    197   ssh ${HOST} /bin/ksh <<-EOF 
     183  /bin/ksh <<-EOF 
    198184    export libIGCM=${libIGCM} 
    199185    export DEBUG_debug=${DEBUG_debug} 
     
    216202function IGCM_sys_RshArchive { 
    217203  IGCM_debug_PushStack "IGCM_sys_RshArchive" $@ 
    218   /bin/ksh  <<-EOF 
     204  /bin/ksh <<-EOF 
    219205    ${@} 
    220206EOF 
     
    231217#D-* Examples: 
    232218#D- 
    233 (( RshPNum = 0 )) 
    234219function IGCM_sys_RshPost { 
    235220  IGCM_debug_PushStack "IGCM_sys_RshPost" $@ 
     
    237222    echo "IGCM_sys_RshPost :" $@ 
    238223  fi 
    239   #/bin/ksh -vx $@ > out_RshPost.${RshPNum} 
    240   ssh ${HOST} /bin/ksh $@ > out_RshPost.${RshPNum} 
     224 
     225  #echo cat tmp_IGCM_sys_RshPost_$$ INITIAL 
     226  #cat tmp_IGCM_sys_RshPost_$$ 
     227  # keep standard input (stdin) for the loop onto temporary file 
     228  cat >tmp_IGCM_sys_RshPost_$$ 
     229 
     230  /bin/ksh <tmp_IGCM_sys_RshPost_$$ 
    241231  if [ $? -gt 0 ] ; then 
    242232    echo "IGCM_sys_RshPost : erreur." 
    243233    IGCM_debug_Exit "IGCM_sys_RshPost" 
    244234  fi 
    245   (( RshPNum = RshPNum + 1 )) 
     235  # delete temporary file 
     236  \rm tmp_IGCM_sys_RshPost_$$ 
     237 
    246238  IGCM_debug_PopStack "IGCM_sys_RshPost" 
    247239} 
     
    263255    status=completed 
    264256  fi 
     257 
    265258  cat  << END_MAIL > job_end.mail 
    266259Dear ${LOGIN}, 
     
    270263  Job ended   : ${DateEnd} 
    271264  Output files are available in ${R_SAVE} 
     265  Files to be rebuild are temporarily available in ${REBUILD_DIR} 
     266  Pre-packed files are temporarily available in ${R_BUFR} 
    272267  Script files, Script Outputs and Debug files (if necessary) are available in ${SUBMIT_DIR} 
    273268END_MAIL 
     
    303298    fi 
    304299  fi 
    305     # vérification : 
     300  # vérification : 
    306301  if [ ! -d ${1} ] ; then 
    307302    echo "IGCM_sys_Mkdir : erreur." 
     
    321316    echo "IGCM_sys_MkdirArchive :" $@ 
    322317  fi 
    323     #- creation de repertoire sur le serveur fichier 
     318  #- creation de repertoire sur le serveur fichier 
    324319  if [ ! -d ${1} ]; then 
    325320    \mkdir -p $1 
     
    342337    echo "IGCM_sys_MkdirWork :" $@ 
    343338  fi 
    344     #- creation de repertoire sur le serveur fichier 
     339  #- creation de repertoire sur le serveur fichier 
    345340  if [ ! -d ${1} ]; then 
    346341    \mkdir -p $1 
     
    446441 
    447442#D-#================================================== 
     443#D-function IGCM_sys_IsFileArchived 
     444#D-* Purpose: Test file that must NOT EXISTS on Archive 
     445#D-* Examples: 
     446#D- 
     447function IGCM_sys_IsFileArchived { 
     448  IGCM_debug_PushStack "IGCM_sys_IsFileArchived" $@ 
     449  if ( $DEBUG_sys ) ; then 
     450    echo "IGCM_sys_IsFileArchived :" $@ 
     451  fi 
     452  typeset IsArchivedFlag 
     453  # Never archived for this system 
     454  IsArchivedFlag=1 
     455  IGCM_debug_PopStack "IGCM_sys_IsFileArchived" 
     456 
     457  return ${IsArchivedFlag} 
     458} 
     459 
     460#D-#================================================== 
    448461#D-function IGCM_sys_TestFileArchive 
    449462#D-* Purpose: Test file that must NOT EXISTS on Archive 
     
    563576    echo "IGCM_sys_Qsub :" $@ 
    564577  fi 
    565   echo "ssh -l ${LOGIN} ${HOST} ""cd ${SUBMIT_DIR} ; ${@}"" > ${Script_Output} 2>&1 &" 
    566   ssh -l ${LOGIN} ${HOST} "cd ${SUBMIT_DIR} ; ${@}" > ${Script_Output} 2>&1 & 
     578  echo "${@} > ${SUBMIT_DIR}/${Script_Output} 2>&1 &" 
     579  ${@} > ${SUBMIT_DIR}/${Script_Output} 2>&1 & 
    567580  if [ $? -gt 0 ] ; then 
    568     echo "IGCM_sys_Qsub : erreur." 
     581    echo "IGCM_sys_Qsub : erreur ${options} $1" 
    569582    IGCM_debug_Exit "IGCM_sys_Qsub" 
    570583  fi 
     
    582595    echo "IGCM_sys_QsubPost :" $@ 
    583596  fi 
    584     #echo "ssh -x -l ${LOGIN} ${HOST} ${3} > ${2} 2>&1 &" 
    585     #    ssh -x -l ${LOGIN} ${HOST} 
    586597  echo "${libIGCM_POST}/$1.job > ${POST_DIR}/$1.${PeriodDateEnd}.out 2>&1 &" 
    587598  ${libIGCM_POST}/$1.job > ${POST_DIR}/${Script_Post_Output}.out 2>&1 & 
    588     #    ${3} > ${2} 2>&1 & 
    589599  if [ $? -gt 0 ] ; then 
    590600    echo "IGCM_sys_QsubPost : erreur " $@ 
     
    602612#D-function IGCM_sys_Rsync_out 
    603613#D-* Purpose: treat return val of rsync 
    604 #D-* Examples:  IGCM_sys_Rsync_out out_RET_rsync 
     614#D-* Examples: IGCM_sys_Rsync_out out_RET_rsync 
    605615#D-  Error values and explanations can depend on your system version. 
    606616function IGCM_sys_Rsync_out { 
    607   RET=$1 
    608   if [ ! $RET ] ; then 
     617  status=$1 
     618  if [ ! $status ] ; then 
    609619    echo "rsync error !" 
    610620  fi 
    611621 
    612622  if [ $MYLANG = "fr" ]; then 
    613     case $RET in 
     623    case $status in 
    614624    0)  return ;; 
    615625    1)  echo "Erreur de rsync ; RERR_SYNTAX : " 
     
    659669      echo "Temps d'attente écoulé dans l'envoi/réception de données" 
    660670      return;; 
    661     *)  echo "Erreur de rsync : code de retour de rsync inconnu :" $RET 
     671    *)  echo "Erreur de rsync : code de retour de rsync inconnu :" $status 
    662672      return;; 
    663673    esac 
    664674  elif [ $MYLANG = "en" ] ; then 
    665     case $RET in 
     675    case $status in 
    666676    0)  return;; 
    667677    1)  echo "rsync error : Syntax or usage error " 
     
    700710    30) echo "rsync error : Timeout in data send/receive " 
    701711      return;; 
    702     *)  echo "rsync error : return code of rsync unknown :" $RET 
     712    *)  echo "rsync error : return code of rsync unknown :" $status 
    703713      return;; 
    704714    esac 
     
    773783  if ( $DEBUG_sys ) ; then 
    774784    echo "IGCM_sys_RmRunDir :" $@ 
    775     echo "Dummy call, let the scheduler do that." 
     785    echo "Dummy call, let the user do that." 
    776786#    IGCM_sys_Rm -rf ${RUN_DIR} 
    777787  fi 
     
    870880    typeset RET 
    871881 
    872         #USUAL WAY 
     882    #USUAL WAY 
    873883    \cp -R $1 $2 > out_rsync 2>&1 
    874884    RET=$? 
     
    906916    typeset RET 
    907917 
    908         #USUAL WAY 
     918    #USUAL WAY 
    909919    cp -RL $1 $2 > out_rsync 2>&1 
    910920    RET=$? 
     
    10411051 
    10421052    typeset RET 
    1043         # 
     1053    # 
    10441054    if [ X${JobType} = XRUN ] ; then 
    10451055      if [ X${3} = X ] ; then 
     
    10471057      fi 
    10481058    fi 
    1049         # 
     1059    # 
    10501060 
    10511061    echo ${RSYNC} ${RSYNC_opt} $1 $2 > out_rsync 2>&1 
     
    11381148    eval DEST=\${${#}} 
    11391149 
    1140         # test if the (first) file is present in the old computation : 
     1150    # test if the (first) file is present in the old computation : 
    11411151    IGCM_sys_TestFileArchive ${dm_liste[0]} 
    11421152    RET=$? 
     
    12381248  eval ${2}=${dateF[5]} 
    12391249 
    1240     # donne la date filesys d'un fichier sur la machine work 
     1250  # donne la date filesys d'un fichier sur la machine work 
    12411251  IGCM_debug_PopStack "IGCM_sys_FichWork" 
    12421252} 
     
    12701280  return 0 
    12711281} 
    1272  
    12731282 
    12741283#D-#================================================== 
     
    13321341  list_opt=$@ 
    13331342 
    1334   # Invert Axis : t,x -> x,t  
     1343  # Invert Axis : t,x -> x,t 
    13351344  #               t,pres,x -> x,t,pres 
    13361345  # So that we can concatenate along x 
     
    13951404#      j3=${proc_stn[${iStation}]} 
    13961405      # Extract station 
    1397       # Invert Axis : t,x -> x,t  
     1406      # Invert Axis : t,x -> x,t 
    13981407      #               t,pres,x -> x,t,pres 
    13991408      # So that we can concatenate along x 
     
    14381447 
    14391448############################################################ 
    1440 # Build run file 
     1449# Build MPI/OMP scripts run file (dummy function) 
    14411450 
    14421451function IGCM_sys_build_run_file { 
     
    17401749      \rm out_rsync 
    17411750      IGCM_debug_Print 2 "IGCM_sys_ncap2 : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     1751      sleep $DELAI 
    17421752    else 
    17431753      \rm out_rsync 
     
    17761786      \rm out_rsync 
    17771787      IGCM_debug_Print 2 "IGCM_sys_ncatted : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     1788      sleep $DELAI 
    17781789    else 
    17791790      \rm out_rsync 
     
    18121823      \rm out_rsync 
    18131824      IGCM_debug_Print 2 "IGCM_sys_ncbo : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     1825      sleep $DELAI 
    18141826    else 
    18151827      \rm out_rsync 
     
    18481860      \rm out_rsync 
    18491861      IGCM_debug_Print 2 "IGCM_sys_ncdiff : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     1862      sleep $DELAI 
    18501863    else 
    18511864      \rm out_rsync 
     
    18841897      \rm out_rsync 
    18851898      IGCM_debug_Print 2 "IGCM_sys_ncea : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     1899      sleep $DELAI 
    18861900    else 
    18871901      \rm out_rsync 
     
    19201934      \rm out_rsync 
    19211935      IGCM_debug_Print 2 "IGCM_sys_ncecat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     1936      sleep $DELAI 
    19221937    else 
    19231938      \rm out_rsync 
     
    19561971      \rm out_rsync 
    19571972      IGCM_debug_Print 2 "IGCM_sys_ncflint : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     1973      sleep $DELAI 
    19581974    else 
    19591975      \rm out_rsync 
     
    19922008      \rm out_rsync 
    19932009      IGCM_debug_Print 2 "IGCM_sys_ncks : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     2010      sleep $DELAI 
    19942011    else 
    19952012      \rm out_rsync 
     
    20282045      \rm out_rsync 
    20292046      IGCM_debug_Print 2 "IGCM_sys_ncpdq : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     2047      sleep $DELAI 
    20302048    else 
    20312049      \rm out_rsync 
     
    20642082      \rm out_rsync 
    20652083      IGCM_debug_Print 2 "IGCM_sys_ncra : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     2084      sleep $DELAI 
    20662085    else 
    20672086      \rm out_rsync 
     
    21002119      \rm out_rsync 
    21012120      IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     2121      sleep $DELAI 
    21022122    else 
    21032123      \rm out_rsync 
     
    21362156      \rm out_rsync 
    21372157      IGCM_debug_Print 2 "IGCM_sys_ncrename : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     2158      sleep $DELAI 
    21382159    else 
    21392160      \rm out_rsync 
     
    21722193      \rm out_rsync 
    21732194      IGCM_debug_Print 2 "IGCM_sys_ncwa : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     2195      sleep $DELAI 
    21742196    else 
    21752197      \rm out_rsync 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_obelix.ksh

    r782 r800  
    6464# Host and user names 
    6565# $hostname ou hostname 
    66 typeset HOST=${HOST:=$( hostname )} 
     66typeset  HOST=${HOST:=$( hostname )} 
    6767# $username ou whoami 
    68 typeset LOGIN=${LOGIN:=$( whoami )} 
     68typeset  LOGIN=${LOGIN:=$( whoami )} 
    6969# $hostname of the MASTER job 
    7070typeset MASTER=${MASTER:=$( hostname )} 
     
    111111 
    112112#==================================================== 
    113 #- SCRATCHDIR (=> ${R_DONNEES}) 
    114 if [ X${PBS_O_WORKDIR} != X ] ; then 
    115   typeset -r SCRATCHDIR=/scratch/$PBS_O_LOGNAME.$PBS_JOBID 
    116 #==${WORKDIR} 
    117 # cf /usr/Local/Env sur obelix 
    118 else 
    119   typeset -r SCRATCHDIR=/tmp 
    120 fi 
    121 #FOR DEBUG RUN : 
    122 #typeset -r SCRATCHDIR=/home/scratch01/${LOGIN} 
    123  
    124 #==================================================== 
    125113#- SUBMIT_DIR : submission dir 
    126114if [ X${PBS_O_WORKDIR} != X ] ; then 
     
    136124#==================================================== 
    137125#- ARCHIVE (dedicated to large files) 
    138 typeset -r ARCHIVE=${ARCHIVE:=/home/scratch01/${LOGIN}} 
     126typeset ARCHIVE=${ARCHIVE:=/home/scratch01/${LOGIN}} 
    139127 
    140128#==================================================== 
    141129#- STORAGE (dedicated to small/medium files) 
    142 typeset -r STORAGE=${ARCHIVE} 
     130typeset STORAGE=${ARCHIVE} 
    143131 
    144132#==================================================== 
    145133#- R_OUT 
    146 typeset -r R_OUT=${ARCHIVE}/IGCM_OUT 
     134typeset R_OUT=${ARCHIVE}/IGCM_OUT 
    147135 
    148136#==================================================== 
    149137#- R_FIG (hosting figures : monitoring and atlas, and/or small files) 
    150 typeset -r R_FIG=${STORAGE}/IGCM_OUT 
     138typeset R_FIG=${STORAGE}/IGCM_OUT 
    151139 
    152140#==================================================== 
    153141#- R_BUF (ONLY FOR double copy an scratch) 
    154 typeset -r R_BUF=/home/scratch01/${LOGIN}/IGCM_OUT 
     142typeset -r R_BUF=${STORAGE}/IGCM_OUT 
    155143 
    156144#==================================================== 
    157145#- BIG_DIR : BIG_DIR to store files waiting for rebuild 
    158 typeset -r BIG_DIR=${BIG_DIR:=${SCRATCHDIR}/REBUILD} 
     146typeset -r BIG_DIR=${BIG_DIR:=${STORAGE}/REBUILD} 
    159147 
    160148#==================================================== 
    161149#- RUN_DIR_PATH : Temporary working directory (=> TMP) 
    162 typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=${SCRATCHDIR}/tmp$$} 
     150typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/scratch/$PBS_O_LOGNAME.$PBS_JOBID} 
    163151 
    164152#==================================================== 
    165153#- HOST_MPIRUN_COMMAND 
    166154typeset -r HOST_MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND:="time mpirun"} 
    167  
    168 #========================================================= 
    169 #- Add "time" before mpirun command 
    170 MPIRUN_COMMAND="time "${MPIRUN_COMMAND} 
    171 echo ${MPIRUN_COMMAND} 
    172155 
    173156#==================================================== 
     
    201184#D-#================================================== 
    202185#D-function IGCM_sys_RshMaster 
    203 #D-* Purpose: Just a fake command to wrapp 
    204 #D-           IGCM_card call in post-treatment 
    205 #D-           Ulam do not see brodie filesystem 
    206 #D-           Cesium do not see all mercure filesystem 
    207 #D-           That's why we need this hack. 
     186#D-* Purpose: Connection to frontend machine. 
    208187#D-* Examples: 
    209188#D- 
     
    246225#D-* Examples: 
    247226#D- 
    248 (( RshPNum = 0 )) 
    249227function IGCM_sys_RshPost { 
    250228  IGCM_debug_PushStack "IGCM_sys_RshPost" $@ 
     
    252230    echo "IGCM_sys_RshPost :" $@ 
    253231  fi 
    254   ssh obelix3 exec /bin/ksh $@ > out_RshPost.${RshPNum} 
     232 
     233  #echo cat tmp_IGCM_sys_RshPost_$$ INITIAL 
     234  #cat tmp_IGCM_sys_RshPost_$$ 
     235  # keep standard input (stdin) for the loop onto temporary file 
     236  cat >tmp_IGCM_sys_RshPost_$$ 
     237 
     238# ============ FRONTEND START ============ # 
     239 
     240    ssh obelix3 exec /bin/ksh <tmp_IGCM_sys_RshPost_$$ 
    255241  if [ $? -gt 0 ] ; then 
    256242    echo "IGCM_sys_RshPost : erreur." 
    257243    IGCM_debug_Exit "IGCM_sys_RshPost" 
    258244  fi 
    259   (( RshPNum = RshPNum + 1 )) 
     245  # delete temporary file 
     246  \rm tmp_IGCM_sys_RshPost_$$ 
    260247  IGCM_debug_PopStack "IGCM_sys_RshPost" 
    261248} 
     
    285272  Job ended   : ${DateEnd} 
    286273  Output files are available in ${R_SAVE} 
     274  Files to be rebuild are temporarily available in ${REBUILD_DIR} 
     275  Pre-packed files are temporarily available in ${R_BUFR} 
    287276  Script files, Script Outputs and Debug files (if necessary) are available in ${SUBMIT_DIR} 
    288277END_MAIL 
     
    461450 
    462451#D-#================================================== 
     452#D-function IGCM_sys_IsFileArchived 
     453#D-* Purpose: Test file that must NOT EXISTS on Archive 
     454#D-* Examples: 
     455#D- 
     456function IGCM_sys_IsFileArchived { 
     457  IGCM_debug_PushStack "IGCM_sys_IsFileArchived" $@ 
     458  if ( $DEBUG_sys ) ; then 
     459    echo "IGCM_sys_IsFileArchived :" $@ 
     460  fi 
     461  typeset IsArchivedFlag 
     462  # Never archived for this system 
     463  IsArchivedFlag=1 
     464  IGCM_debug_PopStack "IGCM_sys_IsFileArchived" 
     465 
     466  return ${IsArchivedFlag} 
     467} 
     468 
     469#D-#================================================== 
    463470#D-function IGCM_sys_TestFileArchive 
    464471#D-* Purpose: Test file that must NOT EXISTS on Archive 
     
    578585    echo "IGCM_sys_Qsub :" $@ 
    579586  fi 
    580 #    /usr/local/bin/qsub -q short -o ${Script_Output} -N ${config_UserChoices_JobName}.${CumulPeriod} < $1 
    581587  /usr/local/bin/qsub -q medium -o ${Script_Output} -N ${config_UserChoices_JobName}.${CumulPeriod} < $1 
    582588  if [ $? -gt 0 ] ; then 
     
    12631269  eval ${2}=${dateF[5]} 
    12641270 
    1265     # donne la date filesys d'un fichier sur la machine work 
     1271  # donne la date filesys d'un fichier sur la machine work 
    12661272  IGCM_debug_PopStack "IGCM_sys_FichWork" 
    12671273} 
     
    13501356  list_opt=$@ 
    13511357 
    1352   # Invert Axis : t,x -> x,t  
     1358  # Invert Axis : t,x -> x,t 
    13531359  #               t,pres,x -> x,t,pres 
    13541360  # So that we can concatenate along x 
     
    14131419#      j3=${proc_stn[${iStation}]} 
    14141420      # Extract station 
    1415       # Invert Axis : t,x -> x,t  
     1421      # Invert Axis : t,x -> x,t 
    14161422      #               t,pres,x -> x,t,pres 
    14171423      # So that we can concatenate along x 
     
    14561462 
    14571463############################################################ 
    1458 # Build run file 
     1464# Build MPI/OMP scripts run file (dummy function) 
    14591465 
    14601466function IGCM_sys_build_run_file { 
     
    17371743# NCO OPERATOR 
    17381744 
    1739  
    17401745function IGCM_sys_ncap2 { 
    17411746  IGCM_debug_PushStack "IGCM_sys_ncap2" -- $@ 
     
    17591764      \rm out_rsync 
    17601765      IGCM_debug_Print 2 "IGCM_sys_ncap2 : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     1766      sleep $DELAI 
    17611767    else 
    17621768      \rm out_rsync 
     
    17951801      \rm out_rsync 
    17961802      IGCM_debug_Print 2 "IGCM_sys_ncatted : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     1803      sleep $DELAI 
    17971804    else 
    17981805      \rm out_rsync 
     
    18311838      \rm out_rsync 
    18321839      IGCM_debug_Print 2 "IGCM_sys_ncbo : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     1840      sleep $DELAI 
    18331841    else 
    18341842      \rm out_rsync 
     
    18671875      \rm out_rsync 
    18681876      IGCM_debug_Print 2 "IGCM_sys_ncdiff : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     1877      sleep $DELAI 
    18691878    else 
    18701879      \rm out_rsync 
     
    19031912      \rm out_rsync 
    19041913      IGCM_debug_Print 2 "IGCM_sys_ncea : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     1914      sleep $DELAI 
    19051915    else 
    19061916      \rm out_rsync 
     
    19391949      \rm out_rsync 
    19401950      IGCM_debug_Print 2 "IGCM_sys_ncecat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     1951      sleep $DELAI 
    19411952    else 
    19421953      \rm out_rsync 
     
    19751986      \rm out_rsync 
    19761987      IGCM_debug_Print 2 "IGCM_sys_ncflint : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     1988      sleep $DELAI 
    19771989    else 
    19781990      \rm out_rsync 
     
    20112023      \rm out_rsync 
    20122024      IGCM_debug_Print 2 "IGCM_sys_ncks : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     2025      sleep $DELAI 
    20132026    else 
    20142027      \rm out_rsync 
     
    20472060      \rm out_rsync 
    20482061      IGCM_debug_Print 2 "IGCM_sys_ncpdq : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     2062      sleep $DELAI 
    20492063    else 
    20502064      \rm out_rsync 
     
    20832097      \rm out_rsync 
    20842098      IGCM_debug_Print 2 "IGCM_sys_ncra : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     2099      sleep $DELAI 
    20852100    else 
    20862101      \rm out_rsync 
     
    21192134      \rm out_rsync 
    21202135      IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     2136      sleep $DELAI 
    21212137    else 
    21222138      \rm out_rsync 
     
    21552171      \rm out_rsync 
    21562172      IGCM_debug_Print 2 "IGCM_sys_ncrename : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     2173      sleep $DELAI 
    21572174    else 
    21582175      \rm out_rsync 
     
    21912208      \rm out_rsync 
    21922209      IGCM_debug_Print 2 "IGCM_sys_ncwa : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
     2210      sleep $DELAI 
    21932211    else 
    21942212      \rm out_rsync 
Note: See TracChangeset for help on using the changeset viewer.