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_TimeSeries_Checker

    r712 r727  
    9191# First of all 
    9292# 
    93 typeset option 
    94  
     93# Read libIGCM compatibility version in config.card 
     94# Read UserChoices section 
     95# Read Ensemble section 
     96# Read Post section 
     97# Define all netcdf output directories 
    9598#================================== 
    96 # Read UserChoices section:  
    97 IGCM_card_DefineArrayFromSection       ${CARD_DIR}/config.card UserChoices 
    98 echo 
    99 IGCM_debug_Print 1 "DefineArrayFromOption  : config_UserChoices" 
    100 for option in ${config_UserChoices[*]} ; do 
    101     IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card UserChoices ${option} 
    102     eval auxprint=\${config_UserChoices_${option}} 
    103     IGCM_debug_Print 3 "${option} : ${auxprint}" 
    104 done 
    105 # 
    106 echo 
     99IGCM_config_CommonConfiguration ${CARD_DIR}/config.card 
    107100 
    108101#================================== 
    109 # Read Ensemble section:  
    110 IGCM_card_DefineArrayFromSection       ${CARD_DIR}/config.card Ensemble 
    111 echo 
    112  
    113 for option in ${config_Ensemble[*]} ; do 
    114     IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card Ensemble ${option} 
    115     eval auxprint=\${config_Ensemble_${option}} 
    116     IGCM_debug_Print 3 "${option} : ${auxprint}" 
    117 done 
    118 # 
    119 echo 
    120  
    121 #================================== 
    122 # Read Post section:  
    123 IGCM_card_DefineArrayFromSection ${CARD_DIR}/config.card Post 
    124 echo 
    125 IGCM_debug_Print 1 "DefineArrayFromOption : config_Post" 
    126  
    127 for option in ${config_Post[*]} ; do 
    128   IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card Post ${option} 
    129   eval auxprint=\${config_Post_${option}} 
    130   IGCM_debug_Print 3 "${option} : ${auxprint}" 
    131 done 
    132 # 
    133 echo 
     102# Read ListOfComponents section: 
     103IGCM_card_DefineArrayFromSection ${CARD_DIR}/config.card ListOfComponents 
    134104 
    135105if [ -f ${CARD_DIR}/run.card ] ; then 
     
    163133IGCM_debug_Print 1 "CompletedFlag = "${CompletedFlag} 
    164134echo 
    165  
    166 #==================================================== 
    167 #R_SAVE : Job output directory 
    168 #R_BUFR : Job output buffered directory 
    169 if ( [ ! X${config_UserChoices_SpaceName} = X ] && [ ! X${config_UserChoices_ExperimentName} = X ] ) ; then 
    170   FreeName=$( echo ${config_UserChoices_JobName} | sed 's/.*_//' ) 
    171   if ( [ ! X${config_Ensemble_EnsembleName} = X ] && [ ! X${config_Ensemble_EnsembleDate} = X ] ) ; then 
    172     R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${FreeName} 
    173     R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${FreeName} 
    174     R_DODS=${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${FreeName} 
    175   else 
    176     R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 
    177     R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 
    178     R_DODS=${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 
    179   fi 
    180 else 
    181   if ( [ ! X${config_Ensemble_EnsembleName} = X ] && [ ! X${config_Ensemble_EnsembleDate} = X ] ) ; then 
    182     R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${config_UserChoices_JobName} 
    183     R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${config_UserChoices_JobName} 
    184     R_DODS=${config_UserChoices_TagName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${config_UserChoices_JobName} 
    185   else 
    186     R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 
    187     R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 
    188     R_DODS=${config_UserChoices_TagName}/${config_UserChoices_JobName} 
    189   fi 
    190 fi 
    191  
    192 IGCM_card_DefineArrayFromSection ${CARD_DIR}/config.card ListOfComponents 
    193135 
    194136for comp in ${config_ListOfComponents[*]} ; do 
Note: See TracChangeset for help on using the changeset viewer.