Number *local_data [n_components];
for (unsigned int comp=0; comp<n_components; ++comp)
local_data[comp] =
- const_cast<Number *>(reinterpret_cast<const Number *>(values_dofs[comp]));
+ const_cast<Number *>(&values_dofs[comp][0][0]);
// standard case where there are sufficiently
// many cells to fill all vectors
const unsigned int n_local_dofs =
dofs_per_cell*VectorizedArray<Number>::n_array_elements * n_components;
Number *local_data =
- const_cast<Number *>(reinterpret_cast<const Number *>(values_dofs[0]));
+ const_cast<Number *>(&values_dofs[0][0][0]);
if (at_irregular_cell == false)
{
// check whether there is any constraint on
internal::check_vector_compatibility (*src[comp], dof_info);
Number *local_src_number [n_components];
for (unsigned int comp=0; comp<n_components; ++comp)
- local_src_number[comp] = reinterpret_cast<Number *>(values_dofs[comp]);
+ local_src_number[comp] = &values_dofs[comp][0][0];
// standard case where there are sufficiently
// many cells to fill all vectors
Assert (n_fe_components == n_components_, ExcNotImplemented());
const unsigned int n_local_dofs =
dofs_per_cell * VectorizedArray<Number>::n_array_elements * n_components;
- Number *local_src_number = reinterpret_cast<Number *>(values_dofs[0]);
+ Number *local_src_number = &values_dofs[0][0][0];
if (at_irregular_cell == false)
{
for (unsigned int j=0; j<n_local_dofs; ++j)