Changeset 1630


Ignore:
Timestamp:
02/28/24 09:25:31 (4 months ago)
Author:
jgipsl
Message:

Only send Accounting mail if the variable jobWarningDelay has been set.

File:
1 edited

Legend:

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

    r1609 r1630  
    14041404  if [ ${CumulPeriod} -eq 3 ] ; then 
    14051405    echo 
    1406     IGCM_debug_Print 1 "Send email containing some accounting information : " 
    1407  
    14081406    RealCpuTime=$( echo ${ExeCpuLog} | gawk '{print $3}' ) 
    14091407 
     
    14121410    consumeHoursPerWholeSimulation=$( echo "scale=6;${consumeHoursPerPeriod}/${PeriodLengthInDays}*${ExperienceLengthInDays}" | bc ) 
    14131411 
    1414     recommendedNbPeriodsPerJob=$( echo "scale=6;${jobWarningDelay}/3600/${consumeHoursPerPeriod}*${coreNumber}" | bc ) 
    1415      
    1416     IGCM_sys_SendMail Accounting 
     1412    # Only continue if jobWarnaingDelay has been set in libIGCM_sys 
     1413    if [ ! X${jobWarningDelay} = X ] ; then  
     1414      recommendedNbPeriodsPerJob=$( echo "scale=6;${jobWarningDelay}/3600/${consumeHoursPerPeriod}*${coreNumber}" | bc ) 
     1415      IGCM_debug_Print 1 "Send email containing some accounting information : " 
     1416      IGCM_sys_SendMail Accounting 
     1417    fi 
    14171418  fi 
    14181419 
Note: See TracChangeset for help on using the changeset viewer.