]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add safety check that vector really is ghosted in fe_evaluation.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 18 Oct 2013 12:30:38 +0000 (12:30 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 18 Oct 2013 12:30:38 +0000 (12:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@31302 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/matrix_free/fe_evaluation.h

index 4e3cc316c53203687feaa36fa5129e2ba7d9f0e3..08a0839e74ca9c1405afe56f2fd651b5717cd0b9 100644 (file)
@@ -1660,7 +1660,7 @@ namespace internal
                       VectorType         &vec,
                       Number             &res) const
     {
-      res = vector_access (vec, index);
+      res = vector_access (const_cast<const VectorType&>(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<const VectorType&>(vec), index);
     }
 
     void post_constraints (const Number &sum,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.