Changeset 785 for trunk/libIGCM/AA_monitoring
- Timestamp:
- 02/04/13 16:39:38 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_monitoring
r770 r785 154 154 155 155 if [ ${StandAlone} = true ] ; then 156 156 CARD_DIR=${SUBMIT_DIR} 157 157 else 158 159 160 161 162 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} 163 163 fi 164 164 … … 183 183 IGCM_sys_TestDirArchive ${R_FIGR}/MONITORING 184 184 if [ $? = 0 ] ; then 185 186 185 IGCM_debug_Print 1 "Get MONITORING directory from archive" 186 IGCM_sys_Get_Dir ${R_FIGR}/MONITORING ${RUN_DIR} 187 187 else 188 188 IGCM_debug_Print 1 "MONITORING first pass. Nothing has been done before" 189 189 fi 190 190 # -------------------------------------------- … … 194 194 195 195 for comp in ${config_ListOfComponents[*]} ; do 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 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 # 231 231 done 232 232
Note: See TracChangeset
for help on using the changeset viewer.