]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix case with const vectors.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 21 Apr 2013 16:12:29 +0000 (16:12 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 21 Apr 2013 16:12:29 +0000 (16:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@29351 0785d39b-7218-0410-832d-ea1e28bc413d

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

index b3387178f9fd803d7239ffa1f324b1c4eda6793d..067488d482ec36b2a2b8dbc60a559c9a08093022 100644 (file)
@@ -2225,10 +2225,10 @@ FEEvaluationBase<dim,dofs_per_cell_,n_q_points_,n_components_,Number>
 {
   // select between block vectors and non-block vectors. Note that the number
   // of components is checked in the internal data
-  typename internal::BlockVectorSelector<const VectorType,
+  const typename internal::BlockVectorSelector<VectorType,
     IsBlockVector<VectorType>::value>::BaseVectorType *src_data[n_components];
   for (unsigned int d=0; d<n_components; ++d)
-    src_data[d] = internal::BlockVectorSelector<const VectorType, IsBlockVector<VectorType>::value>::get_vector_component(src, d);
+    src_data[d] = internal::BlockVectorSelector<VectorType, IsBlockVector<VectorType>::value>::get_vector_component(const_cast<VectorType &>(src), d);
 
   read_dof_values_plain (src_data);
 }

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.