From: Wolfgang Bangerth Date: Mon, 3 Aug 1998 08:00:27 +0000 (+0000) Subject: Extend error estimator for a variable coefficient. X-Git-Tag: v8.0.0~22787 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7690c9be76a3069d60c0e773a9addb6b48b24c62;p=dealii.git Extend error estimator for a variable coefficient. git-svn-id: https://svn.dealii.org/trunk@467 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/Attic/examples/error-estimation/error-estimation.cc b/deal.II/deal.II/Attic/examples/error-estimation/error-estimation.cc index d3107985f4..8549548ad2 100644 --- a/deal.II/deal.II/Attic/examples/error-estimation/error-estimation.cc +++ b/deal.II/deal.II/Attic/examples/error-estimation/error-estimation.cc @@ -481,7 +481,9 @@ void PoissonProblem::run (ParameterHandler &prm) { ee.estimate_error (*dof, eq, fe, *boundary, KellyErrorEstimator::FunctionMap(), solution, - estimated_error_per_cell); + estimated_error_per_cell, + ((prm.get("Test case")=="Kink") ? + kink_coefficient : 0 )); cout << estimated_error_per_cell.l2_norm() << endl; estimated_error.push_back (estimated_error_per_cell.l2_norm()); diff --git a/tests/big-tests/error-estimation/error-estimation.cc b/tests/big-tests/error-estimation/error-estimation.cc index d3107985f4..8549548ad2 100644 --- a/tests/big-tests/error-estimation/error-estimation.cc +++ b/tests/big-tests/error-estimation/error-estimation.cc @@ -481,7 +481,9 @@ void PoissonProblem::run (ParameterHandler &prm) { ee.estimate_error (*dof, eq, fe, *boundary, KellyErrorEstimator::FunctionMap(), solution, - estimated_error_per_cell); + estimated_error_per_cell, + ((prm.get("Test case")=="Kink") ? + kink_coefficient : 0 )); cout << estimated_error_per_cell.l2_norm() << endl; estimated_error.push_back (estimated_error_per_cell.l2_norm());