Changeset 251


Ignore:
Timestamp:
03/23/10 16:52:22 (14 years ago)
Author:
brocksce
Message:

Corrected and simplified conditional test to pass monitoring process
if monitoring file does not exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_monitoring

    r250 r251  
    154154    PATH_monitoring_file="" 
    155155    eval monitoring_file=monitoring01_${compname}_\${RESOL_${comp}}.cfg > /dev/null 2>&1 
    156     if [ -d ${CARD_DIR}/POST ] ; then 
    157         if [ -f  ${CARD_DIR}/POST/monitoring01_${compname}.cfg ] ; then 
    158             eval monitoring_file=monitoring01_${compname}.cfg > /dev/null 2>&1 
    159             PATH_monitoring_file=${CARD_DIR}/POST/${monitoring_file} 
    160         elif [ -f ${FER_ATLAS}/${monitoring_file} ] ; then 
    161             PATH_monitoring_file=${FER_ATLAS}/${monitoring_file} 
    162         fi 
     156    if [[ -d ${CARD_DIR}/POST && -f ${CARD_DIR}/POST/monitoring01_${compname}.cfg ]] ; then 
     157        PATH_monitoring_file=${CARD_DIR}/POST/${monitoring_file} 
    163158    elif [ -f ${FER_ATLAS}/${monitoring_file} ] ; then 
    164159        PATH_monitoring_file=${FER_ATLAS}/${monitoring_file} 
    165160    else 
    166         IGCM_debug_Print 1 "WARNING. No MONITORING file found for component ${compname}." 
     161        IGCM_debug_Print 1 "No monitoring file found for this component. Was expecting ${monitoring_file}" 
     162        IGCM_debug_Print 1 "Step to next component" 
     163        continue 
    167164    fi 
    168165    # 
Note: See TracChangeset for help on using the changeset viewer.