]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Output a bit more information on levels.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Feb 2010 01:04:58 +0000 (01:04 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Feb 2010 01:04:58 +0000 (01:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@20535 0785d39b-7218-0410-832d-ea1e28bc413d

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

index e947b41acb452f6f961642db9f86e62fffacb32d..b458ba22e8e66dd42c0f5eba6a3b1ee93f0af946 100644 (file)
@@ -600,7 +600,12 @@ void LaplaceProblem<dim>::run ()
 
       std::cout << "   Number of degrees of freedom: "
                << mg_dof_handler.n_dofs()
-               << std::endl;
+               << " (by level: ";
+      for (unsigned int level=0; level<triangulation.n_levels(); ++level)
+       std::cout << mg_dof_handler.n_dofs(level)
+                 << (level == triangulation.n_levels()-1
+                     ? ")" : ", ");
+      std::cout << std::endl;
 
       assemble_system ();
       assemble_multigrid ();
@@ -611,7 +616,10 @@ void LaplaceProblem<dim>::run ()
 }
 
 
-
+                                // @sect3{The main() function}
+                                //
+                                // This is again the same function as
+                                // in step-6:
 int main ()
 {
   try

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.