From 7690c9be76a3069d60c0e773a9addb6b48b24c62 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 3 Aug 1998 08:00:27 +0000 Subject: [PATCH] Extend error estimator for a variable coefficient. git-svn-id: https://svn.dealii.org/trunk@467 0785d39b-7218-0410-832d-ea1e28bc413d --- .../Attic/examples/error-estimation/error-estimation.cc | 4 +++- tests/big-tests/error-estimation/error-estimation.cc | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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()); -- 2.39.5