From: Martin Kronbichler Date: Fri, 18 Oct 2013 12:30:38 +0000 (+0000) Subject: Add safety check that vector really is ghosted in fe_evaluation. X-Git-Tag: v8.1.0~575 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9108723194643787f4076f8c9d0c2a2bebc5599;p=dealii.git 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 --- 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,