Ignore:
Timestamp:
09/30/10 17:09:28 (14 years ago)
Author:
sdipsl
Message:
  • bug fix in TimeSeries_Checker with uninitialized variable
  • remove workaround due to this bug
  • on CCRT post-processing machine: put_Out will skip "cp" if file already exist AND are identical, will OVERWRITE otherwise! Ease the rebuild life a lot :-)
  • umask set to 0022 by default for all machine. umask is 0027 at CCRT by default
  • add a comment in AA_job
File:
1 edited

Legend:

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

    r356 r358  
    817817            fi 
    818818        fi 
    819         # 
    820         # USUAL WAY 
    821         \cp $1 $2 > out_rsync 2>&1 
    822         RET=$? 
     819 
     820        exist=false 
     821        if [ -f $2 ] ; then 
     822            IGCM_debug_Print 1 "$2 already exist" 
     823            dmget $2 
     824            exist=true 
     825            if [ ! X$( diff $1 $2 ) = X ] ; then 
     826                IGCM_debug_Print 2 "$1 and $2 are the same file, we skip the copy" 
     827                skip=true 
     828            else 
     829                IGCM_debug_Print 2 "$1 and $2 are not the same file, we force the copy" 
     830                skip=false 
     831            fi 
     832        fi 
     833        #  
     834        if ( [ X${exist} = Xtrue] && [ X${skip} = Xfalse ] ) ; then 
     835            IGCM_sys_Chmod u+w $2 
     836        fi 
     837        # USUAL WAY 
     838        if ( [ X${skip} = Xfalse ] ) ; then 
     839            \cp $1 $2 > out_rsync 2>&1 
     840            RET=$? 
     841            if [ ${RET} -gt 0 ] ; then 
     842                echo "IGCM_sys_Put_Out : error." 
     843                cat out_rsync 
     844                IGCM_debug_Exit "IGCM_sys_Put_Out" 
     845            else 
     846                rm out_rsync 
     847            fi 
     848        fi 
    823849 
    824850#       #RSYNC WITH NETWORK RSH CALL 
     
    836862#       (( RET=RET+$? )) 
    837863 
    838         if [ ${RET} -gt 0 ] ; then 
    839             echo "IGCM_sys_Put_Out : error." 
    840             cat out_rsync 
    841             IGCM_debug_Exit "IGCM_sys_Put_Out" 
    842         else 
    843             rm out_rsync 
    844         fi 
    845864    else 
    846865        ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack 
Note: See TracChangeset for help on using the changeset viewer.