Changeset 601


Ignore:
Timestamp:
03/27/12 17:07:20 (12 years ago)
Author:
mafoipsl
Message:

Use AA_create_ts as a model to work with packed files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libIGCM_MPI_OpenMP/AA_create_se

    r597 r601  
    224224fi 
    225225 
    226 # 
     226#================================== 
    227227# First of all 
    228228# 
    229 IGCM_card_DefineArrayFromSection   ${CARD_DIR}/config.card UserChoices 
    230229typeset option 
     230 
     231#================================== 
     232# Read UserChoices section:  
     233IGCM_card_DefineArrayFromSection       ${CARD_DIR}/config.card UserChoices 
     234echo 
     235IGCM_debug_Print 1 "DefineArrayFromOption  : config_UserChoices" 
    231236for option in ${config_UserChoices[*]} ; do 
    232237    IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card UserChoices ${option} 
     238    eval auxprint=\${config_UserChoices_${option}} 
     239    IGCM_debug_Print 3 "${option} : ${auxprint}" 
    233240done 
    234241# 
    235242echo 
    236 IGCM_debug_Print 1 "DefineArrayFromOption  : config_UserChoices" 
    237 IGCM_debug_PrintVariables 3 config_UserChoices_JobName 
    238 IGCM_debug_PrintVariables 3 config_UserChoices_LongName 
    239 IGCM_debug_PrintVariables 3 config_UserChoices_TagName 
    240 IGCM_debug_PrintVariables 3 config_UserChoices_SpaceName 
    241 IGCM_debug_PrintVariables 3 config_UserChoices_ExperimentName 
    242 IGCM_debug_PrintVariables 3 config_UserChoices_CalendarType 
    243 IGCM_debug_PrintVariables 3 config_UserChoices_DateBegin 
    244 IGCM_debug_PrintVariables 3 config_UserChoices_DateEnd 
    245 IGCM_debug_PrintVariables 3 config_UserChoices_PeriodLength 
     243 
     244#================================== 
     245# Read Post section:  
     246IGCM_card_DefineArrayFromSection ${CARD_DIR}/config.card Post 
    246247echo 
     248IGCM_debug_Print 1 "DefineArrayFromOption : config_Post" 
     249for option in ${config_Post[*]} ; do 
     250  IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card Post ${option} 
     251  eval auxprint=\${config_Post_${option}} 
     252  IGCM_debug_Print 3 "${option} : ${auxprint}" 
     253done 
     254# 
     255echo 
     256 
     257#================================== 
     258# Define default value to keep compatibility with previous card: means before changes due to TGCC  
     259[ X${config_Post_PackFrequency} = X ] && config_Post_PackFrequency=${config_Post_RebuildFrequency} 
     260 
     261#================================== 
     262# If pack is active then PackFrequency overule the config_UserChoices_PeriodLength 
     263if ( [ ! X${config_Post_PackFrequency} = X${NULL_STR} ] && [ ! X${config_Post_PackFrequency} = XNONE ] ) ; then 
     264  config_UserChoices_PeriodLength=${config_Post_PackFrequency} 
     265fi 
    247266 
    248267#================================== 
Note: See TracChangeset for help on using the changeset viewer.