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_create_se

    r712 r727  
    240240# First of all 
    241241# 
    242 typeset option 
    243  
     242# Read libIGCM compatibility version in config.card 
     243# Read UserChoices section 
     244# Read Ensemble section 
     245# Read Post section 
     246# Define all netcdf output directories 
    244247#================================== 
    245 # Read UserChoices section:  
    246 IGCM_card_DefineArrayFromSection       ${CARD_DIR}/config.card UserChoices 
    247 echo 
    248 IGCM_debug_Print 1 "DefineArrayFromOption  : config_UserChoices" 
    249 for option in ${config_UserChoices[*]} ; do 
    250     IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card UserChoices ${option} 
    251     eval auxprint=\${config_UserChoices_${option}} 
    252     IGCM_debug_Print 3 "${option} : ${auxprint}" 
    253 done 
    254 # 
    255 echo 
    256  
    257 #================================== 
    258 # Read Ensemble section:  
    259 IGCM_card_DefineArrayFromSection       ${CARD_DIR}/config.card Ensemble 
    260 echo 
    261 IGCM_debug_Print 1 "DefineArrayFromOption  : config_Ensemble" 
    262 for option in ${config_Ensemble[*]} ; do 
    263     IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card Ensemble ${option} 
    264     eval auxprint=\${config_Ensemble_${option}} 
    265     IGCM_debug_Print 3 "${option} : ${auxprint}" 
    266 done 
    267 # 
    268 echo 
    269  
    270 #================================== 
    271 # Read Post section:  
    272 IGCM_card_DefineArrayFromSection ${CARD_DIR}/config.card Post 
    273 echo 
    274 IGCM_debug_Print 1 "DefineArrayFromOption : config_Post" 
    275 for option in ${config_Post[*]} ; do 
    276   IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card Post ${option} 
    277   eval auxprint=\${config_Post_${option}} 
    278   IGCM_debug_Print 3 "${option} : ${auxprint}" 
    279 done 
    280 # 
    281 echo 
     248IGCM_config_CommonConfiguration ${CARD_DIR}/config.card 
    282249 
    283250#================================== 
     
    296263 
    297264#================================== 
    298 #R_SAVE : Job output directory 
    299 #R_BUFR : Job output buffered directory 
    300 if ( [ ! X${config_UserChoices_SpaceName} = X ] && [ ! X${config_UserChoices_ExperimentName} = X ] ) ; then 
    301   FreeName=$( echo ${config_UserChoices_JobName} | sed 's/.*_//' ) 
    302   if ( [ ! X${config_Ensemble_EnsembleName} = X ] && [ ! X${config_Ensemble_EnsembleDate} = X ] ) ; then 
    303     R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${FreeName} 
    304     R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${FreeName} 
    305     R_DODS=${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${FreeName} 
    306   else 
    307     R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 
    308     R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 
    309     R_DODS=${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 
    310   fi 
    311 else 
    312   if ( [ ! X${config_Ensemble_EnsembleName} = X ] && [ ! X${config_Ensemble_EnsembleDate} = X ] ) ; then 
    313     R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${config_UserChoices_JobName} 
    314     R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${config_UserChoices_JobName} 
    315     R_DODS=${config_UserChoices_TagName}/${config_Ensemble_EnsembleName}/${config_Ensemble_EnsembleDate}/${config_UserChoices_JobName} 
    316   else 
    317     R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 
    318     R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 
    319     R_DODS=${config_UserChoices_TagName}/${config_UserChoices_JobName} 
    320   fi 
    321 fi 
    322 # 
     265# Read ListOfComponents section: 
    323266IGCM_card_DefineArrayFromSection   ${CARD_DIR}/config.card ListOfComponents 
    324 # 
     267 
     268#================================== 
     269# Read SeasonalFrequency: 
    325270IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card Post SeasonalFrequency 
     271 
    326272# 
    327273# Determine period for seasonnal average. Default : value from AA_job if any 
Note: See TracChangeset for help on using the changeset viewer.