From: Martin Kronbichler Date: Sun, 21 Apr 2013 16:12:29 +0000 (+0000) Subject: Fix case with const vectors. X-Git-Tag: v8.0.0~648 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ee01290263df7b2164aea40ac68b9800e7fd7f3;p=dealii.git Fix case with const vectors. git-svn-id: https://svn.dealii.org/trunk@29351 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 b3387178f9..067488d482 100644 --- a/deal.II/include/deal.II/matrix_free/fe_evaluation.h +++ b/deal.II/include/deal.II/matrix_free/fe_evaluation.h @@ -2225,10 +2225,10 @@ FEEvaluationBase { // select between block vectors and non-block vectors. Note that the number // of components is checked in the internal data - typename internal::BlockVectorSelector::value>::BaseVectorType *src_data[n_components]; for (unsigned int d=0; d::value>::get_vector_component(src, d); + src_data[d] = internal::BlockVectorSelector::value>::get_vector_component(const_cast(src), d); read_dof_values_plain (src_data); }