Changeset 1235 for trunk/libIGCM/libIGCM_config
- Timestamp:
- 09/03/15 17:56:57 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_config/libIGCM_config.ksh
r1232 r1235 581 581 typeset ExeNameIn ExeNameFirst CompNameFirst comp i 582 582 typeset tempvar tempvarMPI tempvarNOD NbElts NbExec 583 typeset executionType 584 585 PROCESSUS_NUMBER=0583 584 coreNumber=0 585 mpiTasks=0 586 586 NbExec=0 587 587 … … 679 679 [ ${tempvarOMP} -ge 2 ] && OK_PARA_OMP=true 680 680 681 # SUM UP TOTAL NUMBER OF CORES 682 (( PROCESSUS_NUMBER = PROCESSUS_NUMBER + tempvarMPI * tempvarNOD * tempvarOMP )) 681 # SUM UP NUMBER OF CORES 682 (( coreNumber = coreNumber + tempvarMPI * tempvarNOD * tempvarOMP )) 683 684 # SUM UP NUMBER OF MPI TASKS 685 (( mpiTasks = mpiTasks + tempvarMPI * tempvarNOD )) 683 686 fi 684 687 done … … 710 713 elif ( [ ! ${OK_PARA_MPI} ] && [ ! ${OK_PARA_OMP} ] ) ; then 711 714 executionType=6 712 PROCESSUS_NUMBER=1713 fi 714 fi 715 716 IGCM_debug_Print 1 "MPI/OMP treatment PROCESSUS_NUMBER = ${PROCESSUS_NUMBER}"715 coreNumber=1 716 fi 717 fi 718 719 IGCM_debug_Print 1 "MPI/OMP treatment coreNumber = ${coreNumber}" 717 720 718 721 IGCM_debug_PopStack "IGCM_config_ConfigureExexution" … … 1132 1135 RealCpuTime=$( echo ${ExeCpuLog} | gawk '{print $3}' ) 1133 1136 1134 consumeHoursPerPeriod=$( echo "scale=6;${RealCpuTime}*${ PROCESSUS_NUMBER}/3600" | bc )1137 consumeHoursPerPeriod=$( echo "scale=6;${RealCpuTime}*${coreNumber}/3600" | bc ) 1135 1138 1136 1139 consumeHoursPerWholeSimulation=$( echo "scale=6;${consumeHoursPerPeriod}/${PeriodLengthInDays}*${ExperienceLengthInDays}" | bc ) 1137 1140 1138 recommendedPeriodNb=$( echo "scale=6;${jobWarningDelay}/3600/${consumeHoursPerPeriod}*${ PROCESSUS_NUMBER}" | bc )1141 recommendedPeriodNb=$( echo "scale=6;${jobWarningDelay}/3600/${consumeHoursPerPeriod}*${coreNumber}" | bc ) 1139 1142 1140 1143 IGCM_sys_SendMail Accounting
Note: See TracChangeset
for help on using the changeset viewer.