Changeset 1244


Ignore:
Timestamp:
10/09/15 16:04:04 (9 years ago)
Author:
sdipsl
Message:
  • rationalyze somehow message code logic
  • extend the information gathered by big brother
  • clean up
Location:
trunk/libIGCM
Files:
9 edited

Legend:

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

    r1215 r1244  
    2222  echo 
    2323 
    24   typeset comp compname comptagname CompatibilityTag auxprint card_UserChoices first_option option i j 
     24  typeset comp compname comptagname auxprint card_UserChoices first_option option i j 
    2525  for comp in ${config_ListOfComponents[*]} ; do 
    2626 
     
    3333    IGCM_debug_Print 1 "Initialize ${comp} : ${compname} component." 
    3434 
    35     # Read libIGCM compatibility version in ${compname}.card 
     35    # ${compname}.card PATH 
    3636    card=${SUBMIT_DIR}/COMP/${compname}.card 
    37     IGCM_card_DefineVariableFromOption ${card} Compatibility libIGCM 
    38  
    39     eval CompatibilityTag=\${${compname}_Compatibility_libIGCM} > /dev/null 2>&1 
    40     if [ ! "${CompatibilityTag}" = "${libIGCM_CurrentTag}" ] ; then 
    41       IGCM_debug_Exit "${compname}.card is not compatible with libIGCM version ${libIGCM_CurrentTag} see libIGCM FAQ http://wiki.ipsl.jussieu.fr/wiki_ipsl/IGCMG/libIGCM/DocUtilisateur/FAQ ." 
    42     fi 
    4337 
    4438    # Manage component executable 
  • trunk/libIGCM/libIGCM_config/libIGCM_config.ksh

    r1242 r1244  
    2525 
    2626  #================================== 
    27   typeset option auxprint CompatibilityTag 
    28  
    29   #================================== 
    30   # Read libIGCM compatibility version in config.card 
    31   IGCM_card_DefineVariableFromOption ${configCardPath} Compatibility libIGCM 
    32   CompatibilityTag=${config_Compatibility_libIGCM} 
    33  
    34   if [ ! "${CompatibilityTag}" = "${libIGCM_CurrentTag}" ] ; then 
    35     IGCM_debug_Exit "config.card is not compatible with libIGCM version ${libIGCM_CurrentTag} see libIGCM FAQ http://wiki.ipsl.jussieu.fr/wiki_ipsl/IGCMG/libIGCM/DocUtilisateur/FAQ ." 
    36   fi 
     27  typeset option auxprint 
    3728 
    3829  #================================== 
  • trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh

    r1243 r1244  
    2929#================================================== 
    3030# GENERATE RANDOM ERROR ; only apply if ( ${DEBUG_debug} ) 
    31 typeset RandomError=false 
     31typeset -r RandomError=false 
    3232 
    3333#================================================== 
     
    3939# libIGCM_CurrentTag 
    4040# Current libIGCM tag, check compatibilty with *.card 
    41 typeset -r libIGCM_CurrentTag="1.0" 
     41typeset -r libIGCMVersion="2.7" 
    4242 
    4343#================================================== 
     
    337337      IGCM_debug_StackArgs[0]=$(echo ${INPUTS[*]:1} | sed -e "s/\ /\",\"/g" ) 
    338338    fi 
    339  
    340     # Unplugged message 4000 handling for now. To ease downstream treatment. 
    341     #if [ X${ActivateBigBro} = Xtrue ] ; then 
    342     #  # RabbitMQ message code "PUSHSTACK" 
    343     #  code=4000 
    344     #  # RabbitMQ message body 
    345     #  Body=$( echo "{${genericSimulationID},\"msgCode\":\"${code}\",\"msgUID\":\"$(uuidgen)\",\"nesting\":\"${IGCM_debug_LenStack}\",\"command\":\"${IGCM_debug_Stack[0]}\",\"arguments\":[\"${IGCM_debug_StackArgs[0]}\"],\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\"}" ) 
    346     #  # Fill the rabbitMQ queue 
    347     #  IGCM_debug_sendAMQP 
    348     #fi 
    349339 
    350340    # Increment LenStack 
     
    542532 
    543533      # Unplugged message 4900 handling for now. To ease downstream treatment. 
    544       #if [ X${ActivateBigBro} = Xtrue ] ; then 
    545       #  # RabbitMQ message code "ERROR HAS BEEN TRIGGERED" 
    546       #  code=4900 
    547       #  # RabbitMQ message body 
    548       #  Body=$( echo "{${genericSimulationID},\"msgCode\":\"${code}\",\"msgUID\":\"$(uuidgen)\",\"nesting\":\"${IGCM_debug_LenStack}\",\"command\":\"${command}\",\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\"}" ) 
    549       #  # Fill the rabbitMQ queue 
    550       #  IGCM_debug_sendAMQP 
    551       #fi 
     534      if [ X${ActivateBigBro} = Xtrue ] ; then 
     535        if [ X${TaskType} = Xcomputing ]; then 
     536          # RabbitMQ message code "COMPUTING JOBs COMMAND FAILURE" 
     537          code=1900 
     538        elif [ X${TaskType} = Xpost-processing ]; then 
     539          # RabbitMQ message code "POST-PROCESSING JOBs COMMAND FAILURE" 
     540          code=2900 
     541        elif [ X${TaskType} = Xchecking ]; then 
     542          # RabbitMQ message code "POST-PROCESSING FROM CHECKER JOBs COMMAND FAILURE" 
     543          code=3900 
     544        fi 
     545        # RabbitMQ message body 
     546        Body=$( echo "{${genericSimulationID},\"msgCode\":\"${code}\",\"msgUID\":\"$(uuidgen)\",\"command\":\"${command}\",\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\"}" ) 
     547 
     548        # Fill the rabbitMQ queue 
     549        IGCM_debug_sendAMQP 
     550      fi 
    552551    else 
    553552      # Inform the stack file 
     
    555554        echo "< ${IGCM_debug_LenStack} : ${@}" >> ${StackFileLocation}/${StackFileName} 
    556555      fi 
    557  
    558       # Unplugged message 4100 handling for now. To ease downstream treatment. 
    559       #if [ X${ActivateBigBro} = Xtrue ] ; then 
    560       #  # RabbitMQ message code "POPSTACK" 
    561       #  code=4100 
    562       #  # RabbitMQ message body 
    563       #  Body=$( echo "{${genericSimulationID},\"msgCode\":\"${code}\",\"msgUID\":\"$(uuidgen)\",\"nesting\":\"${IGCM_debug_LenStack}\",\"command\":\"${command}\",\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\"}" ) 
    564       #  # Fill the rabbitMQ queue 
    565       #  IGCM_debug_sendAMQP 
    566       #fi 
    567556    fi 
    568557 
     
    590579  IGCM_debug_PushStack "IGCM_debug_BigBro_Initialize" 
    591580 
    592   typeset postProcessingName postProcessingDate postProcessingDimn postProcessingComp postProcessingFile 
     581  typeset postProcessingIDLength postProcessingName postProcessingDate postProcessingDimn postProcessingComp postProcessingFile 
    593582 
    594583# Message type standard fields: 
     
    601590    # create a unique ID for this specific job 
    602591    jobuid=$(uuidgen) 
     592 
     593    # get the assigned id by the scheduler for that job 
     594    IGCM_sys_getJobSchedulerID jobSchedulerID 
    603595 
    604596    if [ X${TaskType} = Xcomputing ]; then 
     
    610602        IGCM_card_WriteOption ${SUBMIT_DIR}/run.card Configuration simuid ${simuid} 
    611603        # Standard fields for the first message 
    612         genericSimulationID=$( echo "\"msgApplication\":\"monitoring\",\"msgProducer\":\"libigcm\",\"activity\":\"IPSL\",\"name\":\"${config_UserChoices_JobName}\",\"experiment\":\"${config_UserChoices_ExperimentName}\",\"space\":\"${config_UserChoices_SpaceName}\",\"model\":\"${config_UserChoices_TagName}\",\"startDate\":\"${config_UserChoices_DateBegin}\",\"endDate\":\"${config_UserChoices_DateEnd}\",\"login\":\"${LOGIN}\",\"centre\":\"${CENTER}\",\"machine\":\"${MASTER}\",\"simuid\":\"${simuid}\",\"jobuid\":\"${jobuid}\"" ) 
     604        genericSimulationID=$( echo "\"msgApplication\":\"monitoring\",\"msgProducer\":\"libigcm\",\"msgProducerVersion\":\"${libIGCMVersion}\",\"activity\":\"IPSL\",\"name\":\"${config_UserChoices_JobName}\",\"experiment\":\"${config_UserChoices_ExperimentName}\",\"space\":\"${config_UserChoices_SpaceName}\",\"model\":\"${config_UserChoices_TagName}\",\"startDate\":\"${config_UserChoices_DateBegin}\",\"endDate\":\"${config_UserChoices_DateEnd}\",\"login\":\"${LOGIN}\",\"centre\":\"${CENTER}\",\"machine\":\"${MASTER}\",\"simuid\":\"${simuid}\",\"jobuid\":\"${jobuid}\"" ) 
    613605        # RabbitMQ message body with specific fields associated message codes treated here 
    614606        Body=$( echo "{${genericSimulationID},\"msgCode\":\"${code}\",\"accountingProject\":\"${PROJECT}\",\"jobWarningDelay\":\"${jobWarningDelay}\",\"msgUID\":\"$(uuidgen)\",\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\"}" ) 
     
    622614        simuid=${run_Configuration_simuid} 
    623615        # Using standard fields for message others than the first one. Still subject to change 
    624         genericSimulationID=$( echo "\"msgApplication\":\"monitoring\",\"msgProducer\":\"libigcm\",\"simuid\":\"${simuid}\",\"jobuid\":\"${jobuid}\"" ) 
     616        genericSimulationID=$( echo "\"msgApplication\":\"monitoring\",\"msgProducer\":\"libigcm\",\"msgProducerVersion\":\"${libIGCMVersion}\",\"simuid\":\"${simuid}\",\"jobuid\":\"${jobuid}\"" ) 
    625617        # RabbitMQ message body with specific fields associated message codes treated here 
    626         Body=$( echo "{${genericSimulationID},\"msgCode\":\"${code}\",\"accountingProject\":\"${PROJECT}\",\"jobWarningDelay\":\"${jobWarningDelay}\",\"msgUID\":\"$(uuidgen)\",\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\"}" ) 
     618        Body=$( echo "{${genericSimulationID},\"msgCode\":\"${code}\",\"accountingProject\":\"${PROJECT}\",\"jobWarningDelay\":\"${jobWarningDelay}\",\"jobSchedulerID\":\"${jobSchedulerID}\",\"jobSubmissionPath\":\"${SUBMIT_DIR}\",\"msgUID\":\"$(uuidgen)\",\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\"}" ) 
    627619        # Fill the rabbitMQ queue 
    628620        IGCM_debug_sendAMQP 
     
    632624      # Be sure that the genericSimulationID will be small from now on 
    633625      # Using standard fields for messages others than the first one. Still subject to change 
    634       genericSimulationID=$( echo "\"msgApplication\":\"monitoring\",\"msgProducer\":\"libigcm\",\"simuid\":\"${simuid}\",\"jobuid\":\"${jobuid}\"" ) 
     626      genericSimulationID=$( echo "\"msgApplication\":\"monitoring\",\"msgProducer\":\"libigcm\",\"msgProducerVersion\":\"${libIGCMVersion}\",\"simuid\":\"${simuid}\",\"jobuid\":\"${jobuid}\"" ) 
    635627 
    636628    elif [ X${TaskType} = Xpost-processing ]; then 
     
    641633      simuid=${run_Configuration_simuid} 
    642634      # Using standard fields for message others than the first one. Still subject to change 
    643       genericSimulationID=$( echo "\"msgApplication\":\"monitoring\",\"msgProducer\":\"libigcm\",\"simuid\":\"${simuid}\",\"jobuid\":\"${jobuid}\"" ) 
     635      genericSimulationID=$( echo "\"msgApplication\":\"monitoring\",\"msgProducer\":\"libigcm\",\"msgProducerVersion\":\"${libIGCMVersion}\",\"simuid\":\"${simuid}\",\"jobuid\":\"${jobuid}\"" ) 
    644636       
    645637      # Specify the post-processing task we are dealing with 
    646       n=$( echo "${Script_Post_Output}" | tr -d -c "\." | wc -c ) 
     638      postProcessingIDLength=$( echo "${Script_Post_Output}" | tr -d -c "\." | wc -c ) 
    647639      postProcessingName=$( echo "${Script_Post_Output}" | gawk -F. '{print $1}' ) 
    648640      postProcessingDate=$( echo "${Script_Post_Output}" | gawk -F. '{print $2}' ) 
     
    650642      postProcessingComp="null" 
    651643      postProcessingFile="null" 
    652       if [ ${n} -eq 3 ] ; then 
     644      if [ ${postProcessingIDLength} -eq 3 ] ; then 
    653645        postProcessingDimn=$( echo "${Script_Post_Output}" | gawk -F. '{print $3}' ) 
    654       elif [ ${n} -eq 5 ] ; then 
     646      elif [ ${postProcessingIDLength} -eq 5 ] ; then 
    655647        postProcessingComp=$( echo "${Script_Post_Output}" | gawk -F. '{print $4}' ) 
    656648        postProcessingFile=$( echo "${Script_Post_Output}" | gawk -F. '{print $5}' ) 
     
    658650 
    659651      # RabbitMQ message body with specific fields associated message codes treated here 
    660       Body=$( echo "{${genericSimulationID},\"msgCode\":\"${code}\",\"accountingProject\":\"${PROJECT}\",\"jobWarningDelay\":\"${jobWarningDelay}\",\"msgUID\":\"$(uuidgen)\",\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\",\"postProcessingName\":\"${postProcessingName}\",\"postProcessingDate\":\"${postProcessingDate}\",\"postProcessingDimn\":\"${postProcessingDimn}\",\"postProcessingComp\":\"${postProcessingComp}\",\"postProcessingFile\":\"${postProcessingFile}\"}" ) 
     652      Body=$( echo "{${genericSimulationID},\"msgCode\":\"${code}\",\"accountingProject\":\"${PROJECT}\",\"jobWarningDelay\":\"${jobWarningDelay}\",\"jobSchedulerID\":\"${jobSchedulerID}\",\"jobSubmissionPath\":\"${SUBMIT_DIR}\",\"msgUID\":\"$(uuidgen)\",\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\",\"postProcessingName\":\"${postProcessingName}\",\"postProcessingDate\":\"${postProcessingDate}\",\"postProcessingDimn\":\"${postProcessingDimn}\",\"postProcessingComp\":\"${postProcessingComp}\",\"postProcessingFile\":\"${postProcessingFile}\"}" ) 
    661653      # Fill the rabbitMQ queue 
    662654      IGCM_debug_sendAMQP 
     
    692684        elif ( ${ExitFlag} ) ; then 
    693685          # RabbitMQ message code "EXIT THE JOBS BECAUSE ERROR(S) HAS BEEN TRIGGERED" 
    694           code=9999 
     686          code=1999 
    695687          FlushAMQP=true 
    696688        else 
     
    701693        if ( ${ExitFlag} ) ; then 
    702694          # RabbitMQ message code "POST-PROCESSING JOB FAILS" 
    703           code=2900 
     695          code=2999 
    704696          FlushAMQP=true 
    705           else 
     697        else 
    706698          # RabbitMQ message code "POST-PROCESSING JOB ENDS" 
    707699          code=2100 
     700          FlushAMQP=true 
     701        fi 
     702      elif [ X${TaskType} = Xchecking ]; then 
     703        if ( ${ExitFlag} ) ; then 
     704          # RabbitMQ message code "POST-PROCESSING JOB FAILS" 
     705          code=3999 
     706          FlushAMQP=true 
     707        else 
     708          # RabbitMQ message code "POST-PROCESSING JOB ENDS" 
     709          code=3100 
    708710          FlushAMQP=true 
    709711        fi 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_ada.ksh

    r1242 r1244  
    11801180 
    11811181#D-#================================================== 
     1182#D-function IGCM_sys_getJobSchedulerID 
     1183#D-* Purpose: Get the job ID during execution 
     1184#D-* Examples: IGCM_sys_getJobSchedulerID jobSchedulerID 
     1185#D- 
     1186function IGCM_sys_getJobSchedulerID { 
     1187  IGCM_debug_PushStack "IGCM_sys_getJobSchedulerID" 
     1188  if ( $DEBUG_sys ) ; then 
     1189    echo "IGCM_sys_getJobSchedulerID" 
     1190  fi 
     1191 
     1192  eval ${1}=$( echo $LOADL_STEP_ID | awk -F. '{print $4}' ) 
     1193 
     1194  IGCM_debug_PopStack "IGCM_sys_getJobSchedulerID" 
     1195} 
     1196 
     1197#D-#================================================== 
    11821198#D-function IGCM_sys_GetJobID 
    1183 #D-* Purpose: Check if job_name is currently 
    1184 #D-  running or in queue 
     1199#D-* Purpose: Get the job ID from the JobName 
    11851200#D-* Examples: IGCM_sys_GetJobID ${JobName} ${TargetUsr} JobID 
    11861201#D- 
     
    12011216#D-#================================================== 
    12021217#D-function IGCM_sys_CountJobInQueue 
    1203 #D-* Purpose: Check if job_name is currently 
    1204 #D-  running or in queue 
     1218#D-* Purpose: Count number of users job 
    12051219#D-* Examples: IGCM_sys_CountJobInQueue ${JobName} NbRun 
    12061220#D- 
     
    12211235#D-#================================================== 
    12221236#D-function IGCM_sys_ListJobInQueue 
    1223 #D-* Purpose: Check if job_name is currently 
    1224 #D-  running or in queue 
     1237#D-* Purpose: Produce a list of users jobs 
    12251238#D-* Examples: IGCM_sys_ListJobInQueue ${User} JobNameList 
    12261239#D- 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_ciclad.ksh

    r1239 r1244  
    11711171 
    11721172#D-#================================================== 
     1173#D-function IGCM_sys_getJobSchedulerID 
     1174#D-* Purpose: Get the job ID during execution 
     1175#D-* Examples: IGCM_sys_getJobSchedulerID jobSchedulerID 
     1176#D- 
     1177function IGCM_sys_getJobSchedulerID { 
     1178  IGCM_debug_PushStack "IGCM_sys_getJobSchedulerID" 
     1179  if ( $DEBUG_sys ) ; then 
     1180    echo "IGCM_sys_getJobSchedulerID" 
     1181  fi 
     1182 
     1183  eval ${1}=$( echo ${PBS_JOBID} | awk -F. '{print $1}' ) 
     1184 
     1185  IGCM_debug_PopStack "IGCM_sys_getJobSchedulerID" 
     1186} 
     1187 
     1188#D-#================================================== 
    11731189#D-function IGCM_sys_GetJobID 
    1174 #D-* Purpose: Check if job_name is currently 
    1175 #D-  running or in queue 
     1190#D-* Purpose: Get the job ID from the JobName 
    11761191#D-* Examples: IGCM_sys_GetJobID ${JobName} ${TargetUsr} JobID 
    11771192#D- 
     
    11911206#D-#================================================== 
    11921207#D-function IGCM_sys_CountJobInQueue 
    1193 #D-* Purpose: Check if job_name is currently 
    1194 #D-  running or in queue 
     1208#D-* Purpose: Count number of users job 
    11951209#D-* Examples: IGCM_sys_CountJobInQueue ${JobName} NbRun 
    11961210#D- 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh

    r1240 r1244  
    15611561 
    15621562#D-#================================================== 
     1563#D-function IGCM_sys_getJobSchedulerID 
     1564#D-* Purpose: Get the job ID during execution 
     1565#D-* Examples: IGCM_sys_getJobSchedulerID jobSchedulerID 
     1566#D- 
     1567function IGCM_sys_getJobSchedulerID { 
     1568  IGCM_debug_PushStack "IGCM_sys_getJobSchedulerID" 
     1569  if ( $DEBUG_sys ) ; then 
     1570    echo "IGCM_sys_getJobSchedulerID" 
     1571  fi 
     1572 
     1573  eval ${1}=${BRIDGE_MSUB_JOBID} 
     1574 
     1575  IGCM_debug_PopStack "IGCM_sys_getJobSchedulerID" 
     1576} 
     1577 
     1578#D-#================================================== 
    15631579#D-function IGCM_sys_GetJobID 
    1564 #D-* Purpose: Check if job_name is currently 
    1565 #D-  running or in queue 
     1580#D-* Purpose: Get the job ID from the JobName 
    15661581#D-* Examples: IGCM_sys_GetJobID ${JobName} ${TargetUsr} JobID 
    15671582#D- 
     
    15821597#D-#================================================== 
    15831598#D-function IGCM_sys_CountJobInQueue 
    1584 #D-* Purpose: Check if job_name is currently 
    1585 #D-  running or in queue 
     1599#D-* Purpose: Count number of users job 
    15861600#D-* Examples: IGCM_sys_CountJobInQueue ${JobName} NbRun 
    15871601#D- 
     
    16021616#D-#================================================== 
    16031617#D-function IGCM_sys_ListJobInQueue 
    1604 #D-* Purpose: Check if job_name is currently 
    1605 #D-  running or in queue 
     1618#D-* Purpose: Produce a list of users computing jobs (excluding post-processing) 
    16061619#D-* Examples: IGCM_sys_ListJobInQueue ${User} JobNameList 
    16071620#D- 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh

    r1239 r1244  
    11261126 
    11271127#D-#================================================== 
     1128#D-function IGCM_sys_getJobSchedulerID 
     1129#D-* Purpose: Get the job ID during execution 
     1130#D-* Examples: IGCM_sys_getJobSchedulerID jobSchedulerID 
     1131#D- 
     1132function IGCM_sys_getJobSchedulerID { 
     1133  IGCM_debug_PushStack "IGCM_sys_getJobSchedulerID" 
     1134  if ( $DEBUG_sys ) ; then 
     1135    echo "IGCM_sys_getJobSchedulerID" 
     1136  fi 
     1137 
     1138  eval ${1}="N/A" 
     1139 
     1140  IGCM_debug_PopStack "IGCM_sys_getJobSchedulerID" 
     1141} 
     1142 
     1143#D-#================================================== 
    11281144#D-function IGCM_sys_CountJobInQueue 
    1129 #D-* Purpose: Check if job_name is currently 
    1130 #D-  running or in queue 
     1145#D-* Purpose: Count number of users job 
    11311146#D-* Examples: IGCM_sys_CountJobInQueue ${JobName} NbRun 
    11321147#D- 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_iitm.ksh

    r1239 r1244  
    10141014#D-#================================================== 
    10151015#D-function IGCM_sys_CountJobInQueue 
    1016 #D-* Purpose: Check if job_name is currently 
    1017 #D-  running or in queue 
     1016#D-* Purpose: Count number of users job 
    10181017#D-* Examples: IGCM_sys_CountJobInQueue ${JobName} NbRun 
    10191018#D- 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_obelix.ksh

    r1241 r1244  
    11451145 
    11461146#D-#================================================== 
     1147#D-function IGCM_sys_getJobSchedulerID 
     1148#D-* Purpose: Get the job ID during execution 
     1149#D-* Examples: IGCM_sys_getJobSchedulerID jobSchedulerID 
     1150#D- 
     1151function IGCM_sys_getJobSchedulerID { 
     1152  IGCM_debug_PushStack "IGCM_sys_getJobSchedulerID" 
     1153  if ( $DEBUG_sys ) ; then 
     1154    echo "IGCM_sys_getJobSchedulerID" 
     1155  fi 
     1156 
     1157  eval ${1}=$( echo ${PBS_JOBID} | awk -F. '{print $1}' ) 
     1158 
     1159  IGCM_debug_PopStack "IGCM_sys_getJobSchedulerID" 
     1160} 
     1161 
     1162#D-#================================================== 
    11471163#D-function IGCM_sys_GetJobID 
    1148 #D-* Purpose: Check if job_name is currently 
    1149 #D-  running or in queue 
     1164#D-* Purpose: Get the job ID from the JobName 
    11501165#D-* Examples: IGCM_sys_GetJobID ${JobName} ${TargetUsr} JobID 
    11511166#D- 
     
    11651180#D-#================================================== 
    11661181#D-function IGCM_sys_CountJobInQueue 
    1167 #D-* Purpose: Check if job_name is currently 
    1168 #D-  running or in queue 
     1182#D-* Purpose: Count number of users job 
    11691183#D-* Examples: IGCM_sys_CountJobInQueue ${JobName} NbRun 
    11701184#D- 
Note: See TracChangeset for help on using the changeset viewer.