Ignore:
Timestamp:
10/04/10 17:35:24 (14 years ago)
Author:
sdipsl
Message:
  • Correct checker behavior regarding time series that are set to OFF
  • Some cosmetics
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_TimeSeries_Checker

    r358 r362  
    129129 
    130130# Name of this job 
    131 JobName=${JobName:=HISTORC2} 
     131JobName=${JobName:=v2.historical1} 
    132132 
    133133# répertoire courrant 
     
    154154 
    155155######################################################################## 
     156 
     157#set -vx 
    156158 
    157159# First of all 
     
    163165 
    164166echo 
    165 IGCM_debug_Print 1 "DefineArrayFromOption  : config_UserChoices" 
     167IGCM_debug_Print 1 "DefineVariableFromOption  : config_UserChoices" 
    166168IGCM_debug_PrintVariables 3 config_UserChoices_JobName 
    167169#IGCM_debug_PrintVariables 3 config_UserChoices_SpaceName 
     
    175177    IGCM_card_DefineVariableFromOption ${CARD_DIR}/run.card Configuration PeriodState 
    176178    IGCM_card_DefineVariableFromOption ${CARD_DIR}/run.card PostProcessing TimeSeriesCompleted 
     179    IGCM_debug_Print 1 "DefineVariableFromOption  : run_Configuration" 
    177180    IGCM_debug_PrintVariables 3 run_Configuration_OldPrefix 
    178181    IGCM_debug_PrintVariables 3 run_Configuration_PeriodState 
     182    IGCM_debug_Print 1 "DefineVariableFromOption  : run_PostProcessing" 
    179183    IGCM_debug_PrintVariables 3 run_PostProcessing_TimeSeriesCompleted 
    180184    if [ X${run_Configuration_PeriodState} != X"Completed" ] ; then 
     
    189193fi 
    190194SavedCompletedFlag=${CompletedFlag} 
     195DateBegin=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateBegin} ) 
     196 
     197IGCM_date_GetYearMonth ${DateBegin} YearBegin MonthBegin 
     198IGCM_date_GetYearMonth ${DateEnd}   YearEnd   MonthEnd 
    191199 
    192200echo 
    193 echo "DateEnd for TimeSeries_Checker : " ${DateEnd} 
    194 IGCM_date_GetYearMonth ${DateEnd}   YearEnd   MonthEnd 
    195 echo "YearEnd MonthEnd for TimeSeries_Checker : " ${YearEnd} ${MonthEnd} 
    196 echo "CompletedFlag = " ${CompletedFlag} 
     201IGCM_debug_Print 1 "DateBegin for TimeSeries_Checker : "${DateBegin} 
     202IGCM_debug_Print 1 "DateEnd   for TimeSeries_Checker : "${DateEnd} 
     203IGCM_debug_Print 1 "YearBegin MonthBegin for TimeSeries_Checker : ${YearBegin} ${MonthBegin}" 
     204IGCM_debug_Print 1 "YearEnd   MonthEnd   for TimeSeries_Checker : ${YearEnd} ${MonthEnd}" 
     205IGCM_debug_Print 1 "CompletedFlag = "${CompletedFlag} 
    197206echo 
    198  
    199  
    200 #set -vx 
    201207 
    202208#==================================================== 
     
    288294                        fi 
    289295                        (( j=j+1 )) 
    290  
     296                        # 
     297                        # If TimeSeriesVars list is empty or OFF we skip 
     298                        # 
     299                        if ( [ $( eval echo \${${compname}_${flag_post}_TimeSeriesVars${Dimension}} ) = ${NULL_STR} ] || \ 
     300                            [ ${chunck_size} = OFF ] ) ; then 
     301                            #IGCM_debug_Print 2 "Empty TS : ${compname}_Post_${FILE}_TimeSeriesVars${Dimension}" 
     302                            #(( i=i+3 )) 
     303                            continue 
     304                        fi 
    291305                        # 
    292306                        #  ICI ON TESTE QUE LES FICHIERS TS SONT LA! 
     
    305319                           INS) TS_Dir=TS_INS ;; 
    306320                        esac 
    307  
    308                         # 
    309                         # If TimeSeriesVars list is empty we skip 
    310                         # 
    311                         if [ $( eval echo \${${compname}_Post_${FILE}_TimeSeriesVars${Dimension}} ) = ${NULL_STR} ] ; then 
    312                             #IGCM_debug_Print 2 "Empty TS : ${compname}_Post_${FILE}_TimeSeriesVars${Dimension}" 
    313                             #(( i=i+3 )) 
    314                             continue 
    315                         fi 
    316321                        # 
    317322                        # We need LIST of variables not allready produced (useful for standalone mode) 
Note: See TracChangeset for help on using the changeset viewer.