// loop over all dofs on this cell and check whether they are
// interesting for us
- unsigned int pos = 0;
for (unsigned int local_dof=0; local_dof<copy_data.dofs_per_cell; ++local_dof)
if (coarse_fe.system_to_component_index(local_dof).first
==
const unsigned int local_parameter_dof
= coarse_fe.system_to_component_index(local_dof).second;
- copy_data.global_parameter_representation[local_dof] = 0.;
+ copy_data.global_parameter_representation[local_parameter_dof] = 0.;
// distribute the representation of
// @p{local_parameter_dof} on the parameter grid cell
// @p{cell} to the global data space
coarse_to_fine_grid_map[cell]->
set_dof_values_by_interpolation (parameter_dofs[local_parameter_dof],
- copy_data.global_parameter_representation[pos]);
+ copy_data.global_parameter_representation[local_parameter_dof]);
#ifdef DEAL_II_WITH_MPI
- copy_data.global_parameter_representation[pos].update_ghost_values ();
+ copy_data.global_parameter_representation[local_parameter_dof].update_ghost_values ();
#endif
- ++pos;
}
}