From 6f35d9066ae0f033f49f27e9000bb1fbf1787c08 Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 7 Jan 2013 01:11:18 +0000 Subject: [PATCH] Avoid use of deprecated numbers. git-svn-id: https://svn.dealii.org/trunk@27950 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/distributed/tria.cc | 8 ++++---- deal.II/source/dofs/dof_handler_policy.cc | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/deal.II/source/distributed/tria.cc b/deal.II/source/distributed/tria.cc index 33405c73c6..1061c5a2d3 100644 --- a/deal.II/source/distributed/tria.cc +++ b/deal.II/source/distributed/tria.cc @@ -991,7 +991,7 @@ namespace const types::subdomain_id_t my_subdomain, const std::vector > &marked_vertices) { - if (dealii_cell->level_subdomain_id()==types::artificial_subdomain_id) + if (dealii_cell->level_subdomain_id()==numbers::artificial_subdomain_id) { //important: only assign the level_subdomain_id if it is a ghost cell // even though we could fill in all. @@ -2710,7 +2710,7 @@ namespace parallel else { //not our cell - cell->set_level_subdomain_id(types::artificial_subdomain_id); + cell->set_level_subdomain_id(numbers::artificial_subdomain_id); } } } @@ -2762,9 +2762,9 @@ namespace parallel { if (cell->child(c)->level_subdomain_id()==this->locally_owned_subdomain()) { - types::subdomain_id_t mark = types::artificial_subdomain_id; + types::subdomain_id_t mark = numbers::artificial_subdomain_id; mark = cell->child(0)->level_subdomain_id(); - Assert(mark != types::artificial_subdomain_id, ExcInternalError()); //we should know the child(0) + Assert(mark != numbers::artificial_subdomain_id, ExcInternalError()); //we should know the child(0) cell->set_level_subdomain_id(mark); break; } diff --git a/deal.II/source/dofs/dof_handler_policy.cc b/deal.II/source/dofs/dof_handler_policy.cc index 475b14699d..0f272aaa1f 100644 --- a/deal.II/source/dofs/dof_handler_policy.cc +++ b/deal.II/source/dofs/dof_handler_policy.cc @@ -497,7 +497,7 @@ namespace internal // // for cell dof indices // for (typename DoFHandler::level_cell_iterator // cell = dof_handler.begin(); cell != dof_handler.end(); ++cell) -// if (cell->subdomain_id() != types::artificial_subdomain_id) +// if (cell->subdomain_id() != numbers::artificial_subdomain_id) // cell->update_cell_dof_indices_cache (); // finally restore the user flags @@ -1196,7 +1196,7 @@ namespace internal { //TODO: we don't know about our children if proc 0 owns all coarse cells! dealii::types::subdomain_id_t dest = dealii_cell->child(c)->level_subdomain_id(); - Assert(dest!=dealii::types::artificial_subdomain_id && dest!=dealii::types::invalid_subdomain_id, ExcInternalError()); + Assert(dest!=dealii::numbers::artificial_subdomain_id && dest!=dealii::types::invalid_subdomain_id, ExcInternalError()); if (dest != tria.locally_owned_subdomain()) send_to.insert(dest); } @@ -1322,7 +1322,7 @@ namespace internal { if (internal::p4est::quadrant_is_equal(p4est_cell, quadrant)) { - Assert(dealii_cell->level_subdomain_id()!=dealii::types::artificial_subdomain_id, ExcInternalError()); + Assert(dealii_cell->level_subdomain_id()!=dealii::numbers::artificial_subdomain_id, ExcInternalError()); Assert(dealii_cell->level()==(int)level, ExcInternalError()); // update dof indices of cell @@ -1751,7 +1751,7 @@ namespace internal for (cell = dof_handler.begin(level); cell != endc; ++cell) { - if (cell->level_subdomain_id()==dealii::types::artificial_subdomain_id) + if (cell->level_subdomain_id()==dealii::numbers::artificial_subdomain_id) { //artificial } @@ -2285,7 +2285,7 @@ namespace internal typename DoFHandler::level_cell_iterator cell, endc = dof_handler.end(level); for (cell = dof_handler.begin(level); cell != endc; ++cell) - if (cell->level_subdomain_id() != dealii::types::artificial_subdomain_id) + if (cell->level_subdomain_id() != dealii::numbers::artificial_subdomain_id) cell->set_user_flag(); } @@ -2304,7 +2304,7 @@ namespace internal for (typename DoFHandler::level_cell_iterator cell = dof_handler.begin(level); cell != dof_handler.end(level); ++cell) - if (cell->level_subdomain_id() != dealii::types::artificial_subdomain_id && cell->level_subdomain_id() != tr->locally_owned_subdomain()) + if (cell->level_subdomain_id() != dealii::numbers::artificial_subdomain_id && cell->level_subdomain_id() != tr->locally_owned_subdomain()) for (unsigned int v=0; v::vertices_per_cell; ++v) if (locally_active_vertices[cell->vertex_index(v)]) vertices_with_ghost_neighbors[cell->vertex_index(v)] @@ -2339,7 +2339,7 @@ namespace internal cell, endc = dof_handler.end(level); for (cell = dof_handler.begin(level); cell != endc; ++cell) - if (cell->level_subdomain_id() != dealii::types::artificial_subdomain_id) + if (cell->level_subdomain_id() != dealii::numbers::artificial_subdomain_id) { local_dof_indices.resize (cell->get_fe().dofs_per_cell); cell->get_mg_dof_indices (local_dof_indices); -- 2.39.5