Changeset 809


Ignore:
Timestamp:
03/05/13 10:18:46 (11 years ago)
Author:
sdipsl
Message:

Activate IGCM_sys_Chmod from DRYRUN=3 and add BoundaryFiles? list in FileToBeDeleted list at each Period.
Whitespace cleanup (from emacs macro) on libIGCM_sys_iitm.ksh
see #105

Location:
trunk/libIGCM
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_job

    r804 r809  
    162162# ------------------------------------------------------------------------------------- 
    163163# | DRYRUN=  |  Date computations, | sys_Get    |  Exe    | sys_Put_Out; sys_Put_Rest | 
    164 # |          |  Cp/Exe param files |            |  Chmod  |                           | 
     164# |          |  Cp/Exe/param/files |            |         |                           | 
     165# |          |  Chmod Qsub         |            |         |                           | 
    165166# ------------------------------------------------------------------------------------- 
    166167# |    0     |       yes           |    yes     |  yes    |      yes                  | 
  • trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh

    r804 r809  
    489489        if [ $? = 0 ] ; then 
    490490          IGCM_sys_Get ${file_in} ${file_out} 
    491           #IGCM_comp_PrepareDeletedFiles ${file_in} ${file_out} 
     491          IGCM_comp_PrepareDeletedFiles ${file_in} ${file_out} 
    492492        else 
    493493          IGCM_sys_Cp ${file_in} ${file_out} 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_ada.ksh

    r804 r809  
    4343# ------------------------------------------------------------------------------------- 
    4444# | DRYRUN=  |  Date computations, | sys_Get    |  Exe    | sys_Put_Out; sys_Put_Rest | 
    45 # |          |  Cp/Exe param files |            |  Chmod  |                           | 
    46 # |          |      Qsub           |            |         |                           | 
     45# |          |  Cp/Exe/param/files |            |         |                           | 
     46# |          |  Chmod Qsub         |            |         |                           | 
    4747# ------------------------------------------------------------------------------------- 
    4848# |    0     |       yes           |    yes     |  yes    |      yes                  | 
     
    414414    echo "IGCM_sys_Chmod :" $@ 
    415415  fi 
    416   if [ $DRYRUN -le 1 ]; then 
    417     \chmod $@ 
    418     if [ $? -gt 0 ] ; then 
    419       echo "IGCM_sys_Chmod : erreur." 
    420       IGCM_debug_Exit "IGCM_sys_Chmod" 
    421     fi 
    422   else 
    423     ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack 
     416  \chmod $@ 
     417  if [ $? -gt 0 ] ; then 
     418    echo "IGCM_sys_Chmod : erreur." 
     419    IGCM_debug_Exit "IGCM_sys_Chmod" 
    424420  fi 
    425421  IGCM_debug_PopStack "IGCM_sys_Chmod" 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh

    r808 r809  
    4343# ------------------------------------------------------------------------------------- 
    4444# | DRYRUN=  |  Date computations, | sys_Get    |  Exe    | sys_Put_Out; sys_Put_Rest | 
    45 # |          |  Cp/Exe param files |            |  Chmod  |                           | 
    46 # |          |      Qsub           |            |         |                           | 
     45# |          |  Cp/Exe/param/files |            |         |                           | 
     46# |          |  Chmod Qsub         |            |         |                           | 
    4747# ------------------------------------------------------------------------------------- 
    4848# |    0     |       yes           |    yes     |  yes    |      yes                  | 
     
    477477    echo "IGCM_sys_Chmod :" $@ 
    478478  fi 
    479   if [ $DRYRUN -le 1 ]; then 
    480     \chmod $@ 
    481     if [ $? -gt 0 ] ; then 
    482       echo "IGCM_sys_Chmod : erreur." 
    483       IGCM_debug_Exit "IGCM_sys_Chmod" 
    484     fi 
    485   else 
    486     ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack 
     479  \chmod $@ 
     480  if [ $? -gt 0 ] ; then 
     481    echo "IGCM_sys_Chmod : erreur." 
     482    IGCM_debug_Exit "IGCM_sys_Chmod" 
    487483  fi 
    488484  IGCM_debug_PopStack "IGCM_sys_Chmod" 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh

    r804 r809  
    4343# ------------------------------------------------------------------------------------- 
    4444# | DRYRUN=  |  Date computations, | sys_Get    |  Exe    | sys_Put_Out; sys_Put_Rest | 
    45 # |          |  Cp/Exe param files |            |  Chmod  |                           | 
    46 # |          |      Qsub           |            |         |                           | 
     45# |          |  Cp/Exe/param/files |            |         |                           | 
     46# |          |  Chmod Qsub         |            |         |                           | 
    4747# ------------------------------------------------------------------------------------- 
    4848# |    0     |       yes           |    yes     |  yes    |      yes                  | 
     
    372372    echo "IGCM_sys_Chmod :" $@ 
    373373  fi 
    374   if [ $DRYRUN -le 1 ]; then 
    375     \chmod $@ 
    376     if [ $? -gt 0 ] ; then 
    377       echo "IGCM_sys_Chmod : erreur." 
    378       IGCM_debug_Exit "IGCM_sys_Chmod" 
    379     fi 
    380   else 
    381     ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack 
     374  \chmod $@ 
     375  if [ $? -gt 0 ] ; then 
     376    echo "IGCM_sys_Chmod : erreur." 
     377    IGCM_debug_Exit "IGCM_sys_Chmod" 
    382378  fi 
    383379  IGCM_debug_PopStack "IGCM_sys_Chmod" 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_iitm.ksh

    r804 r809  
    1414#========================================================= 
    1515# The documentation of this file can be automatically generated 
    16 # if you use the prefix #D- for comments to be extracted.  
     16# if you use the prefix #D- for comments to be extracted. 
    1717# Extract with command: cat lib* | grep "^#D-" | cut -c "4-" 
    1818#========================================================= 
     
    2222#D-#================================================== 
    2323#D- 
    24 #D- This ksh library if a layer under some usefull  
     24#D- This ksh library if a layer under some usefull 
    2525#D-environment variables and shell commands. 
    2626#D-All those definitions depend on host particularities. 
     
    4343# ------------------------------------------------------------------------------------- 
    4444# | DRYRUN=  |  Date computations, | sys_Get    |  Exe    | sys_Put_Out; sys_Put_Rest | 
    45 # |          |  Cp/Exe param files |            |  Chmod  |                           | 
    46 # |          |      Qsub           |            |         |                           | 
     45# |          |  Cp/Exe/param/files |            |         |                           | 
     46# |          |  Chmod Qsub         |            |         |                           | 
    4747# ------------------------------------------------------------------------------------- 
    4848# |    0     |       yes           |    yes     |  yes    |      yes                  | 
     
    6262 
    6363#===================================================== 
    64 # Host and user names  
     64# Host and user names 
    6565# $hostname ou hostname 
    6666typeset  HOST=${HOST:=$( hostname )} 
     
    102102 
    103103#==================================================== 
    104 #- Mirror libIGCM from iitm to a post-processing machine  
     104#- Mirror libIGCM from iitm to a post-processing machine 
    105105typeset -r MirrorlibIGCM=${MirrorlibIGCM:=false} 
    106106 
     
    291291    fi 
    292292    #- creation de repertoire sur le serveur fichier 
    293     if [ ! -d ${1} ]; then  
     293    if [ ! -d ${1} ]; then 
    294294      \mkdir -p $1 
    295295      if [ $? -gt 0 ] ; then 
     
    329329      echo "IGCM_sys_Chmod :" $@ 
    330330    fi 
    331     if [ $DRYRUN -le 1 ]; then 
    332       \chmod $@ 
    333       if [ $? -gt 0 ] ; then 
    334         echo "IGCM_sys_Chmod : erreur." 
    335         IGCM_debug_Exit "IGCM_sys_Chmod" 
    336       fi 
    337     else 
    338       ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack 
     331    \chmod $@ 
     332    if [ $? -gt 0 ] ; then 
     333      echo "IGCM_sys_Chmod : erreur." 
     334      IGCM_debug_Exit "IGCM_sys_Chmod" 
    339335    fi 
    340336    IGCM_debug_PopStack "IGCM_sys_Chmod" 
     
    517513 
    518514#D-************************* 
    519 #D- File transfer functions  
     515#D- File transfer functions 
    520516#D-************************* 
    521517#D- 
     
    586582    elif [ $MYLANG = "en" ] ; then 
    587583      case $RET in 
    588           0)  return;;         
     584          0)  return;; 
    589585          1)  echo "rsync error : Syntax or usage error " 
    590586            return;; 
     
    10161012#D-#================================================== 
    10171013#D-function IGCM_sys_GetDate_FichArchive 
    1018 #D-* Purpose: donne la date filesys d'un fichier sur le filesystem ARCHIVE  
     1014#D-* Purpose: donne la date filesys d'un fichier sur le filesystem ARCHIVE 
    10191015#D-* Examples: 
    10201016#D- 
     
    10821078 
    10831079    IGCM_debug_PopStack "IGCM_sys_desactiv_variables" 
    1084    
     1080 
    10851081} 
    10861082 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_obelix.ksh

    r804 r809  
    4343# ------------------------------------------------------------------------------------- 
    4444# | DRYRUN=  |  Date computations, | sys_Get    |  Exe    | sys_Put_Out; sys_Put_Rest | 
    45 # |          |  Cp/Exe param files |            |  Chmod  |                           | 
    46 # |          |      Qsub           |            |         |                           | 
     45# |          |  Cp/Exe/param/files |            |         |                           | 
     46# |          |  Chmod Qsub         |            |         |                           | 
    4747# ------------------------------------------------------------------------------------- 
    4848# |    0     |       yes           |    yes     |  yes    |      yes                  | 
     
    381381    echo "IGCM_sys_Chmod :" $@ 
    382382  fi 
    383   if [ $DRYRUN -le 1 ]; then 
    384     \chmod $@ 
    385     if [ $? -gt 0 ] ; then 
    386       echo "IGCM_sys_Chmod : erreur." 
    387       IGCM_debug_Exit "IGCM_sys_Chmod" 
    388     fi 
    389   else 
    390     ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack 
     383  \chmod $@ 
     384  if [ $? -gt 0 ] ; then 
     385    echo "IGCM_sys_Chmod : erreur." 
     386    IGCM_debug_Exit "IGCM_sys_Chmod" 
    391387  fi 
    392388  IGCM_debug_PopStack "IGCM_sys_Chmod" 
Note: See TracChangeset for help on using the changeset viewer.