]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Print debug output.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 22 Apr 2002 16:19:01 +0000 (16:19 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 22 Apr 2002 16:19:01 +0000 (16:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@5712 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 026debadb06bf73b8f64ed303615ab13c8723421..930a01253f5160f83bc170832f9844c523abd519 100644 (file)
@@ -136,7 +136,7 @@ namespace Evaluation
           ++vertex)
        if (cell->vertex(vertex) == evaluation_point)
          {
-           point_value = 1.-solution(cell->vertex_dof_index(vertex,0));
+           point_value = solution(cell->vertex_dof_index(vertex,0));
 
            evaluation_point_found = true;
            break;
@@ -147,6 +147,10 @@ namespace Evaluation
 
     results_table.add_value ("DoFs", dof_handler.n_dofs());
     results_table.add_value ("u(x_0)", point_value);
+
+    std::cout << "   Point value=" << point_value
+             << ", exact value=1, error="
+             << 1.-point_value << std::endl;
   };
 
 };
@@ -1208,7 +1212,7 @@ namespace LaplaceSolver
   {
     Vector<float> error_indicators (triangulation->n_active_cells());
     estimate_error (error_indicators);
-    std::cout << "Estimated error="
+    std::cout << "   Estimated error="
              << std::accumulate (error_indicators.begin(),
                                  error_indicators.end(), 0.)
              << std::endl;

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.