From: kronbichler Date: Sun, 21 Apr 2013 16:12:29 +0000 (+0000) Subject: Fix case with const vectors. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d706a05826717b1c642f4938578810205a8bbbed;p=dealii-svn.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); }