Ignore:
Timestamp:
11/05/12 10:59:01 (12 years ago)
Author:
sdipsl
Message:
  • ensemble handling : remove machine specific
Location:
trunk/libIGCM/libIGCM_sys
Files:
7 edited

Legend:

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

    r739 r742  
    7575#D-#================================================== 
    7676 
     77# Submit command 
     78typeset SUBMIT=${SUBMIT:=ccc_mprun} 
    7779# rsync with path 
    7880typeset -r RSYNC=/usr/bin/rsync 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh

    r725 r742  
    7575#D-#================================================== 
    7676 
     77# Submit command 
     78typeset SUBMIT=${SUBMIT:=qsub} 
    7779# rsync with path 
    7880typeset -r RSYNC=/usr/bin/rsync 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercure.ksh

    r736 r742  
    7373#D-#================================================== 
    7474 
     75# Submit command 
     76typeset SUBMIT=${SUBMIT:=qsub} 
    7577# rsync with path 
    7678typeset -r RSYNC=/usr/bin/rsync 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercurex9.ksh

    r734 r742  
    7878#D-#================================================== 
    7979 
     80# Submit command 
     81typeset SUBMIT=${SUBMIT:=qsub} 
    8082# rsync with path 
    8183typeset -r RSYNC=/home/cont003/p86denv/SX_RSYNC/bin/rsync 
     
    352354    echo "IGCM_sys_Mkdir :" $@ 
    353355  fi 
     356 
     357  typeset NB_ESSAI DELAI status i 
     358  # number of tentative 
     359  NB_ESSAI=3 
     360  # time delay between tentative 
     361  DELAI=2 
     362 
    354363  if [ ! -d ${1} ]; then 
    355     \mkdir -p $1 
    356     if [ $? -gt 0 ] ; then 
    357       echo "IGCM_sys_Mkdir : erreur." 
    358       IGCM_debug_Exit "IGCM_sys_Mkdir" 
    359     fi 
     364    i=0 
     365    while [ $i -lt $NB_ESSAI ] ; do 
     366      \mkdir -p $1 
     367      status=$? 
     368      if [ ${status} -gt 0 ] ; then 
     369        IGCM_debug_Print 2 "IGCM_sys_Mkdir : mkdir failed error code ${status} ${i}/${NB_ESSAI}" 
     370        IGCM_debug_Print 2 "IGCM_sys_Mkdir : sleep ${DELAI} seconds and try again." 
     371        sleep $DELAI 
     372      else 
     373        break 
     374      fi 
     375      (( i = i + 1 )) 
     376    done 
    360377  fi 
    361378  # vérification : 
     
    377394    echo "IGCM_sys_MkdirArchive :" $@ 
    378395  fi 
    379   #- creation de repertoire sur le serveur fichier 
     396 
     397  typeset NB_ESSAI DELAI status i 
     398  # number of tentative 
     399  NB_ESSAI=3 
     400  # time delay between tentative 
     401  DELAI=2 
     402 
    380403  if [ ! -d ${1} ]; then 
    381     \mkdir -p $1 
    382     if [ $? -gt 0 ] ; then 
    383       echo "IGCM_sys_MkdirArchive : erreur." 
    384       IGCM_debug_Exit "IGCM_sys_MkdirArchive" 
    385     fi 
     404    i=0 
     405    while [ $i -lt $NB_ESSAI ] ; do 
     406      \mkdir -p $1 
     407      status=$? 
     408      if [ ${status} -gt 0 ] ; then 
     409        IGCM_debug_Print 2 "IGCM_sys_MkdirArchive : mkdir failed error code ${status} ${i}/${NB_ESSAI}" 
     410        IGCM_debug_Print 2 "IGCM_sys_MkdirArchive : sleep ${DELAI} seconds and try again." 
     411        sleep $DELAI 
     412      else 
     413        break 
     414      fi 
     415      (( i = i + 1 )) 
     416    done 
     417  fi 
     418 
     419  # vérification : 
     420  if [ ! -d ${1} ] ; then 
     421    echo "IGCM_sys_MkdirArchive : erreur." 
     422    IGCM_debug_Exit "IGCM_sys_MkdirArchive" 
    386423  fi 
    387424  IGCM_debug_PopStack "IGCM_sys_MkdirArchive" 
     
    600637    echo "IGCM_sys_Tar :" $@ 
    601638  fi 
    602   \tar cf $@ 
     639  IGCM_sys_RshMaster "\tar $@" 
    603640  if [ $? -gt 0 ] ; then 
    604641    echo "IGCM_sys_Tar : erreur." 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_obelix.ksh

    r725 r742  
    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 
    70 typeset  MASTER=${MASTER:=$( hostname )} 
     70typeset MASTER=${MASTER:=$( hostname )} 
    7171 
    7272#D- 
     
    7575#D-#================================================== 
    7676 
     77# Submit command 
     78typeset SUBMIT=${SUBMIT:=qsub} 
    7779# rsync with path 
    7880typeset -r RSYNC=/usr/bin/rsync 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_titane.ksh

    r734 r742  
    7575#D-#================================================== 
    7676 
     77# Submit command 
     78typeset SUBMIT=${SUBMIT:=ccc_mprun} 
    7779# rsync with path 
    7880typeset -r RSYNC=/usr/bin/rsync 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_vargas.ksh

    r725 r742  
    7575#D-#================================================== 
    7676 
     77# Submit command 
     78typeset SUBMIT=${SUBMIT:=llsubmit} 
    7779# rsync with path 
    7880typeset -r RSYNC=/usr/local/bin/rsync 
Note: See TracChangeset for help on using the changeset viewer.