From: Wolfgang Bangerth Date: Mon, 22 Apr 2002 16:19:01 +0000 (+0000) Subject: Print debug output. X-Git-Tag: v8.0.0~18136 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed2dde78adc024e4ee5c0c909b85025c419f4aa4;p=dealii.git Print debug output. git-svn-id: https://svn.dealii.org/trunk@5712 0785d39b-7218-0410-832d-ea1e28bc413d --- 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;