From 30599e9add4767efbb84832f9b6b3c35bf2d82ef Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Wed, 3 Mar 2021 15:01:11 +0100 Subject: [PATCH] Avoid use of deprecated method --- include/deal.II/numerics/data_out_dof_data.templates.h | 2 +- source/grid/tria_description.cc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/deal.II/numerics/data_out_dof_data.templates.h b/include/deal.II/numerics/data_out_dof_data.templates.h index e97e2a2dd2..4eb6728d67 100644 --- a/include/deal.II/numerics/data_out_dof_data.templates.h +++ b/include/deal.II/numerics/data_out_dof_data.templates.h @@ -474,7 +474,7 @@ namespace internal &fe) { return finite_elements[dataset].get() == fe.get(); }); if (is_duplicate == false) { - if (cell->active()) + if (cell->is_active()) { typename DoFHandler::active_cell_iterator dh_cell(&cell->get_triangulation(), diff --git a/source/grid/tria_description.cc b/source/grid/tria_description.cc index 417f011694..f49e7e4b4e 100644 --- a/source/grid/tria_description.cc +++ b/source/grid/tria_description.cc @@ -211,7 +211,7 @@ namespace TriangulationDescription for (auto cell : tria.cell_iterators_on_level(level)) if ((construct_multigrid && (cell->level_subdomain_id() == my_rank)) || - (cell->active() && cell->subdomain_id() == my_rank)) + (cell->is_active() && cell->subdomain_id() == my_rank)) add_vertices_of_cell_to_vertices_owned_by_locally_owned_cells( cell, vertices_owned_by_locally_owned_cells_on_level); @@ -298,7 +298,7 @@ namespace TriangulationDescription // on active level const auto is_locally_relevant_on_active_level = [&](TriaIterator> &cell) { - if (cell->active()) + if (cell->is_active()) for (const auto v : cell->vertex_indices()) if (vertices_owned_by_locally_owned_active_cells [cell->vertex_index(v)]) @@ -316,7 +316,7 @@ namespace TriangulationDescription for (auto cell : tria.cell_iterators_on_level(level)) if ((construct_multigrid && (cell->level_subdomain_id() == my_rank)) || - (cell->active() && cell->subdomain_id() == my_rank)) + (cell->is_active() && cell->subdomain_id() == my_rank)) add_vertices_of_cell_to_vertices_owned_by_locally_owned_cells( cell, vertices_owned_by_locally_owned_cells_on_level); -- 2.39.5