Ignore:
Timestamp:
02/04/13 16:39:38 (11 years ago)
Author:
labetoulle
Message:

Cosmetics :

  • Convert tabs into space for better lisibility with different editors.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_monitoring

    r770 r785  
    154154 
    155155if [ ${StandAlone} = true ] ; then 
    156     CARD_DIR=${SUBMIT_DIR} 
     156  CARD_DIR=${SUBMIT_DIR} 
    157157else 
    158     CARD_DIR=${RUN_DIR} 
    159     IGCM_sys_Get_Master ${SUBMIT_DIR}/config.card ${RUN_DIR_PATH} 
    160     IGCM_sys_Get_Master ${SUBMIT_DIR}/run.card    ${RUN_DIR_PATH} 
    161     IGCM_sys_Get_Master ${SUBMIT_DIR}/COMP        ${RUN_DIR_PATH} 
    162     IGCM_sys_Get_Master ${SUBMIT_DIR}/POST        ${RUN_DIR_PATH} 
     158  CARD_DIR=${RUN_DIR} 
     159  IGCM_sys_Get_Master ${SUBMIT_DIR}/config.card ${RUN_DIR_PATH} 
     160  IGCM_sys_Get_Master ${SUBMIT_DIR}/run.card    ${RUN_DIR_PATH} 
     161  IGCM_sys_Get_Master ${SUBMIT_DIR}/COMP        ${RUN_DIR_PATH} 
     162  IGCM_sys_Get_Master ${SUBMIT_DIR}/POST        ${RUN_DIR_PATH} 
    163163fi 
    164164 
     
    183183IGCM_sys_TestDirArchive ${R_FIGR}/MONITORING 
    184184if [ $? = 0 ] ; then 
    185     IGCM_debug_Print 1 "Get MONITORING directory from archive" 
    186     IGCM_sys_Get_Dir ${R_FIGR}/MONITORING ${RUN_DIR} 
     185  IGCM_debug_Print 1 "Get MONITORING directory from archive" 
     186  IGCM_sys_Get_Dir ${R_FIGR}/MONITORING ${RUN_DIR} 
    187187else 
    188     IGCM_debug_Print 1 "MONITORING first pass. Nothing has been done before" 
     188  IGCM_debug_Print 1 "MONITORING first pass. Nothing has been done before" 
    189189fi 
    190190# -------------------------------------------- 
     
    194194 
    195195for comp in ${config_ListOfComponents[*]} ; do 
    196     IGCM_debug_Print 1 "################## Component: ${comp} ######################" 
    197     liste_file_monitoring="" 
    198     IGCM_card_DefineArrayFromOption ${CARD_DIR}/config.card ListOfComponents ${comp} 
    199     eval compname=\${config_ListOfComponents_${comp}[0]}                > /dev/null 2>&1 
    200  
    201     PATH_monitoring_file="" 
    202     eval monitoring_file=monitoring01_${compname}_\${RESOL_${comp}}.cfg > /dev/null 2>&1 
    203     if [[ -d ${CARD_DIR}/POST && -f ${CARD_DIR}/POST/monitoring01_${compname}.cfg ]] ; then 
    204         PATH_monitoring_file=${CARD_DIR}/POST/monitoring01_${compname}.cfg 
    205     elif [ -f ${FER_ATLAS}/${monitoring_file} ] ; then 
    206         PATH_monitoring_file=${FER_ATLAS}/${monitoring_file} 
    207     else 
    208         IGCM_debug_Print 1 "No monitoring file found for this component. Was expecting ${monitoring_file}" 
    209         IGCM_debug_Print 1 "Step to next component" 
    210         continue 
    211     fi 
    212     # 
    213     if [ X${PATH_monitoring_file} != X"" ] ; then 
    214         IGCM_debug_Print 1 "Monitoring file used : ${PATH_monitoring_file}" 
    215         IGCM_debug_Print 1 "Determine which files we need." 
    216         . monitoring01 -l2 --listcommand 'IGCM_sys_RshArchive ls' ${PATH_monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_MO 
    217         liste_file_monitoring=$( . monitoring01 -q -l2 --listcommand 'IGCM_sys_RshArchive ls' ${PATH_monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_MO ) 
    218     fi 
    219     # 
    220     if [ ! "X${liste_file_monitoring}" = X ] ; then 
    221         IGCM_sys_Get /l liste_file_monitoring ${RUN_DIR} 
    222         IGCM_debug_Print 1 "monitoring01 -c ${CARD_DIR} -p ${comp} --time -t \"${config_UserChoices_JobName} monitoring\" -o ${RUN_DIR}/MONITORING ${PATH_monitoring_file} ." 
    223         IGCM_debug_Print 1 "monitoring01 starts ................................................." 
    224         monitoring01 -c ${CARD_DIR} -p ${comp} --time -t "${config_UserChoices_JobName} monitoring" -o ${RUN_DIR}/MONITORING ${PATH_monitoring_file} . 
    225     else 
    226         IGCM_debug_Print 1 "No time series detected by this command :" 
    227         IGCM_debug_Print 1 "monitoring01 -l2 --listcommand 'IGCM_sys_RshArchive ls' ${PATH_monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_MO" 
    228         . monitoring01 -l2 --listcommand 'IGCM_sys_RshArchive ls' ${PATH_monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_MO 
    229     fi 
    230     # 
     196  IGCM_debug_Print 1 "################## Component: ${comp} ######################" 
     197  liste_file_monitoring="" 
     198  IGCM_card_DefineArrayFromOption ${CARD_DIR}/config.card ListOfComponents ${comp} 
     199  eval compname=\${config_ListOfComponents_${comp}[0]}                > /dev/null 2>&1 
     200 
     201  PATH_monitoring_file="" 
     202  eval monitoring_file=monitoring01_${compname}_\${RESOL_${comp}}.cfg > /dev/null 2>&1 
     203  if [[ -d ${CARD_DIR}/POST && -f ${CARD_DIR}/POST/monitoring01_${compname}.cfg ]] ; then 
     204    PATH_monitoring_file=${CARD_DIR}/POST/monitoring01_${compname}.cfg 
     205  elif [ -f ${FER_ATLAS}/${monitoring_file} ] ; then 
     206    PATH_monitoring_file=${FER_ATLAS}/${monitoring_file} 
     207  else 
     208    IGCM_debug_Print 1 "No monitoring file found for this component. Was expecting ${monitoring_file}" 
     209    IGCM_debug_Print 1 "Step to next component" 
     210    continue 
     211  fi 
     212  # 
     213  if [ X${PATH_monitoring_file} != X"" ] ; then 
     214    IGCM_debug_Print 1 "Monitoring file used : ${PATH_monitoring_file}" 
     215    IGCM_debug_Print 1 "Determine which files we need." 
     216    . monitoring01 -l2 --listcommand 'IGCM_sys_RshArchive ls' ${PATH_monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_MO 
     217    liste_file_monitoring=$( . monitoring01 -q -l2 --listcommand 'IGCM_sys_RshArchive ls' ${PATH_monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_MO ) 
     218  fi 
     219  # 
     220  if [ ! "X${liste_file_monitoring}" = X ] ; then 
     221    IGCM_sys_Get /l liste_file_monitoring ${RUN_DIR} 
     222    IGCM_debug_Print 1 "monitoring01 -c ${CARD_DIR} -p ${comp} --time -t \"${config_UserChoices_JobName} monitoring\" -o ${RUN_DIR}/MONITORING ${PATH_monitoring_file} ." 
     223    IGCM_debug_Print 1 "monitoring01 starts ................................................." 
     224    monitoring01 -c ${CARD_DIR} -p ${comp} --time -t "${config_UserChoices_JobName} monitoring" -o ${RUN_DIR}/MONITORING ${PATH_monitoring_file} . 
     225  else 
     226    IGCM_debug_Print 1 "No time series detected by this command :" 
     227    IGCM_debug_Print 1 "monitoring01 -l2 --listcommand 'IGCM_sys_RshArchive ls' ${PATH_monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_MO" 
     228    . monitoring01 -l2 --listcommand 'IGCM_sys_RshArchive ls' ${PATH_monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_MO 
     229  fi 
     230  # 
    231231done 
    232232 
Note: See TracChangeset for help on using the changeset viewer.