Ignore:
Timestamp:
04/14/15 17:00:21 (9 years ago)
Author:
sdipsl
Message:
  • Extend Big Brother scope to also watch post-processing jobs. Only the metrics LMDZ job for now. See #252
  • Some refactoring
File:
1 edited

Legend:

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

    r1173 r1189  
    12481248    # End of entire simulation # 
    12491249    #==========================# 
     1250    simulationIsOver=true 
    12501251 
    12511252    # Mail notification 
     
    12561257    IGCM_debug_Print 1 "Normal End of computation." 
    12571258 
    1258     if ( $DEBUG_debug ) ; then 
    1259       if [ X${ActivateBigBro} = Xtrue ] ; then 
    1260         # RabbitMQ message code "END OF SIMULATION" 
    1261         code=0100 
    1262         # RabbitMQ message body 
    1263         Body=$( echo "{${genericSimulationID},\"msgCode\":\"${code}\",\"msgUID\":\"$(uuidgen)\",\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\"}" ) 
    1264         # Fill the rabbitMQ queue 
    1265         IGCM_debug_sendAMQP 
    1266       fi 
    1267     fi 
    1268  
    1269     # To be sure we flush message buffer and clean up behind us before the end of the simulation 
    1270     FlushAMQP=TRUE 
    1271  
    12721259  else 
    12731260    #=================# 
    12741261    # Submit next job # 
    12751262    #=================# 
     1263    simulationIsOver=false 
    12761264 
    12771265    IGCM_card_WriteOption ${SUBMIT_DIR}/run.card Configuration PeriodState "OnQueue" 
     
    12911279  fi 
    12921280 
    1293   # Supress Non Deleted Boundary files 
    1294   #if [ ${DRYRUN} -le 2 ] ; then 
    1295   #  IGCM_comp_DelFixeBoundaryFiles 
    1296   #  ls -la 
    1297   #fi 
    1298  
    12991281  # Clean ${RUN_DIR}=${RUN_DIR_PATH}/${config_UserChoices_JobName}.${$} 
    13001282  # Only for production run (No clean up in DEV or DEB mode) 
     
    13031285  [ X${JobType} = XRUN ] && IGCM_sys_RmRunDir -rf ${RUN_DIR_PATH} 
    13041286 
    1305   if ( $DEBUG_debug ) ; then 
    1306     # Inform the rabbitMQ queue 
    1307     if [ X${ActivateBigBro} = Xtrue ] ; then 
    1308       # RabbitMQ message code "WAITING" 
    1309       code=1100 
    1310       # RabbitMQ message body 
    1311       Body=$( echo "{${genericSimulationID},\"msgCode\":\"${code}\",\"msgUID\":\"$(uuidgen)\",\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\"}" ) 
    1312       # Fill the rabbitMQ queue 
    1313       IGCM_debug_sendAMQP 
    1314     fi 
    1315   fi 
     1287  # Inform the rabbitMQ queue 
     1288  IGCM_debug_BigBro_Finalize 
    13161289 
    13171290  IGCM_debug_PopStack "IGCM_config_Finalize" 
Note: See TracChangeset for help on using the changeset viewer.