• R/O
  • SSH

treelm: 提交

Repository of the treelm library.


Commit MetaInfo

修訂f1b5708381ef10afdf229c38e5c24fb384a30863 (tree)
時間2022-09-01 20:38:29
作者Harald Klimach <harald.klimach@dlr....>
CommiterHarald Klimach

Log Message

Added a timer to measure the syncUpdate of simcontrol.

Change Summary

差異

diff -r 951fd6ce3488 -r f1b5708381ef source/control/tem_simControl_module.f90
--- a/source/control/tem_simControl_module.f90 Mon Aug 29 15:32:18 2022 +0200
+++ b/source/control/tem_simControl_module.f90 Thu Sep 01 13:38:29 2022 +0200
@@ -133,6 +133,10 @@
133133
134134 use tem_convergence_module, only: tem_convergence_reset
135135
136+ use tem_timer_module, only: tem_addTimer, &
137+ & tem_startTimer, &
138+ & tem_stopTimer
139+
136140 use aotus_module, only: flu_State, aot_get_val
137141 use aot_table_module, only: aot_table_open, &
138142 & aot_table_close
@@ -182,6 +186,10 @@
182186 !> Use nonblocking operations for gobal checks and delay evaluation by
183187 !! one check interval (see timeControl%check_iter)
184188 logical :: delay_check = .false.
189+
190+ !> Handle for the syncUpdate timer to measure the time spent on syncUpdate
191+ !! calls.
192+ integer :: syncUpdate_timer
185193 end type tem_simControl_type
186194
187195
@@ -277,6 +285,9 @@
277285 ! simulation time.
278286 call tem_timeControl_start_at_sim(me = me%timeControl, now = me%now)
279287
288+ call tem_addTimer( timerHandle = me%syncUpdate_timer, &
289+ & timerName = 'tem_syncUpdate' )
290+
280291 end subroutine tem_simControl_load
281292 ! ************************************************************************ !
282293
@@ -399,6 +410,8 @@
399410 logical :: max_reached(tem_time_n_ids)
400411 ! -------------------------------------------------------------------- !
401412
413+ call tem_startTimer(timerHandle = me%syncUpdate_timer)
414+
402415 if (present(dt)) then
403416 call tem_time_advance( me = me%now, &
404417 & sim_dt = dt, &
@@ -441,6 +454,8 @@
441454 & %bits(tem_stat_interval) )
442455 end if
443456
457+ call tem_stopTimer(timerHandle = me%syncUpdate_timer)
458+
444459 end subroutine tem_simControl_syncUpdate
445460 ! ************************************************************************ !
446461
Show on old repository browser