Changeset 358 for trunk/libIGCM


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
Location:
trunk/libIGCM
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_TimeSeries_Checker

    r357 r358  
    259259                    TimeSeries2D=false 
    260260                    TimeSeries3D=false 
     261                    chunck=false 
    261262                    iLoop=${#ListDimension[*]} 
    262263                    j=0 
     
    309310                        # 
    310311                        if [ $( eval echo \${${compname}_Post_${FILE}_TimeSeriesVars${Dimension}} ) = ${NULL_STR} ] ; then 
    311                             IGCM_debug_Print 2 "Empty TS : ${compname}_Post_${FILE}_TimeSeriesVars${Dimension}" 
     312                            #IGCM_debug_Print 2 "Empty TS : ${compname}_Post_${FILE}_TimeSeriesVars${Dimension}" 
    312313                            #(( i=i+3 )) 
    313314                            continue 
     
    321322                        # Si on n'a pas de chunck, dans ce cas chunck_size=la durée de la simulation en années 
    322323                        YearsChunckLength=$( echo ${chunck_size} | sed -e "s/[yY]//" ) 
    323                         if ( [ ${chunck} = false ] || [ X${YearsChunckLength} = XOFF ] ) ; then 
    324                             YearsChunckLength=$(( YearEnd - YearBegin + 1 )) 
    325                         fi 
     324                        [ ${chunck} = false ] && YearsChunckLength=$(( YearEnd - YearBegin + 1 )) 
    326325 
    327326                        NbYearsChunckLoop=$(( ( YearEnd - YearBegin + 1 ) / YearsChunckLength )) 
     
    368367 
    369368                            echo 
    370                             if ( [ ${chunck} = true ] && [ ${SuccessRate} -ne 100 ] && [ $( eval echo \${${compname}_${flag_post}_ChunckJob${Dimension}} ) != OFF ]) ; then 
     369                            if ( [ ${chunck} = true ] && [ ${SuccessRate} -ne 100 ] ) ; then 
    371370                                ChunckCompletedFlag="" 
    372371                                CompletedFlag=${SavedCompletedFlag} 
  • trunk/libIGCM/AA_job

    r335 r358  
    9696#-Q- sx9mercure #PBS -l elapstim_req=24:00:00 # limite en temps elapsed 
    9797#-Q- sx9mercure #PBS -A gen6178               # groupe obligatoire sur SX9 
    98 #-Q- sx9mercure #PBS -q para-sx9              # para-sx9 or prio-sx9 (for CMIP5 top priorities) or test-sx9 (if elapsed<1h) 
     98#-Q- sx9mercure #PBS -q para-sx9              # para-sx9 or prio-sx9 (for CMIP5 top priorities), bckg-sx9 (run with free slot) and test-sx9 (if elapsed<1h) 
    9999#-Q- lxiv8 ###################### 
    100100#-Q- lxiv8 ## OBELIX      LSCE ## 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys.ksh

    r316 r358  
    1616# bypass specific internationalization (for awk) 
    1717export LC_ALL="C" 
     18 
     19# Set default umask (umask is 0027 on some machines : CCRT machine at least) 
     20umask 0022 
    1821 
    1922# By default, all libIGCM_sys save functions will protect output datas (RUN execution mode)  
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_cesium.ksh

    r356 r358  
    974974            fi 
    975975        fi 
    976         # 
    977         # USUAL WAY 
    978         cp $1 $2 > out_rsync 2>&1 
    979         RET=$? 
     976 
     977        exist=false 
     978        if [ -f $2 ] ; then 
     979            IGCM_debug_Print 1 "$2 already exist" 
     980            dmget $2 
     981            exist=true 
     982            if [ ! X$( diff $1 $2 ) = X ] ; then 
     983                IGCM_debug_Print 2 "$1 and $2 are the same file, we skip the copy" 
     984                skip=true 
     985            else 
     986                IGCM_debug_Print 2 "$1 and $2 are not the same file, we force the copy" 
     987                skip=false 
     988            fi 
     989        fi 
     990        #  
     991        if ( [ X${exist} = Xtrue] && [ X${skip} = Xfalse ] ) ; then 
     992            IGCM_sys_Chmod u+w $2 
     993        fi 
     994        # USUAL WAY 
     995        if ( [ X${skip} = Xfalse ] ) ; then 
     996            cp $1 $2 > out_rsync 2>&1 
     997            RET=$? 
     998            if [ ${RET} -gt 0 ] ; then 
     999                echo "IGCM_sys_Put_Out : error." 
     1000                cat out_rsync 
     1001                IGCM_debug_Exit "IGCM_sys_Put_Out" 
     1002            else 
     1003                rm out_rsync 
     1004            fi 
     1005        fi 
    9801006 
    9811007#       #RSYNC WITH NETWORK RSH CALL 
     
    9931019#       (( RET=RET+$? )) 
    9941020 
    995         if [ ${RET} -gt 0 ] ; then 
    996             echo "IGCM_sys_Put_Out : error." 
    997             cat out_rsync 
    998             IGCM_debug_Exit "IGCM_sys_Put_Out" 
    999         else 
    1000             rm out_rsync 
    1001         fi 
     1021 
    10021022    else 
    10031023        ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack 
  • 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.