Changeset 102


Ignore:
Timestamp:
04/15/09 10:51:00 (15 years ago)
Author:
sdipsl
Message:

Add verbosity to this job. It will facilitate debugging and developping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_monitoring

    r94 r102  
    9797IGCM_card_DefineArrayFromSection       ${CARD_DIR}/config.card ListOfComponents 
    9898 
     99# 
    99100R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 
    100101 
    101102# 
    102 IGCM_sys_Get_Dir ${R_SAVE}/MONITORING ${RUN_DIR} 
    103  
     103IGCM_sys_TestDirArchive ${R_SAVE}/MONITORING 
     104if [ $? = 0 ] ; then 
     105    IGCM_debug_Print 1 "Get MONITORING directory from archive" 
     106    IGCM_sys_Get_Dir ${R_SAVE}/MONITORING ${RUN_DIR} 
     107else 
     108    IGCM_debug_Print 1 "MONITORING first pass. Nothing has been done before" 
     109fi 
    104110# -------------------------------------------- 
    105111# Insert your commands between III...III lines  
     
    113119    eval monitoring_file=monitoring01_${compname}_\${RESOL_${comp}}.cfg > /dev/null 2>&1 
    114120    # 
    115     [ -f ${FER_ATLAS}/${monitoring_file} ] && liste_file_monitoring=$( monitoring01 -q -l2 --listcommand 'IGCM_sys_RshArchive ls' ${FER_ATLAS}/${monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_MO ) 
     121    if [ -f ${FER_ATLAS}/${monitoring_file} ] ; then 
     122        liste_file_monitoring=$( monitoring01 -q -l2 --listcommand 'IGCM_sys_RshArchive ls' ${FER_ATLAS}/${monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_MO ) 
     123    else 
     124        IGCM_debug_Print 1 "WARNING. This file does not exist : ${FER_ATLAS}/${monitoring_file}" 
     125    fi 
    116126    # 
    117127    if [ ! "X${liste_file_monitoring}" = X ] ; then 
    118128        IGCM_sys_Get /l liste_file_monitoring ${RUN_DIR} 
    119129        monitoring01 -q -c ${CARD_DIR} -p ${comp} -t "${config_UserChoices_JobName} monitoring" -o ${RUN_DIR}/MONITORING ${FER_ATLAS}/${monitoring_file} ${RUN_DIR} 
     130    else 
     131        IGCM_debug_Print 1 "No time series detected by this command :" 
     132        IGCM_debug_Print 1 "monitoring01 -l2 --listcommand 'IGCM_sys_RshArchive ls' ${FER_ATLAS}/${monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_MO" 
     133        monitoring01 -l2 --listcommand 'IGCM_sys_RshArchive ls' ${FER_ATLAS}/${monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_MO 
    120134    fi 
    121135    # 
     
    129143# Dods copy 
    130144IGCM_sys_Put_Dods MONITORING 
    131  
    132 exit 
Note: See TracChangeset for help on using the changeset viewer.