]> https://gitweb.dealii.org/ - dealii.git/commitdiff
update test (this test used to print nan/-nan on different compilers, now TimerOutput...
authorTimo Heister <timo.heister@gmail.com>
Fri, 26 Oct 2012 20:02:06 +0000 (20:02 +0000)
committerTimo Heister <timo.heister@gmail.com>
Fri, 26 Oct 2012 20:02:06 +0000 (20:02 +0000)
git-svn-id: https://svn.dealii.org/trunk@27219 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/timer_02.cc
tests/base/timer_02/cmp/generic

index d10d2091c650086f14be41761e35af98d25f76fc..55aba7f305a64ffa8497e367d1933fda8ff1e680 100644 (file)
@@ -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;
 }
 
index ba2ae39c87a7b649c3c773692f6a55a0699d02d3..0d803b3caae7409ea01744ba21de7728ccd25931 100644 (file)
@@ -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% |
-+---------------------------------+-----------+------------+------------+
-

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.