const unsigned int face_index,
Vector<double> &local_levelset_values)
{
- typename DoFHandler<dim>::active_cell_iterator cell_with_dofs(
- &dof_handler->get_triangulation(),
- cell->level(),
- cell->index(),
- dof_handler);
+ const auto cell_with_dofs = cell->as_dof_handler_iterator(*dof_handler);
const unsigned int n_dofs_per_face =
dof_handler->get_fe().n_dofs_per_face();
DiscreteLevelSetDescription<dim, VectorType>::active_fe_index(
const typename Triangulation<dim>::active_cell_iterator &cell) const
{
- typename DoFHandler<dim>::active_cell_iterator cell_with_dofs(
- &dof_handler->get_triangulation(),
- cell->level(),
- cell->index(),
- dof_handler);
+ const auto cell_with_dofs = cell->as_dof_handler_iterator(*dof_handler);
return cell_with_dofs->active_fe_index();
}
"The incoming cell must belong to the triangulation associated with "
"the DoFHandler passed to the constructor."));
- const typename DoFHandler<dim>::active_cell_iterator dof_handler_cell(
- &dof_handler->get_triangulation(),
- cell->level(),
- cell->index(),
- dof_handler);
+ const auto dof_handler_cell =
+ cell->as_dof_handler_iterator(*dof_handler);
// Save the element and the local dof values, since this is what we need
// to evaluate the function.
for (cell = tr.begin_active(); cell != tr.end(); ++cell)
if (cell->is_locally_owned())
{
- typename DoFHandler<dim>::active_cell_iterator dof_cell(*cell,
- &dof_handler);
+ const auto dof_cell = cell->as_dof_handler_iterator(dof_handler);
+
fe_values.reinit(dof_cell);
const std::vector<Point<dim>> &q_points =
fe_values.get_quadrature_points();
for (cell = tr.begin_active(); cell != tr.end(); ++cell)
if (cell->is_locally_owned())
{
- typename DoFHandler<dim>::active_cell_iterator dof_cell(*cell,
- &dof_handler);
+ const auto dof_cell = cell->as_dof_handler_iterator(dof_handler);
fe_values.reinit(dof_cell);
const std::vector<Point<dim>> &q_points =
fe_values.get_quadrature_points();
for (cell = tr.begin_active(); cell != tr.end(); ++cell)
if (cell->is_locally_owned())
{
- typename DoFHandler<dim>::active_cell_iterator dof_cell(*cell,
- &dof_handler);
+ const auto dof_cell = cell->as_dof_handler_iterator(dof_handler);
fe_values.reinit(dof_cell);
const std::vector<Point<dim>> &q_points =
fe_values.get_quadrature_points();
for (cell = tr.begin_active(); cell != tr.end(); ++cell)
if (cell->is_locally_owned())
{
- typename DoFHandler<dim>::active_cell_iterator dof_cell(*cell,
- &dof_handler);
+ const auto dof_cell = cell->as_dof_handler_iterator(dof_handler);
+
fe_values.reinit(dof_cell);
const std::vector<Point<dim>> &q_points =
fe_values.get_quadrature_points();
for (cell = tr.begin_active(); cell != tr.end(); ++cell)
if (cell->is_locally_owned())
{
- typename DoFHandler<dim>::active_cell_iterator dof_cell(*cell,
- &dof_handler);
+ const auto dof_cell = cell->as_dof_handler_iterator(dof_handler);
fe_values.reinit(dof_cell);
const std::vector<Point<dim>> &q_points =
fe_values.get_quadrature_points();
for (cell = tr.begin_active(); cell != tr.end(); ++cell)
if (cell->is_locally_owned())
{
- typename DoFHandler<dim>::active_cell_iterator dof_cell(*cell,
- &dof_handler);
+ const auto dof_cell = cell->as_dof_handler_iterator(dof_handler);
+
fe_values.reinit(dof_cell);
const std::vector<Point<dim>> &q_points =
fe_values.get_quadrature_points();
for (cell = tr.begin_active(); cell != tr.end(); ++cell)
if (cell->is_locally_owned())
{
- typename DoFHandler<dim>::active_cell_iterator dof_cell(*cell,
- &dof_handler);
+ const auto dof_cell = cell->as_dof_handler_iterator(dof_handler);
fe_values.reinit(dof_cell);
const std::vector<Point<dim>> &q_points =
fe_values.get_quadrature_points();
for (cell = tr.begin_active(); cell != tr.end(); ++cell)
if (cell->is_locally_owned())
{
- typename DoFHandler<dim>::active_cell_iterator dof_cell(*cell,
- &dof_handler);
+ const auto dof_cell = cell->as_dof_handler_iterator(dof_handler);
+
fe_values.reinit(dof_cell);
const std::vector<Point<dim>> &q_points =
fe_values.get_quadrature_points();
for (cell = tr.begin_active(); cell != tr.end(); ++cell)
if (cell->is_locally_owned())
{
- typename DoFHandler<dim>::active_cell_iterator dof_cell(*cell,
- &dof_handler);
+ const auto dof_cell = cell->as_dof_handler_iterator(dof_handler);
fe_values.reinit(dof_cell);
const std::vector<Point<dim>> &q_points =
fe_values.get_quadrature_points();
ScratchData & scratch,
PerTaskData & task_data)
{
- typename DoFHandler<dim>::active_cell_iterator loc_cell(&triangulation,
- cell->level(),
- cell->index(),
- &dof_handler_local);
+ const auto 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 auto loc_cell = cell->as_dof_handler_iterator(dof_handler_local);
scratch.fe_values_local.reinit(loc_cell);
scratch.fe_values.reinit(cell);
ScratchData & scratch,
PerTaskData & task_data)
{
- typename DoFHandler<dim>::active_cell_iterator loc_cell(&triangulation,
- cell->level(),
- cell->index(),
- &dof_handler_local);
+ const auto 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 auto loc_cell = cell->as_dof_handler_iterator(dof_handler_local);
scratch.fe_values_local.reinit(loc_cell);
scratch.fe_values.reinit(cell);