Ignore:
Timestamp:
04/13/11 10:32:33 (13 years ago)
Author:
sdipsl
Message:
  • Bugfix on titane. Exe files has never been saved and ExeFileSize? in the run.card has always been false. Due to ExeSize? variable scope, decalare local to a function but assigned in another function. It works by chance on some machine, because ExeSize? is not initialized...
  • Bugfix of the revision [433]. out_orchidee was always save in SUBMIT_DIR.
  • Now if a job fail : all concatenated debug files (OutputTextFiles?) will be place in SUBMIT_DIR/Debug for convenience.
  • Continuation of [431], concatenate text files following numerical instead of alphabetical order. MAF.
  • Cosmetic and verbosty has been revisited.
File:
1 edited

Legend:

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

    r455 r457  
    2020    # Debug Print : 
    2121    echo 
    22     IGCM_debug_Print 1 "IGCM_post_Configure :" 
    23     echo 
     22    IGCM_debug_Print 1 "IGCM_post_Configure" 
    2423    # 
    2524    # Initialize 
     
    8584    done 
    8685    # 
    87     echo 
    88     IGCM_debug_Print 1 "POST-TREATEMENT flag value : ${POST}" 
     86    IGCM_debug_Print 2 "POST-TREATEMENT flag value : ${POST}" 
    8987    # 
    9088    IGCM_debug_PopStack "IGCM_post_Configure" 
     
    10199    if [ ${POST} = true ]; then 
    102100        echo 
    103         IGCM_debug_Print 1 "IGCM_post_Submit :" 
     101        IGCM_debug_Print 1 "IGCM_post_Submit" 
    104102        echo 
    105         IGCM_debug_Print 1 "POST_DIR = ${POST_DIR}" 
     103        IGCM_debug_Print 2 "POST_DIR = ${POST_DIR}" 
    106104    fi 
    107105 
     
    109107    if [ ${TimeSeriesFrequency} = true ] ; then 
    110108 
    111         IGCM_debug_Print 2 "TIME SERIES POST-PROCESSING ACTIVATED :" 
     109        IGCM_debug_Print 1 "TIME SERIES POST-PROCESSING ACTIVATED" 
    112110        echo 
    113111 
     
    130128            if [ X$( eval echo \${TimeSeries${Dimension}} ) = Xtrue ] ; then 
    131129                # 
    132                 IGCM_debug_Print 2 "TIME SERIES POST-PROCESSING ${Dimension} ACTIVATED :" 
     130                IGCM_debug_Print 1 "TIME SERIES POST-PROCESSING ${Dimension} ACTIVATED" 
    133131                echo 
    134132                # 
     
    219217            if [ X$( eval echo \${TimeSeriesChunck${Dimension}} ) = Xtrue ] ; then 
    220218                # 
    221                 IGCM_debug_Print 2 "TIME SERIES POST-PROCESSING ${Dimension} WITH CHUNCK ACTIVATED :" 
     219                IGCM_debug_Print 1 "TIME SERIES POST-PROCESSING ${Dimension} WITH CHUNCK ACTIVATED" 
    222220                echo 
    223221                # Need to Remember This One 
     
    340338    if [ ${SeasonalFrequency} = true ] ; then 
    341339        # 
    342         IGCM_debug_Print 2 "SEASONNAL POST-TREATMENT :" 
     340        IGCM_debug_Print 1 "SEASONNAL POST-TREATMENT" 
    343341        echo 
    344342        # 
     
    435433    if [ ${RebuildFrequency} = true ] ; then 
    436434        if ( [ ${config_Post_RebuildFromArchive} = true ] ) ; then 
    437             IGCM_debug_Print 2 "REBUILD POST-TREATMENT FROM ARCHIVE:" 
     435            IGCM_debug_Print 1 "REBUILD POST-TREATMENT FROM ARCHIVE" 
    438436            echo 
    439437            # 
    440438            script=rebuild_fromArchive 
    441439        else 
    442             IGCM_debug_Print 2 "REBUILD POST-TREATMENT FROM WORKDIR:" 
     440            IGCM_debug_Print 1 "REBUILD POST-TREATMENT FROM WORKDIR" 
    443441            echo 
    444442            # 
     
    505503    SlaveFrequency=$( eval echo \${${2}} ) 
    506504 
    507     IGCM_debug_Print 1 "IGCM_post_CheckModuloFrequency : Master=${MasterFrequency} Slave=${SlaveFrequency}" 
     505    IGCM_debug_Print 2 "IGCM_post_CheckModuloFrequency : Master=${MasterFrequency} Slave=${SlaveFrequency}" 
    508506 
    509507    case ${MasterFrequency} in 
     
    515513                    if ( [ ${PeriodSlaveYear} -gt ${PeriodMasterYear} ] || \ 
    516514                        [ $(( ${PeriodMasterYear} % ${PeriodSlaveYear} )) -ne 0 ] );  then 
    517                         IGCM_debug_Print 3 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
    518                         IGCM_debug_Print 3 "${MasterName} frequency : ${MasterFrequency}" 
     515                        IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
     516                        IGCM_debug_Print 1 "${MasterName} frequency : ${MasterFrequency}" 
    519517                        IGCM_debug_Exit "Check your frequency" 
    520518                    fi ;; 
     
    523521                    if ( [ ${PeriodSlaveMonth} -gt $(( ${PeriodMasterYear} * 12 )) ] || \ 
    524522                        [ $(( ( ${PeriodMasterYear} * 12 ) % ${PeriodSlaveMonth} )) -ne 0 ] ) ; then 
    525                         IGCM_debug_Print 3 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
    526                         IGCM_debug_Print 3 "${MasterName} frequency : ${MasterFrequency}" 
     523                        IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
     524                        IGCM_debug_Print 1 "${MasterName} frequency : ${MasterFrequency}" 
    527525                        IGCM_debug_Exit "Check your frequency" 
    528526                    fi ;; 
     
    533531                        if ( [ ${PeriodSlaveDay} -gt $(( ${PeriodMasterYear} * ${NbDays} )) ] || \ 
    534532                            [ $(( ( ${PeriodMasterYear} * ${NbDays} ) % ${PeriodSlaveDay} )) -ne 0 ] ; ) then 
    535                             IGCM_debug_Print 3 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
    536                             IGCM_debug_Print 3 "${MasterName} frequency : ${MasterFrequency}" 
     533                            IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
     534                            IGCM_debug_Print 1 "${MasterName} frequency : ${MasterFrequency}" 
    537535                            IGCM_debug_Exit "Check your frequency" 
    538536                        fi 
    539537                    else 
    540                         IGCM_debug_Print 3 "For ${MasterName} with leap calendar:" 
    541                         IGCM_debug_Print 3 "We have a daily ${SlaveName} frequency and ${MasterName}=${MasterFrequency}" 
    542                         IGCM_debug_Print 3 "No post-treatment. Case not properly handle at this moment by libIGCM. Sorry" 
     538                        IGCM_debug_Print 1 "For ${MasterName} with leap calendar:" 
     539                        IGCM_debug_Print 1 "We have a daily ${SlaveName} frequency and ${MasterName}=${MasterFrequency}" 
     540                        IGCM_debug_Print 1 "No post-treatment. Case not properly handle at this moment by libIGCM. Sorry" 
    543541                        IGCM_debug_Exit    "Check your frequency ${MasterName} and choose a daily frequency for this one too." 
    544542                    fi ;; 
     
    551549                    if ( [ ${PeriodMasterMonth} -gt $(( ${PeriodSlaveYear} * 12 )) ] || \ 
    552550                        [ $(( ${PeriodMasterMonth} % ( ${PeriodSlaveYear} * 12 ) )) -ne 0 ] ) ; then 
    553                         IGCM_debug_Print 3 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
    554                         IGCM_debug_Print 3 "${MasterName} frequency : ${MasterFrequency}" 
     551                        IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
     552                        IGCM_debug_Print 1 "${MasterName} frequency : ${MasterFrequency}" 
    555553                        IGCM_debug_Exit "Check your frequency" 
    556554                    fi ;; 
     
    559557                    if ( [ ${PeriodSlaveMonth} -gt ${PeriodMasterMonth} ] || \ 
    560558                        [ $(( ${PeriodMasterMonth} % ${PeriodSlaveMonth} )) -ne 0 ] ) ;  then            
    561                         IGCM_debug_Print 3 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
    562                         IGCM_debug_Print 3 "${MasterName} frequency : ${MasterFrequency}" 
     559                        IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
     560                        IGCM_debug_Print 1 "${MasterName} frequency : ${MasterFrequency}" 
    563561                        IGCM_debug_Exit "Check your frequency" 
    564562                    fi ;; 
    565563                *D|*d) 
    566                     IGCM_debug_Print 3 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
    567                     IGCM_debug_Print 3 "${MasterName} frequency : ${MasterFrequency}" 
     564                    IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
     565                    IGCM_debug_Print 1 "${MasterName} frequency : ${MasterFrequency}" 
    568566                    IGCM_debug_Exit "Check your frequency" ;; 
    569567            esac ;; 
     
    572570            case ${SlaveFrequency} in 
    573571                *Y|*y) 
    574                     IGCM_debug_Print 3 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
    575                     IGCM_debug_Print 3 "${MasterName} frequency ${MasterFrequency}" 
     572                    IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
     573                    IGCM_debug_Print 1 "${MasterName} frequency ${MasterFrequency}" 
    576574                    IGCM_debug_Exit "Check your frequency" ;; 
    577575                *M|*m) 
    578                     IGCM_debug_Print 3 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
    579                     IGCM_debug_Print 3 "${MasterName} frequency ${MasterFrequency}" 
     576                    IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
     577                    IGCM_debug_Print 1 "${MasterName} frequency ${MasterFrequency}" 
    580578                    IGCM_debug_Exit "Check your frequency" ;; 
    581579                *D|*d) 
     
    583581                    if ( [ ${PeriodSlaveDay} -gt ${PeriodMasterDay} ] || \ 
    584582                        [ $(( ${PeriodMasterDay} % ${PeriodSlaveDay} )) -ne 0 ] ) ;  then 
    585                         IGCM_debug_Print 3 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
    586                         IGCM_debug_Print 3 "${MasterName} frequency : ${MasterFrequency}" 
     583                        IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 
     584                        IGCM_debug_Print 1 "${MasterName} frequency : ${MasterFrequency}" 
    587585                        IGCM_debug_Exit "Check your frequency" 
    588586                    fi ;; 
     
    591589            ;; 
    592590        *) 
    593             IGCM_debug_Print 3 "KeyWord ${MasterFrequency} not allowed for ${MasterName} in config.card" 
     591            IGCM_debug_Print 1 "KeyWord ${MasterFrequency} not allowed for ${MasterName} in config.card" 
    594592            IGCM_debug_Exit "Check your ${MasterName} in config.card" ;; 
    595593    esac 
     
    622620 
    623621    echo 
    624     IGCM_debug_Print 1 "IGCM_post_ModuloRuntimeFrequency : Master=${MasterFrequency} Slave=${SlaveFrequency} CumulPeriod=${CumulPeriod}" 
    625     echo 
     622    IGCM_debug_Print 2 "IGCM_post_ModuloRuntimeFrequency : Master=${MasterFrequency} Slave=${SlaveFrequency} CumulPeriod=${CumulPeriod}" 
    626623 
    627624    case ${MasterFrequency} in 
     
    675672                    fi;; 
    676673                *D|*d) 
    677                     IGCM_debug_Print 3 "PeriodLength frequency ${SlaveFrequency} not compatbile with" 
    678                     IGCM_debug_Print 3 "${flag_post} frequency : ${MasterFrequency} " ;; 
     674                    IGCM_debug_Print 1 "PeriodLength frequency ${SlaveFrequency} not compatbile with" 
     675                    IGCM_debug_Print 1 "${flag_post} frequency : ${MasterFrequency} " ;; 
    679676            esac ;; 
    680677        *D|*d) 
     
    682679            case ${SlaveFrequency} in 
    683680                *Y|*y) 
    684                     IGCM_debug_Print 3 "PeriodLength frequency ${SlaveFrequency} not compatbile with" 
    685                     IGCM_debug_Print 3 "${flag_post} frequency : ${MasterFrequency} " ;; 
     681                    IGCM_debug_Print 1 "PeriodLength frequency ${SlaveFrequency} not compatbile with" 
     682                    IGCM_debug_Print 1 "${flag_post} frequency : ${MasterFrequency} " ;; 
    686683                *M|*m) 
    687                     IGCM_debug_Print 3 "PeriodLength frequency ${SlaveFrequency} not compatbile with" 
    688                     IGCM_debug_Print 3 "${flag_post} frequency : ${MasterFrequency} " ;; 
     684                    IGCM_debug_Print 1 "PeriodLength frequency ${SlaveFrequency} not compatbile with" 
     685                    IGCM_debug_Print 1 "${flag_post} frequency : ${MasterFrequency} " ;; 
    689686                *D|*d) 
    690687                    PeriodSlaveDay=$( echo ${SlaveFrequency} | sed -e "s/[dD]//" ) 
     
    699696            ;; 
    700697        *) 
    701             IGCM_debug_Print 3 "KeyWord not allowed for ${post_freq} in config.card" 
     698            IGCM_debug_Print 1 "KeyWord not allowed for ${post_freq} in config.card" 
    702699            ;; 
    703700    esac 
Note: See TracChangeset for help on using the changeset viewer.