Changeset 237


Ignore:
Timestamp:
03/01/10 18:28:55 (14 years ago)
Author:
sdipsl
Message:

-Add some default behavior to reach the backward compatibility

Location:
trunk/libIGCM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_create_se

    r236 r237  
    246246                IGCM_card_DefineArrayFromOption ${card} ${flag_post} Seasonal 
    247247                # 
     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 
     251                    eval ${compname}_${flag_post}_Seasonal=ON 
     252                fi 
     253                # 
    248254                if [ ! X$( eval echo \${${compname}_${flag_post}_Seasonal} ) = XON ] ; then 
    249255                    continue 
  • trunk/libIGCM/AA_create_ts

    r236 r237  
    306306                # If files/variables has been switch off by ChunckJob${Dimension}=0 we skip 
    307307                # 
    308                 if [ X$( eval echo \${${compname}_Post_${FILE}_ChunckJob${Dimension}} ) = X0 ] ; then 
     308                if [ X$( eval echo \${${compname}_Post_${FILE}_ChunckJob${Dimension}} ) = XOFF ] ; then 
    309309                    IGCM_debug_Print 3 "Nothing to do for ${FILE} according to ${card}" 
    310                     IGCM_debug_Print 3 "ChunckJob${Dimension}=0 for ${FILE} so it has been switched off" 
     310                    IGCM_debug_Print 3 "ChunckJob${Dimension}=OFF for ${FILE} so it has been switched off" 
    311311                    (( i=i+3 )) 
    312312                    continue 
  • trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh

    r236 r237  
    145145                            if [ ! $( eval echo \${${compname}_${flag_post}_TimeSeriesVars${Dimension}} ) = ${NULL_STR} ] ; then 
    146146                                chunck_size=$( eval echo \${${compname}_${flag_post}_ChunckJob${Dimension}} ) 
    147                                 if [ ! ${chunck_size} = NONE ] ; then 
     147                                if [ ! ${chunck_size} = NONE ] &&  [ ! ${chunck_size} = OFF ] ; then 
    148148                                    IGCM_debug_Print 3 "${Dimension} time series activated with chunck for ${flag_post} according to ${card}" 
    149149                                    eval TimeSeriesChunck${Dimension}=true 
     
    165165                    # Seasonal case 
    166166                    IGCM_card_DefineArrayFromOption ${card} ${flag_post} Seasonal 
     167                    # 
     168                    # If option is not found (old cards) put SEASONAL ON by default 
     169                    # 
     170                    if [ "$( eval echo \${${compname}_${flag_post}_Seasonal} )" = "Option not found ${flag_post}" ] ; then 
     171                        eval ${compname}_${flag_post}_Seasonal=ON 
     172                    fi 
     173                    # 
    167174                    if [ $( eval echo \${${compname}_${flag_post}_Seasonal} ) = ON ] ; then 
    168175                        Seasonal=true 
     
    603610 
    604611        # If missing executable then stop! 
    605         if [ ! X${ExeNameIn} = X ] && [ ! -f ${R_EXE}/${ExeNameIn} ] ; then 
    606             IGCM_debug_Exit "IGCM_comp_Update missing executable ${ExeNameIn}" 
    607         fi  
     612        #if [ ! X${ExeNameIn} = X ] && [ ! -f ${R_EXE}/${ExeNameIn} ] ; then 
     613        #    IGCM_debug_Exit "IGCM_comp_Update missing executable ${ExeNameIn}" 
     614        #fi  
    608615 
    609616        if [ ${Period} -eq 1 ] && [ -f ${R_EXE}/${ExeNameIn} ] ; then 
Note: See TracChangeset for help on using the changeset viewer.