From ed2dde78adc024e4ee5c0c909b85025c419f4aa4 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 22 Apr 2002 16:19:01 +0000 Subject: [PATCH] Print debug output. git-svn-id: https://svn.dealii.org/trunk@5712 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-14/step-14.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deal.II/examples/step-14/step-14.cc b/deal.II/examples/step-14/step-14.cc index 026debadb0..930a01253f 100644 --- a/deal.II/examples/step-14/step-14.cc +++ b/deal.II/examples/step-14/step-14.cc @@ -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 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; -- 2.39.5