Ignore:
Timestamp:
08/14/13 14:17:29 (11 years ago)
Author:
sdipsl
Message:

Once per simulation send email containing estimated consumed hours for the whole simulation and a recommended PeriodNb?

File:
1 edited

Legend:

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

    r920 r922  
    420420  # DateBegin + CumulPeriod*PeriodLength = PeriodDateBegin 
    421421  echo 
    422    
     422 
    423423  case ${config_UserChoices_PeriodLength} in 
    424424  *Y|*y) 
     
    11081108  fi 
    11091109 
     1110  # Send some accounting element to the user if CumulPeriod=3 
     1111  if [ ${CumulPeriod} -eq 3 ] ; then 
     1112    echo 
     1113    IGCM_debug_Print 1 "Send email containing some accounting information : " 
     1114 
     1115    RealCpuTime=$( echo ${ExeCpuLog} | gawk '{print $3}' ) 
     1116 
     1117    consumeHoursPerPeriod=$( echo "scale=6;${RealCpuTime}*${PROCESSUS_NUMBER}/3600" | bc ) 
     1118 
     1119    consumeHoursPerWholeSimulation=$( echo "scale=6;${consumeHoursPerPeriod}/${PeriodLengthInDays}*${ExperienceLengthInDays}" | bc ) 
     1120 
     1121    recommendedPeriodNb=$( echo "scale=6;24/${consumeHoursPerPeriod}*${PROCESSUS_NUMBER}" | bc ) 
     1122 
     1123    IGCM_sys_SendMail Accounting 
     1124  fi 
     1125 
    11101126  #=================================================# 
    11111127  #         Modification of libIGCM behaviour       # 
     
    12801296 
    12811297    IGCM_debug_Print 1 "Submit next job" 
    1282     # SUBMIT NEXT JOB from SUBMIT_DIR and come back in RUN_DIR  
    1283     IGCM_sys_Cd ${SUBMIT_DIR}  
     1298    # SUBMIT NEXT JOB from SUBMIT_DIR and come back in RUN_DIR 
     1299    IGCM_sys_Cd ${SUBMIT_DIR} 
    12841300    # Keep only the 5 latest ${Script_Output_Prefix}_${config_UserChoices_JobName} 
    12851301    ScriptTot=$( ls ${Script_Output_Prefix}_${config_UserChoices_JobName}.?????? 2>/dev/null | wc -l ) 
Note: See TracChangeset for help on using the changeset viewer.