scratch.stokes_fe_values.reinit(cell);
- typename DoFHandler<dim>::active_cell_iterator temperature_cell(
- &triangulation, cell->level(), cell->index(), &temperature_dof_handler);
+ const typename DoFHandler<dim>::active_cell_iterator temperature_cell =
+ cell->as_dof_handler_iterator(temperature_dof_handler);
scratch.temperature_fe_values.reinit(temperature_cell);
if (rebuild_stokes_matrix)
scratch.temperature_fe_values.reinit(cell);
- typename DoFHandler<dim>::active_cell_iterator stokes_cell(
- &triangulation, cell->level(), cell->index(), &stokes_dof_handler);
+ typename DoFHandler<dim>::active_cell_iterator stokes_cell =
+ cell->as_dof_handler_iterator(stokes_dof_handler);
scratch.stokes_fe_values.reinit(stokes_cell);
scratch.temperature_fe_values.get_function_values(
PerTaskData & task_data)
{
// Construct iterator for dof_handler_local for FEValues reinit function.
- typename DoFHandler<dim>::active_cell_iterator loc_cell(&triangulation,
- cell->level(),
- cell->index(),
- &dof_handler_local);
+ const typename DoFHandler<dim>::active_cell_iterator loc_cell =
+ cell->as_dof_handler_iterator(dof_handler_local);
const unsigned int n_q_points =
scratch.fe_values_local.get_quadrature().size();
PostProcessScratchData & scratch,
unsigned int &)
{
- typename DoFHandler<dim>::active_cell_iterator loc_cell(&triangulation,
- cell->level(),
- cell->index(),
- &dof_handler_local);
+ const typename DoFHandler<dim>::active_cell_iterator loc_cell =
+ cell->as_dof_handler_iterator(dof_handler_local);
scratch.fe_values_local.reinit(loc_cell);
scratch.fe_values.reinit(cell);