]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Also record assembly and solve times.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 7 Mar 2007 17:12:04 +0000 (17:12 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 7 Mar 2007 17:12:04 +0000 (17:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@14546 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-27/step-27.cc

index 0f306a64a5a98998507a9392e64ef1002c3926aa..2f457fcce95e7448de586f399b8b9db3e2fcec5f 100644 (file)
@@ -88,7 +88,7 @@ class LaplaceProblem
     Vector<double>       solution;
     Vector<double>       system_rhs;
 
-    Timer distr, condense, hang;
+    Timer distr, condense, hang, assemble, solver;
 };
 
 
@@ -634,15 +634,26 @@ void LaplaceProblem<dim>::run ()
       std::cout << "   Number of constraints       : "
                << hanging_node_constraints.n_constraints()
                << std::endl;
-      
+
+      assemble.reset ();
+      assemble.start ();
       assemble_system ();
+      assemble.stop();
+      
+
+      solver.reset();
+      solver.start();
       solve ();
+      solver.stop();
+      
       all.stop();
 
       std::cout << "   All: " << all()
                << ", distr: " << distr()
                << ", hang: " << hang()
                << ", condense: " << condense()
+               << ", assemble: " << assemble()
+               << ", solver: " << solver()
                << std::endl;
       
       output_results (cycle);

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.