Changeset 1077


Ignore:
Timestamp:
10/01/14 12:16:07 (10 years ago)
Author:
sdipsl
Message:

cosmetics (white space clean-up)

Location:
trunk/libIGCM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_card/libIGCM_card.ksh

    r931 r1077  
    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#================================================== 
    19   
     19 
    2020#D-#================================================================== 
    2121#D-libIGCM_card 
     
    2929#D-Option2= "Hello Mars" 
    3030#D- 
    31 #D-# My comments  
     31#D-# My comments 
    3232#D-[Recipes] 
    33 #D-Cake= "file1.doc"  
    34 #D-Starter= "file2.doc"  
     33#D-Cake= "file1.doc" 
     34#D-Starter= "file2.doc" 
    3535#D- 
    3636#D-[ColorValues] 
    3737#D-Red= 120 
    38 #D-Blue= 230  
    39 #D-Green= 178  
     38#D-Blue= 230 
     39#D-Green= 178 
    4040#D- 
    4141#D-[Couples] 
     
    211211      \rm ${tmpfile} 
    212212 
    213       # The tmpfile uses now the real path of the card to be modified,  
     213      # The tmpfile uses now the real path of the card to be modified, 
    214214      # not just a local tmpfile with PID. 
    215215      tmpfile=$1_mutex_$$ 
     
    241241    set +A tmpfiles -- $( ls $1_mutex_[0-9]* 2>/dev/null ) 
    242242    ((isleep=0)) 
    243     while [ ${#tmpfiles[@]} -gt 0 ] ; do  
     243    while [ ${#tmpfiles[@]} -gt 0 ] ; do 
    244244      echo "Conflict between two processes working on " $1 "!!!" ${tmpfiles[@]} 
    245245      sleep 1 
     
    294294function IGCM_card_Check 
    295295{ 
    296     IGCM_debug_PushStack "IGCM_card_Check"  
     296    IGCM_debug_PushStack "IGCM_card_Check" 
    297297#--------------------- 
    298298    if [ ! -n "${libIGCM}" ] ; then 
     
    314314    sleep 2 
    315315 
    316     if diff /tmp/IGCM_card_Test.$$.ref.failed ${libIGCM}/libIGCM_card/IGCM_card_Test.ref > /dev/null 2>&1 ; then  
     316    if diff /tmp/IGCM_card_Test.$$.ref.failed ${libIGCM}/libIGCM_card/IGCM_card_Test.ref > /dev/null 2>&1 ; then 
    317317      echo "Check libIGCM_card ...............................................[ OK ]" 
    318318      rm -f /tmp/IGCM_card_Test.$$.ref.failed 
    319     else  
     319    else 
    320320      echo "Check libIGCM_card ...........................................[ FAILED ]" 
    321321      echo "--Error--> Execution of ${libIGCM}/libIGCM_card/IGCM_card_Test.ksh" 
     
    329329 
    330330#--------------------- 
    331     IGCM_debug_PopStack "IGCM_card_Check"  
    332 } 
     331    IGCM_debug_PopStack "IGCM_card_Check" 
     332} 
  • trunk/libIGCM/libIGCM_config/libIGCM_config.ksh

    r1076 r1077  
    131131 
    132132  #==================================================== 
    133   # Define REBUILD_DIR : where we store files needing rebuild process   
     133  # Define REBUILD_DIR : where we store files needing rebuild process 
    134134  REBUILD_DIR=${R_BUFR}/REBUILD 
    135135  if [ ! X${TaskType} = Xchecking ] ; then 
  • trunk/libIGCM/libIGCM_post/libIGCM_post.ksh

    r1070 r1077  
    459459    # ----------------------------------------------------------------------------------- 
    460460    # Function IGCM_FlushPost called by pack_output.job has not been closed yet. Do it now 
    461     # Will submit Time Series OR Seasonal Average if needed  
     461    # Will submit Time Series OR Seasonal Average if needed 
    462462    # ----------------------------------------------------------------------------------- 
    463463    if [ -f ${R_BUFR}/FlushPost_${PeriodDateEnd}.ksh ] ; then 
     
    728728      PeriodSlaveMonth=$( echo ${SlaveFrequency} | sed -e "s/[mM]//" ) 
    729729      if ( [ ${PeriodSlaveMonth} -gt ${PeriodMasterMonth} ] || \ 
    730         [ $(( ${PeriodMasterMonth} % ${PeriodSlaveMonth} )) -ne 0 ] ) ;  then          
     730        [ $(( ${PeriodMasterMonth} % ${PeriodSlaveMonth} )) -ne 0 ] ) ;  then 
    731731        IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
    732732        IGCM_debug_Print 1 "${MasterName} frequency : ${MasterFrequency}" 
     
    778778 
    779779  # Used by IGCM_post_Configure 
    780   # - from libIGCM (config_UserChoices_PeriodLength frequency * CumulPeriod) and  
     780  # - from libIGCM (config_UserChoices_PeriodLength frequency * CumulPeriod) and 
    781781  # - post-processing compatible frequency (*Y, *M, *D, *y, *m, *d) 
    782782  # --> turn on post-processing submission when their modulo is zero 
     
    841841      PeriodSlaveMonth=$( echo ${SlaveFrequency} | sed -e "s/[mM]//" ) 
    842842      if [ $(( ( ${CumulPeriod} * ${PeriodSlaveMonth} - ${PeriodOffset} ) % ${PeriodMasterMonth} )) -eq 0 ] ;  then 
    843         if [ $(( ${CumulPeriod} * ${PeriodSlaveMonth} -  ${PeriodOffset} )) -ne 0 ] ; then  
     843        if [ $(( ${CumulPeriod} * ${PeriodSlaveMonth} -  ${PeriodOffset} )) -ne 0 ] ; then 
    844844          eval ${post_freq}=true ; POST=true 
    845845          [ X${3} = XNbPeriodPerFrequency ] && NbPeriodPerFrequency=$(( ${PeriodMasterMonth} / ${PeriodSlaveMonth} )) 
Note: See TracChangeset for help on using the changeset viewer.