From 6899af228a16e0f140c71038d7007d8d5f502c8f Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 11 Apr 2001 13:47:08 +0000 Subject: [PATCH] Fix true bug. git-svn-id: https://svn.dealii.org/trunk@4435 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/error_estimator.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deal.II/deal.II/source/numerics/error_estimator.cc b/deal.II/deal.II/source/numerics/error_estimator.cc index 01da5417e0..a9b4152eb6 100644 --- a/deal.II/deal.II/source/numerics/error_estimator.cc +++ b/deal.II/deal.II/source/numerics/error_estimator.cc @@ -177,6 +177,7 @@ void KellyErrorEstimator::estimate (const DoFHandler &dof_handler, const Function *coefficients, unsigned int n_threads) { + Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping")); static const MappingQ1 mapping; estimate(mapping, dof_handler, quadrature, neumann_bc, solution, error, component_mask, coefficients, n_threads); @@ -325,8 +326,7 @@ void KellyErrorEstimator<1>::estimate (const Mapping<1> &mapp { if (n_components==1) { - double v=0; - neumann_bc.find(n)->second->value(cell->vertex(0), v); + double v = neumann_bc.find(n)->second->value(cell->vertex(0)); for (unsigned int s=0; s::estimate (const DoFHandler &do const Function *coefficients, unsigned int n_threads) { + Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping")); static const MappingQ1 mapping; estimate(mapping, dof_handler, quadrature, neumann_bc, solutions, errors, component_mask, coefficients, n_threads); -- 2.39.5