CellAccessorWrapper::active() const
{
if ((dim == 2) && (spacedim == 2))
- return internal::cell_cast<2, 2>(cell_accessor)->active();
+ return internal::cell_cast<2, 2>(cell_accessor)->is_active();
else if ((dim == 2) && (spacedim == 3))
- return internal::cell_cast<2, 3>(cell_accessor)->active();
+ return internal::cell_cast<2, 3>(cell_accessor)->is_active();
else
- return internal::cell_cast<3, 3>(cell_accessor)->active();
+ return internal::cell_cast<3, 3>(cell_accessor)->is_active();
}
--- /dev/null
+Removed: The deprecated member function CellAccessor::active() has been removed.
+<br>
+(Daniel Arndt, 2021/06/03)
* @{
*/
- /**
- * Test that the cell has no children (this is the criterion for whether a
- * cell is called "active").
- *
- * See the
- * @ref GlossActive "glossary"
- * for more information.
- *
- * @deprecated This function is deprecated. Use the is_active()
- * function instead, which satisfies the naming scheme of other
- * functions inquiring about yes/no properties of cells (e.g.,
- * is_ghost(), is_locally_owned(), etc.).
- */
- DEAL_II_DEPRECATED
- bool
- active() const;
-
/**
* Test that the cell has no children (this is the criterion for whether a
* cell is called "active").
-template <int dim, int spacedim>
-inline bool
-CellAccessor<dim, spacedim>::active() const
-{
- return !this->has_children();
-}
-
-
-
template <int dim, int spacedim>
inline bool
CellAccessor<dim, spacedim>::is_active() const
// ... has (symm)
for (const auto &cell : dof_handler.active_cell_iterators())
- if (cell->active() && cell->is_locally_owned())
+ if (cell->is_active() && cell->is_locally_owned())
{
auto c = cell->center();
for (unsigned int i = 0; i < dim; i++)
tria.refine_global();
for (auto &cell : tria.active_cell_iterators())
- if (cell->active() && cell->is_locally_owned() && cell->center()[0] < 0.0)
+ if (cell->is_active() && cell->is_locally_owned() &&
+ cell->center()[0] < 0.0)
cell->set_refine_flag();
tria.execute_coarsening_and_refinement();
tria.refine_global();
for (auto &cell : tria.active_cell_iterators())
- if (cell->active() && cell->is_locally_owned() && cell->center()[0] < 0.0)
+ if (cell->is_active() && cell->is_locally_owned() &&
+ cell->center()[0] < 0.0)
cell->set_refine_flag();
tria.execute_coarsening_and_refinement();
tria.refine_global();
for (auto &cell : tria.active_cell_iterators())
- if (cell->active() && cell->center()[0] < 0.5)
+ if (cell->is_active() && cell->center()[0] < 0.5)
cell->set_refine_flag();
tria.execute_coarsening_and_refinement();
};
tria.refine_global();
for (auto &cell : tria.active_cell_iterators())
- if (cell->active() && cell->center()[0] < 0.5)
+ if (cell->is_active() && cell->center()[0] < 0.5)
cell->set_refine_flag();
tria.execute_coarsening_and_refinement();
};
tria.refine_global();
for (auto &cell : tria.active_cell_iterators())
- if (cell->active() && cell->center()[0] < 0.5)
+ if (cell->is_active() && cell->center()[0] < 0.5)
cell->set_refine_flag();
tria.execute_coarsening_and_refinement();
};
tria.refine_global();
for (auto &cell : tria.active_cell_iterators())
- if (cell->active() && cell->center()[0] < 0.5)
+ if (cell->is_active() && cell->center()[0] < 0.5)
cell->set_refine_flag();
tria.execute_coarsening_and_refinement();
tria.refine_global();
for (auto &cell : tria.active_cell_iterators())
- if (cell->active() && cell->center()[0] < 0.5)
+ if (cell->is_active() && cell->center()[0] < 0.5)
cell->set_refine_flag();
tria.execute_coarsening_and_refinement();
tria.refine_global();
for (auto &cell : tria.active_cell_iterators())
- if (cell->active() && cell->center()[0] < 0.5)
+ if (cell->is_active() && cell->center()[0] < 0.5)
cell->set_refine_flag();
tria.execute_coarsening_and_refinement();
};
for (auto cell = p.first(tria); cell.state() == IteratorState::valid;
cell = p.second(tria, cell))
{
- deallog << " cell lvl=" << cell->level() << " active=" << cell->active()
+ deallog << " cell lvl=" << cell->level()
+ << " active=" << cell->is_active()
<< " id=" << cell->id().to_string() << std::endl;
}
}
for (auto cell = p.first(tria); cell.state() == IteratorState::valid;
cell = p.second(tria, cell))
{
- deallog << " cell lvl=" << cell->level() << " active=" << cell->active()
+ deallog << " cell lvl=" << cell->level()
+ << " active=" << cell->is_active()
<< " owner=" << static_cast<int>(cell->level_subdomain_id())
<< " id=" << cell->id().to_string() << std::endl;
}