Ignore:
Timestamp:
10/18/12 11:05:46 (12 years ago)
Author:
sdipsl
Message:
  • use IGCM_config_CommonConfiguration
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_SE_Checker

    r712 r727  
    6666# First of all 
    6767# 
    68 typeset option 
    69  
    70 #================================== 
    71 # Read UserChoices section:  
    72 IGCM_card_DefineArrayFromSection       ${CARD_DIR}/config.card UserChoices 
    73 echo 
    74 IGCM_debug_Print 1 "DefineArrayFromOption  : config_UserChoices" 
    75 for option in ${config_UserChoices[*]} ; do 
    76     IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card UserChoices ${option} 
    77     eval auxprint=\${config_UserChoices_${option}} 
    78     IGCM_debug_Print 3 "${option} : ${auxprint}" 
    79 done 
    80 # 
    81 echo 
    82  
    83 #================================== 
    84 # Read Ensemble section:  
    85 IGCM_card_DefineArrayFromSection       ${CARD_DIR}/config.card Ensemble 
    86 echo 
    87  
    88 for option in ${config_Ensemble[*]} ; do 
    89     IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card Ensemble ${option} 
    90     eval auxprint=\${config_Ensemble_${option}} 
    91     IGCM_debug_Print 3 "${option} : ${auxprint}" 
    92 done 
    93 # 
    94 echo 
    95  
    96 #================================== 
    97 # Read Post section:  
    98 IGCM_card_DefineArrayFromSection ${CARD_DIR}/config.card Post 
    99 echo 
    100 IGCM_debug_Print 1 "DefineArrayFromOption : config_Post" 
    101  
    102 for option in ${config_Post[*]} ; do 
    103   IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card Post ${option} 
    104   eval auxprint=\${config_Post_${option}} 
    105   IGCM_debug_Print 3 "${option} : ${auxprint}" 
    106 done 
    107 # 
    108 echo 
    109  
     68# Read libIGCM compatibility version in config.card 
     69# Read UserChoices section 
     70# Read Ensemble section 
     71# Read Post section 
     72# Define all netcdf output directories 
     73#================================== 
     74IGCM_config_CommonConfiguration ${CARD_DIR}/config.card 
     75 
     76#================================== 
     77# Read ListOfComponents section: 
     78IGCM_card_DefineArrayFromSection ${CARD_DIR}/config.card ListOfComponents 
     79 
     80#================================== 
     81# Read SeasonalFrequency: 
     82IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card Post SeasonalFrequency 
     83 
     84# 
    11085DateEnd=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateEnd} ) 
    11186DateBegin=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateBegin} ) 
     
    11792IGCM_debug_Print 1 "DateEnd   for SE_Checker : "${DateEnd} 
    11893echo 
    119  
    120 #==================================================== 
    121 #R_SAVE : Job output directory 
    122 #R_BUFR : Job output buffered directory 
    123 if ( [ ! X${config_UserChoices_SpaceName} = X ] && [ ! X${config_UserChoices_ExperimentName} = X ] ) ; then 
    124   FreeName=$( echo ${config_UserChoices_JobName} | sed 's/.*_//' ) 
    125   if ( [ ! X${config_Ensemble_EnsembleName} = X ] && [ ! X${config_Ensemble_EnsembleDate} = X ] ) ; then 
    126     R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${FreeName} 
    127     R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${FreeName} 
    128     R_DODS=${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${FreeName} 
    129   else 
    130     R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 
    131     R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 
    132     R_DODS=${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 
    133   fi 
    134 else 
    135   if ( [ ! X${config_Ensemble_EnsembleName} = X ] && [ ! X${config_Ensemble_EnsembleDate} = X ] ) ; then 
    136     R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${config_UserChoices_JobName} 
    137     R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${config_UserChoices_JobName} 
    138     R_DODS=${config_UserChoices_TagName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${config_UserChoices_JobName} 
    139   else 
    140     R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 
    141     R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 
    142     R_DODS=${config_UserChoices_TagName}/${config_UserChoices_JobName} 
    143   fi 
    144 fi 
    145  
    146 IGCM_card_DefineArrayFromSection ${CARD_DIR}/config.card ListOfComponents 
    147  
    148 IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card Post SeasonalFrequency 
    14994# 
    15095[ X${config_Post_SeasonalFrequency} = X"NONE" ] && exit 
Note: See TracChangeset for help on using the changeset viewer.