From: 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-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=263b80b456aa036f98f1a59ddec71537e1b20506;p=dealii-svn.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,