Ignore:
Timestamp:
03/02/10 18:40:37 (14 years ago)
Author:
sdipsl
Message:
  • Hopefully the last step towards backward compatibilty
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_create_se

    r238 r239  
    244244                # Check if seasonal is required for this file 
    245245                # 
    246                 IGCM_card_DefineArrayFromOption ${card} ${flag_post} Seasonal 
    247                 # 
    248                 # If option is not found (old cards) put SEASONAL ON by default 
    249                 # 
    250                 if [ "$( eval echo \${${compname}_${flag_post}_Seasonal[*]} )" = "Option not found ${flag_post}" ] ; then 
     246                IGCM_card_DefineArrayFromSection ${card} ${flag_post} 
     247                # 
     248                # Seasonal case : If option Seasonal is not found (old cards) put SEASONAL ON by default 
     249                # 
     250                # variable option allready typeset above 
     251                for option in $( eval echo \${${compname}_${flag_post}[*]} ) ; do 
     252                    if [ ${option} = Seasonal ] ; then 
     253                        FoundSeasonal=true 
     254                        IGCM_card_DefineVariableFromOption ${card} ${flag_post} Seasonal 
     255                    fi 
     256                done 
     257                # 
     258                if [ ! X${FoundSeasonal} = Xtrue ] ; then 
    251259                    eval ${compname}_${flag_post}_Seasonal=ON 
    252260                fi 
Note: See TracChangeset for help on using the changeset viewer.