Changeset 660


Ignore:
Timestamp:
04/24/12 11:18:41 (12 years ago)
Author:
sdipsl
Message:
  • Quick fix to be compatible with ensemble approach. Do not exit if the section we try to read is not there
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_card/libIGCM_card.ksh

    r475 r660  
    166166        eval ${name}[0]=${NULL_STR} 
    167167        set +A ${name} -- $( gawk -f ${libIGCM}/libIGCM_card/IGCM_card_PrintSection.awk -- "$@" ) 
    168         if [ "$( eval echo \${${name}[@]} )" = "Error: Section not found" ] ; then 
    169             echo 
    170             IGCM_debug_Print 1 "Error with readding of ${name} variable in ${1}." 
    171             IGCM_debug_Print 1 "Error: Section ${2} not found" 
    172             IGCM_debug_Exit 
    173             IGCM_debug_Verif_Exit 
     168        #if [ "$( eval echo \${${name}[@]} )" = "Error: Section not found" ] ; then 
     169        #    echo 
     170        #    IGCM_debug_Print 1 "Error with readding of ${name} variable in ${1}." 
     171        #    IGCM_debug_Print 1 "Error: Section ${2} not found" 
     172        #    IGCM_debug_Exit 
     173        #    IGCM_debug_Verif_Exit 
     174        #fi 
     175        if [ "$( eval echo \${${name}[@]} )" = "Error: Section not found" ] ; then 
     176          echo 
     177          IGCM_debug_Print 1 "Warning with readding of ${name} variable in ${1}." 
     178          IGCM_debug_Print 1 "Warning: Section ${2} not found" 
     179          eval unset ${name} 
    174180        fi 
    175181    else 
Note: See TracChangeset for help on using the changeset viewer.