enclose wall time measurement for dotState and dotTemperature function by CRITICAL construct

This commit is contained in:
Christoph Kords 2010-11-19 17:19:03 +00:00
parent b2cc34349f
commit 15728d3305
1 changed files with 10 additions and 6 deletions

View File

@ -583,9 +583,11 @@ select case (phase_constitution(material_phase(ipc,ip,el)))
end select end select
call system_clock(count=tock,count_rate=tickrate,count_max=maxticks) call system_clock(count=tock,count_rate=tickrate,count_max=maxticks)
debug_cumDotStateCalls = debug_cumDotStateCalls + 1_pInt !$OMP CRITICAL (debugTimingDotState)
debug_cumDotStateTicks = debug_cumDotStateTicks + tock-tick debug_cumDotStateCalls = debug_cumDotStateCalls + 1_pInt
if (tock < tick) debug_cumDotStateTicks = debug_cumDotStateTicks + maxticks debug_cumDotStateTicks = debug_cumDotStateTicks + tock-tick
if (tock < tick) debug_cumDotStateTicks = debug_cumDotStateTicks + maxticks
!$OMP END CRITICAL (debugTimingDotState)
return return
endsubroutine endsubroutine
@ -652,9 +654,11 @@ select case (phase_constitution(material_phase(ipc,ip,el)))
end select end select
call system_clock(count=tock,count_rate=tickrate,count_max=maxticks) call system_clock(count=tock,count_rate=tickrate,count_max=maxticks)
debug_cumDotTemperatureCalls = debug_cumDotTemperatureCalls + 1_pInt !$OMP CRITICAL (debugTimingDotTemperature)
debug_cumDotTemperatureTicks = debug_cumDotTemperatureTicks + tock-tick debug_cumDotTemperatureCalls = debug_cumDotTemperatureCalls + 1_pInt
if (tock < tick) debug_cumDotTemperatureTicks = debug_cumDotTemperatureTicks + maxticks debug_cumDotTemperatureTicks = debug_cumDotTemperatureTicks + tock-tick
if (tock < tick) debug_cumDotTemperatureTicks = debug_cumDotTemperatureTicks + maxticks
!$OMP END CRITICAL (debugTimingDotTemperature)
return return
endfunction endfunction