From: heister Date: Fri, 26 Oct 2012 20:02:06 +0000 (+0000) Subject: update test (this test used to print nan/-nan on different compilers, now TimerOutput... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94cc88c8d9803b1e81d06c595e252d0ad0a52c44;p=dealii-svn.git update test (this test used to print nan/-nan on different compilers, now TimerOutput is fixed to just print 0.0) git-svn-id: https://svn.dealii.org/trunk@27219 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/base/timer_02.cc b/tests/base/timer_02.cc index d10d2091c6..55aba7f305 100644 --- a/tests/base/timer_02.cc +++ b/tests/base/timer_02.cc @@ -31,12 +31,14 @@ int main () deallog.depth_console(0); deallog.threshold_double(1.e-10); + { + TimerOutput t(logfile, TimerOutput::summary, TimerOutput::cpu_times); t.enter_subsection("hi"); t.leave_subsection("hi"); - - t.print_summary(); + } + deallog << "ok" << std::endl; } diff --git a/tests/base/timer_02/cmp/generic b/tests/base/timer_02/cmp/generic index ba2ae39c87..0d803b3caa 100644 --- a/tests/base/timer_02/cmp/generic +++ b/tests/base/timer_02/cmp/generic @@ -6,17 +6,7 @@ | | | | | Section | no. calls | CPU time | % of total | +---------------------------------+-----------+------------+------------+ -| hi | 1 | 0.00s | nan% | +| hi | 1 | 0.00s | 0.0% | +---------------------------------+-----------+------------+------------+ DEAL::ok - - -+---------------------------------------------+------------+------------+ -| Total CPU time elapsed since start | 0.00s | | -| | | | -| Section | no. calls | CPU time | % of total | -+---------------------------------+-----------+------------+------------+ -| hi | 1 | 0.00s | nan% | -+---------------------------------+-----------+------------+------------+ -