From 263b80b456aa036f98f1a59ddec71537e1b20506 Mon Sep 17 00:00:00 2001 From: kronbichler Date: Fri, 18 Oct 2013 12:30:38 +0000 Subject: [PATCH] Add safety check that vector really is ghosted in fe_evaluation. git-svn-id: https://svn.dealii.org/trunk@31302 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/matrix_free/fe_evaluation.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/include/deal.II/matrix_free/fe_evaluation.h b/deal.II/include/deal.II/matrix_free/fe_evaluation.h index 4e3cc316c5..08a0839e74 100644 --- a/deal.II/include/deal.II/matrix_free/fe_evaluation.h +++ b/deal.II/include/deal.II/matrix_free/fe_evaluation.h @@ -1660,7 +1660,7 @@ namespace internal VectorType &vec, Number &res) const { - res = vector_access (vec, index); + res = vector_access (const_cast(vec), index); } void pre_constraints (const Number &, @@ -1675,7 +1675,7 @@ namespace internal VectorType &vec, Number &res) const { - res += weight * vector_access (vec, index); + res += weight * vector_access (const_cast(vec), index); } void post_constraints (const Number &sum, -- 2.39.5