From fdc8cb56fa9d0480dad29ac65f919b8a2483202b Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Thu, 18 Mar 2021 14:19:40 -0600 Subject: [PATCH] Treat cells to be h-coarsened as their parent in `hp::Refinement::limit_p_level_difference()`. --- include/deal.II/hp/refinement.h | 7 + source/hp/refinement.cc | 155 +++++++++++------ ...t_01.cc => limit_p_level_difference_01.cc} | 0 ...put => limit_p_level_difference_01.output} | 0 ...t_02.cc => limit_p_level_difference_02.cc} | 0 ...put => limit_p_level_difference_02.output} | 0 ...t_03.cc => limit_p_level_difference_03.cc} | 0 ...put => limit_p_level_difference_03.output} | 0 tests/hp/limit_p_level_difference_04.cc | 116 +++++++++++++ tests/hp/limit_p_level_difference_04.output | 37 ++++ ...t_01.cc => limit_p_level_difference_01.cc} | 0 ...erence_01.with_p4est=true.mpirun=1.output} | 0 ...erence_01.with_p4est=true.mpirun=4.output} | 0 ...t_02.cc => limit_p_level_difference_02.cc} | 0 ...erence_02.with_p4est=true.mpirun=1.output} | 0 ...erence_02.with_p4est=true.mpirun=4.output} | 0 ...t_03.cc => limit_p_level_difference_03.cc} | 0 ...erence_03.with_p4est=true.mpirun=1.output} | 0 ...erence_03.with_p4est=true.mpirun=4.output} | 0 tests/mpi/limit_p_level_difference_04.cc | 159 ++++++++++++++++++ ...ference_04.with_p4est=true.mpirun=1.output | 38 +++++ ...ference_04.with_p4est=true.mpirun=4.output | 74 ++++++++ 22 files changed, 534 insertions(+), 52 deletions(-) rename tests/hp/{prepare_coarsening_and_refinement_01.cc => limit_p_level_difference_01.cc} (100%) rename tests/hp/{prepare_coarsening_and_refinement_01.output => limit_p_level_difference_01.output} (100%) rename tests/hp/{prepare_coarsening_and_refinement_02.cc => limit_p_level_difference_02.cc} (100%) rename tests/hp/{prepare_coarsening_and_refinement_02.output => limit_p_level_difference_02.output} (100%) rename tests/hp/{prepare_coarsening_and_refinement_03.cc => limit_p_level_difference_03.cc} (100%) rename tests/hp/{prepare_coarsening_and_refinement_03.output => limit_p_level_difference_03.output} (100%) create mode 100644 tests/hp/limit_p_level_difference_04.cc create mode 100644 tests/hp/limit_p_level_difference_04.output rename tests/mpi/{prepare_coarsening_and_refinement_01.cc => limit_p_level_difference_01.cc} (100%) rename tests/mpi/{prepare_coarsening_and_refinement_01.with_p4est=true.mpirun=1.output => limit_p_level_difference_01.with_p4est=true.mpirun=1.output} (100%) rename tests/mpi/{prepare_coarsening_and_refinement_01.with_p4est=true.mpirun=4.output => limit_p_level_difference_01.with_p4est=true.mpirun=4.output} (100%) rename tests/mpi/{prepare_coarsening_and_refinement_02.cc => limit_p_level_difference_02.cc} (100%) rename tests/mpi/{prepare_coarsening_and_refinement_02.with_p4est=true.mpirun=1.output => limit_p_level_difference_02.with_p4est=true.mpirun=1.output} (100%) rename tests/mpi/{prepare_coarsening_and_refinement_02.with_p4est=true.mpirun=4.output => limit_p_level_difference_02.with_p4est=true.mpirun=4.output} (100%) rename tests/mpi/{prepare_coarsening_and_refinement_03.cc => limit_p_level_difference_03.cc} (100%) rename tests/mpi/{prepare_coarsening_and_refinement_03.with_p4est=true.mpirun=1.output => limit_p_level_difference_03.with_p4est=true.mpirun=1.output} (100%) rename tests/mpi/{prepare_coarsening_and_refinement_03.with_p4est=true.mpirun=4.output => limit_p_level_difference_03.with_p4est=true.mpirun=4.output} (100%) create mode 100644 tests/mpi/limit_p_level_difference_04.cc create mode 100644 tests/mpi/limit_p_level_difference_04.with_p4est=true.mpirun=1.output create mode 100644 tests/mpi/limit_p_level_difference_04.with_p4est=true.mpirun=4.output diff --git a/include/deal.II/hp/refinement.h b/include/deal.II/hp/refinement.h index b674183cd0..72c35f3f68 100644 --- a/include/deal.II/hp/refinement.h +++ b/include/deal.II/hp/refinement.h @@ -677,6 +677,13 @@ namespace hp * to call this function, nor will it be automatically invoked in any part * of the library (contrary to its Triangulation counterpart). * + * On cells that will be h-coarsened, we enforce the difference criterion as + * if it is already a parent cell. That means, we set the level of all + * siblings to the highest one among them. In that case, all sibling cells + * need to have the h-coarsenening flags set terminally via + * Triangulation::prepare_coarsening_and_refinement() beforehand. Otherwise + * an assertion will be triggered. + * * Returns whether any future FE indices have been changed by this function. */ template diff --git a/source/hp/refinement.cc b/source/hp/refinement.cc index edc5cb1794..def4bb4a8c 100644 --- a/source/hp/refinement.cc +++ b/source/hp/refinement.cc @@ -843,6 +843,99 @@ namespace hp // - always raise levels to match criterion, never lower them // - exchange level indices on ghost cells + // Function that updates the level of neighbor to fulfill difference + // criterion, and returns whether it was changed. + const auto update_neighbor_level = + [&future_levels, max_difference](const auto & neighbor, + const level_type cell_level) -> bool { + Assert(neighbor->is_active(), ExcInternalError()); + // We only care about locally owned neighbors. If neighbor is a ghost + // cell, its future FE index will be updated on the owning process and + // communicated at the next loop iteration. + if (neighbor->is_locally_owned()) + { + const level_type neighbor_level = static_cast( + future_levels[neighbor->global_active_cell_index()]); + + // ignore neighbors that are not part of the hierarchy + if (neighbor_level == invalid_level) + return false; + + if ((cell_level - max_difference) > neighbor_level) + { + future_levels[neighbor->global_active_cell_index()] = + cell_level - max_difference; + + return true; + } + } + + return false; + }; + + // For cells to be h-coarsened, we need to determine a future FE for the + // parent cell, which will be the dominated FE among all children + // However, if we want to enforce the max_difference criterion on all + // cells on the updated mesh, we will need to simulate the updated mesh on + // the current mesh. + // + // As we are working on p-levels, we will set all siblings that will be + // coarsened to the highest p-level among them. The parent cell will be + // assigned exactly this level in form of the corresponding FE index in + // the adaptation process in + // Triangulation::execute_coarsening_and_refinement(). + // + // This function takes a cell and sets all its siblings to the highest + // p-level among them. Returns whether any future levels have been + // changed. + const auto prepare_level_for_parent = [&](const auto &neighbor) -> bool { + Assert(neighbor->is_active(), ExcInternalError()); + if (neighbor->coarsen_flag_set() && neighbor->is_locally_owned()) + { + const auto parent = neighbor->parent(); + + std::vector future_levels_children; + future_levels_children.reserve(parent->n_children()); + for (const auto &child : parent->child_iterators()) + { + Assert(child->is_active() && child->coarsen_flag_set(), + (typename dealii::Triangulation:: + ExcInconsistentCoarseningFlags())); + + const level_type child_level = static_cast( + future_levels[child->global_active_cell_index()]); + Assert(child_level != invalid_level, + ExcMessage( + "The FiniteElement on one of the siblings of " + "a cell you are trying to coarsen is not part " + "of the registered p-adaptation hierarchy.")); + future_levels_children.push_back(child_level); + } + Assert(!future_levels_children.empty(), ExcInternalError()); + + const unsigned int max_level_children = + *std::max_element(future_levels_children.begin(), + future_levels_children.end()); + + bool children_changed = false; + for (const auto &child : parent->child_iterators()) + // We only care about locally owned children. If child is a ghost + // cell, its future FE index will be updated on the owning process + // and communicated at the next loop iteration. + if (child->is_locally_owned() && + future_levels[child->global_active_cell_index()] != + max_level_children) + { + future_levels[child->global_active_cell_index()] = + max_level_children; + children_changed = true; + } + return children_changed; + } + + return false; + }; + bool levels_changed = false; bool levels_changed_in_cycle; do @@ -878,64 +971,22 @@ namespace hp const auto neighbor = cell->neighbor_child_on_subface(f, sf); - // We only care about locally owned neighbors. If - // neighbor is a ghost cell, its future FE index - // will be updated on the owning process and - // communicated at the next loop iteration. - if (neighbor->is_locally_owned()) - { - const level_type neighbor_level = - static_cast( - future_levels - [neighbor->global_active_cell_index()]); - - // ignore neighbors that are not part of the - // hierarchy - if (neighbor_level == invalid_level) - continue; - - if ((cell_level - max_difference) > - neighbor_level) - { - future_levels - [neighbor->global_active_cell_index()] = - cell_level - max_difference; - - levels_changed_in_cycle = true; - } - } + levels_changed_in_cycle |= + update_neighbor_level(neighbor, cell_level); + + levels_changed_in_cycle |= + prepare_level_for_parent(neighbor); } } else { const auto neighbor = cell->neighbor(f); - // We only care about locally owned neighbors. If - // neighbor is a ghost cell, its future FE index will - // be updated on the owning process and communicated - // at the next loop iteration. - if (neighbor->is_locally_owned()) - { - const level_type neighbor_level = - static_cast( - future_levels - [neighbor->global_active_cell_index()]); - - // ignore neighbors that are not part of the - // hierarchy - if (neighbor_level == invalid_level) - continue; - - if ((cell_level - max_difference) > - neighbor_level) - { - future_levels - [neighbor->global_active_cell_index()] = - cell_level - max_difference; - - levels_changed_in_cycle = true; - } - } + levels_changed_in_cycle |= + update_neighbor_level(neighbor, cell_level); + + levels_changed_in_cycle |= + prepare_level_for_parent(neighbor); } } } diff --git a/tests/hp/prepare_coarsening_and_refinement_01.cc b/tests/hp/limit_p_level_difference_01.cc similarity index 100% rename from tests/hp/prepare_coarsening_and_refinement_01.cc rename to tests/hp/limit_p_level_difference_01.cc diff --git a/tests/hp/prepare_coarsening_and_refinement_01.output b/tests/hp/limit_p_level_difference_01.output similarity index 100% rename from tests/hp/prepare_coarsening_and_refinement_01.output rename to tests/hp/limit_p_level_difference_01.output diff --git a/tests/hp/prepare_coarsening_and_refinement_02.cc b/tests/hp/limit_p_level_difference_02.cc similarity index 100% rename from tests/hp/prepare_coarsening_and_refinement_02.cc rename to tests/hp/limit_p_level_difference_02.cc diff --git a/tests/hp/prepare_coarsening_and_refinement_02.output b/tests/hp/limit_p_level_difference_02.output similarity index 100% rename from tests/hp/prepare_coarsening_and_refinement_02.output rename to tests/hp/limit_p_level_difference_02.output diff --git a/tests/hp/prepare_coarsening_and_refinement_03.cc b/tests/hp/limit_p_level_difference_03.cc similarity index 100% rename from tests/hp/prepare_coarsening_and_refinement_03.cc rename to tests/hp/limit_p_level_difference_03.cc diff --git a/tests/hp/prepare_coarsening_and_refinement_03.output b/tests/hp/limit_p_level_difference_03.output similarity index 100% rename from tests/hp/prepare_coarsening_and_refinement_03.output rename to tests/hp/limit_p_level_difference_03.output diff --git a/tests/hp/limit_p_level_difference_04.cc b/tests/hp/limit_p_level_difference_04.cc new file mode 100644 index 0000000000..82058de03f --- /dev/null +++ b/tests/hp/limit_p_level_difference_04.cc @@ -0,0 +1,116 @@ +// --------------------------------------------------------------------- +// +// Copyright (C) 2021 by the deal.II authors +// +// This file is part of the deal.II library. +// +// The deal.II library is free software; you can use it, redistribute +// it, and/or modify it under the terms of the GNU Lesser General +// Public License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// The full text of the license can be found in the file LICENSE.md at +// the top level directory of deal.II. +// +// --------------------------------------------------------------------- + + +// verify restrictions on level differences imposed by +// DoFHandler::prepare_coarsening_and_refinement() +// on h-coarsened grids + + +#include + +#include + +#include + +#include +#include + +#include "../tests.h" + +#include "../test_grids.h" + + +template +void +test(const unsigned int max_difference) +{ + Assert(max_difference > 0, ExcInternalError()); + + // setup FE collection + const unsigned int fes_size = 2 * max_difference + 2; + + hp::FECollection fes; + while (fes.size() < fes_size) + fes.push_back(FE_Q(1)); + + const unsigned int contains_fe_index = 0; + const auto sequence = fes.get_hierarchy_sequence(contains_fe_index); + + // set up line grid + // - refine central cell and flag them for coarsening + // - assign highest p-level to leftmost cell + // + // +-------+---+---+-------+ + // | | c | c | | + // | +---+---+ | + // | | c | c | | + // +-------+---+---+-------+ + // + // after prepare_coarsening_and_refinement(), the p-levels should propagate + // through the central cells as if they were already coarsened + + Triangulation tria; + TestGrids::hyper_line(tria, 3); + + // refine the central cell + for (const auto &cell : tria.active_cell_iterators()) + if (cell->center()[0] > 1. && cell->center()[0] < 2.) + cell->set_refine_flag(); + tria.execute_coarsening_and_refinement(); + + // now flag these cells for coarsening + for (const auto &cell : tria.active_cell_iterators()) + if (cell->center()[0] > 1. && cell->center()[0] < 2.) + cell->set_coarsen_flag(); + + DoFHandler dofh(tria); + for (const auto &cell : dofh.active_cell_iterators()) + if (cell->center()[0] < 1.) + cell->set_active_fe_index(sequence.back()); + dofh.distribute_dofs(fes); + + const bool fe_indices_changed = + hp::Refinement::limit_p_level_difference(dofh, + max_difference, + contains_fe_index); + (void)fe_indices_changed; + Assert(fe_indices_changed, ExcInternalError()); + + deallog << "future FE indices before adaptation:" << std::endl; + for (const auto &cell : dofh.active_cell_iterators()) + deallog << " " << cell->id().to_string() << " " << cell->future_fe_index() + << std::endl; + + tria.execute_coarsening_and_refinement(); + + deallog << "active FE indices after adaptation:" << std::endl; + for (const auto &cell : dofh.active_cell_iterators()) + deallog << " " << cell->id().to_string() << " " << cell->active_fe_index() + << std::endl; + + deallog << "OK" << std::endl; +} + + +int +main() +{ + initlog(); + + test<2>(1); + test<2>(2); + test<2>(3); +} diff --git a/tests/hp/limit_p_level_difference_04.output b/tests/hp/limit_p_level_difference_04.output new file mode 100644 index 0000000000..6ed8f09974 --- /dev/null +++ b/tests/hp/limit_p_level_difference_04.output @@ -0,0 +1,37 @@ + +DEAL::future FE indices before adaptation: +DEAL:: 0_0: 3 +DEAL:: 2_0: 1 +DEAL:: 1_1:0 2 +DEAL:: 1_1:1 2 +DEAL:: 1_1:2 2 +DEAL:: 1_1:3 2 +DEAL::active FE indices after adaptation: +DEAL:: 0_0: 3 +DEAL:: 1_0: 2 +DEAL:: 2_0: 1 +DEAL::OK +DEAL::future FE indices before adaptation: +DEAL:: 0_0: 5 +DEAL:: 2_0: 1 +DEAL:: 1_1:0 3 +DEAL:: 1_1:1 3 +DEAL:: 1_1:2 3 +DEAL:: 1_1:3 3 +DEAL::active FE indices after adaptation: +DEAL:: 0_0: 5 +DEAL:: 1_0: 3 +DEAL:: 2_0: 1 +DEAL::OK +DEAL::future FE indices before adaptation: +DEAL:: 0_0: 7 +DEAL:: 2_0: 1 +DEAL:: 1_1:0 4 +DEAL:: 1_1:1 4 +DEAL:: 1_1:2 4 +DEAL:: 1_1:3 4 +DEAL::active FE indices after adaptation: +DEAL:: 0_0: 7 +DEAL:: 1_0: 4 +DEAL:: 2_0: 1 +DEAL::OK diff --git a/tests/mpi/prepare_coarsening_and_refinement_01.cc b/tests/mpi/limit_p_level_difference_01.cc similarity index 100% rename from tests/mpi/prepare_coarsening_and_refinement_01.cc rename to tests/mpi/limit_p_level_difference_01.cc diff --git a/tests/mpi/prepare_coarsening_and_refinement_01.with_p4est=true.mpirun=1.output b/tests/mpi/limit_p_level_difference_01.with_p4est=true.mpirun=1.output similarity index 100% rename from tests/mpi/prepare_coarsening_and_refinement_01.with_p4est=true.mpirun=1.output rename to tests/mpi/limit_p_level_difference_01.with_p4est=true.mpirun=1.output diff --git a/tests/mpi/prepare_coarsening_and_refinement_01.with_p4est=true.mpirun=4.output b/tests/mpi/limit_p_level_difference_01.with_p4est=true.mpirun=4.output similarity index 100% rename from tests/mpi/prepare_coarsening_and_refinement_01.with_p4est=true.mpirun=4.output rename to tests/mpi/limit_p_level_difference_01.with_p4est=true.mpirun=4.output diff --git a/tests/mpi/prepare_coarsening_and_refinement_02.cc b/tests/mpi/limit_p_level_difference_02.cc similarity index 100% rename from tests/mpi/prepare_coarsening_and_refinement_02.cc rename to tests/mpi/limit_p_level_difference_02.cc diff --git a/tests/mpi/prepare_coarsening_and_refinement_02.with_p4est=true.mpirun=1.output b/tests/mpi/limit_p_level_difference_02.with_p4est=true.mpirun=1.output similarity index 100% rename from tests/mpi/prepare_coarsening_and_refinement_02.with_p4est=true.mpirun=1.output rename to tests/mpi/limit_p_level_difference_02.with_p4est=true.mpirun=1.output diff --git a/tests/mpi/prepare_coarsening_and_refinement_02.with_p4est=true.mpirun=4.output b/tests/mpi/limit_p_level_difference_02.with_p4est=true.mpirun=4.output similarity index 100% rename from tests/mpi/prepare_coarsening_and_refinement_02.with_p4est=true.mpirun=4.output rename to tests/mpi/limit_p_level_difference_02.with_p4est=true.mpirun=4.output diff --git a/tests/mpi/prepare_coarsening_and_refinement_03.cc b/tests/mpi/limit_p_level_difference_03.cc similarity index 100% rename from tests/mpi/prepare_coarsening_and_refinement_03.cc rename to tests/mpi/limit_p_level_difference_03.cc diff --git a/tests/mpi/prepare_coarsening_and_refinement_03.with_p4est=true.mpirun=1.output b/tests/mpi/limit_p_level_difference_03.with_p4est=true.mpirun=1.output similarity index 100% rename from tests/mpi/prepare_coarsening_and_refinement_03.with_p4est=true.mpirun=1.output rename to tests/mpi/limit_p_level_difference_03.with_p4est=true.mpirun=1.output diff --git a/tests/mpi/prepare_coarsening_and_refinement_03.with_p4est=true.mpirun=4.output b/tests/mpi/limit_p_level_difference_03.with_p4est=true.mpirun=4.output similarity index 100% rename from tests/mpi/prepare_coarsening_and_refinement_03.with_p4est=true.mpirun=4.output rename to tests/mpi/limit_p_level_difference_03.with_p4est=true.mpirun=4.output diff --git a/tests/mpi/limit_p_level_difference_04.cc b/tests/mpi/limit_p_level_difference_04.cc new file mode 100644 index 0000000000..28b375334d --- /dev/null +++ b/tests/mpi/limit_p_level_difference_04.cc @@ -0,0 +1,159 @@ +// --------------------------------------------------------------------- +// +// Copyright (C) 2021 by the deal.II authors +// +// This file is part of the deal.II library. +// +// The deal.II library is free software; you can use it, redistribute +// it, and/or modify it under the terms of the GNU Lesser General +// Public License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// The full text of the license can be found in the file LICENSE.md at +// the top level directory of deal.II. +// +// --------------------------------------------------------------------- + + +// verify restrictions on level differences imposed by +// DoFHandler::prepare_coarsening_and_refinement() +// on h-coarsened grids + + +#include +#include +#include + +#include + +#include + +#include +#include + +#include "../tests.h" + +#include "../test_grids.h" + + +template +void +test(parallel::TriangulationBase &tria, const unsigned int max_difference) +{ + Assert(tria.n_levels() == 0, ExcInternalError()); + Assert(max_difference > 0, ExcInternalError()); + + // setup FE collection + const unsigned int fes_size = 2 * max_difference + 2; + + hp::FECollection fes; + while (fes.size() < fes_size) + fes.push_back(FE_Q(1)); + + const unsigned int contains_fe_index = 0; + const auto sequence = fes.get_hierarchy_sequence(contains_fe_index); + + // set up line grid + // - refine central cell and flag them for coarsening + // - assign highest p-level to leftmost cell + // + // +-------+---+---+-------+ + // | | c | c | | + // | +---+---+ | + // | | c | c | | + // +-------+---+---+-------+ + // + // after prepare_coarsening_and_refinement(), the p-levels should propagate + // through the central cells as if they were already coarsened + + TestGrids::hyper_line(tria, 3); + + // refine the central cell + for (const auto &cell : tria.active_cell_iterators()) + if (cell->center()[0] > 1. && cell->center()[0] < 2.) + cell->set_refine_flag(); + tria.execute_coarsening_and_refinement(); + + // now flag these cells for coarsening + for (const auto &cell : tria.active_cell_iterators()) + if (cell->center()[0] > 1. && cell->center()[0] < 2.) + cell->set_coarsen_flag(); + + DoFHandler dofh(tria); + for (const auto &cell : dofh.active_cell_iterators()) + if (cell->is_locally_owned() && cell->center()[0] < 1.) + cell->set_active_fe_index(sequence.back()); + dofh.distribute_dofs(fes); + + const bool fe_indices_changed = + hp::Refinement::limit_p_level_difference(dofh, + max_difference, + contains_fe_index); + (void)fe_indices_changed; + Assert(fe_indices_changed, ExcInternalError()); + + deallog << "future FE indices before adaptation:" << std::endl; + for (const auto &cell : dofh.active_cell_iterators()) + if (cell->is_locally_owned()) + deallog << " " << cell->id().to_string() << " " << cell->future_fe_index() + << std::endl; + + tria.execute_coarsening_and_refinement(); + + deallog << "active FE indices after adaptation:" << std::endl; + for (const auto &cell : dofh.active_cell_iterators()) + if (cell->is_locally_owned()) + deallog << " " << cell->id().to_string() << " " << cell->active_fe_index() + << std::endl; + + deallog << "OK" << std::endl; +} + + +int +main(int argc, char *argv[]) +{ + Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1); + MPILogInitAll log; + + constexpr const unsigned int dim = 2; + + // Known bug: + // Collecting FE indices for parent cells on children fails for p::s::T + // at the moment whenever siblings belong to the different processors. + // + // deallog << "parallel::shared::Triangulation" << std::endl; + // { + // parallel::shared::Triangulation tria(MPI_COMM_WORLD); + // + // test(tria, 1); + // tria.clear(); + // test(tria, 2); + // tria.clear(); + // test(tria, 3); + // } + // + // deallog << "parallel::shared::Triangulation with artificial cells" + // << std::endl; + // { + // parallel::shared::Triangulation tria(MPI_COMM_WORLD, + // Triangulation::none, + // /*allow_artificial_cells=*/true); + // + // test(tria, 1); + // tria.clear(); + // test(tria, 2); + // tria.clear(); + // test(tria, 3); + // } + + deallog << "parallel::distributed::Triangulation" << std::endl; + { + parallel::distributed::Triangulation tria(MPI_COMM_WORLD); + + test(tria, 1); + tria.clear(); + test(tria, 2); + tria.clear(); + test(tria, 3); + } +} diff --git a/tests/mpi/limit_p_level_difference_04.with_p4est=true.mpirun=1.output b/tests/mpi/limit_p_level_difference_04.with_p4est=true.mpirun=1.output new file mode 100644 index 0000000000..ce0582b4c0 --- /dev/null +++ b/tests/mpi/limit_p_level_difference_04.with_p4est=true.mpirun=1.output @@ -0,0 +1,38 @@ + +DEAL:0::parallel::distributed::Triangulation +DEAL:0::future FE indices before adaptation: +DEAL:0:: 0_0: 3 +DEAL:0:: 2_0: 1 +DEAL:0:: 1_1:0 2 +DEAL:0:: 1_1:1 2 +DEAL:0:: 1_1:2 2 +DEAL:0:: 1_1:3 2 +DEAL:0::active FE indices after adaptation: +DEAL:0:: 0_0: 3 +DEAL:0:: 1_0: 2 +DEAL:0:: 2_0: 1 +DEAL:0::OK +DEAL:0::future FE indices before adaptation: +DEAL:0:: 0_0: 5 +DEAL:0:: 2_0: 1 +DEAL:0:: 1_1:0 3 +DEAL:0:: 1_1:1 3 +DEAL:0:: 1_1:2 3 +DEAL:0:: 1_1:3 3 +DEAL:0::active FE indices after adaptation: +DEAL:0:: 0_0: 5 +DEAL:0:: 1_0: 3 +DEAL:0:: 2_0: 1 +DEAL:0::OK +DEAL:0::future FE indices before adaptation: +DEAL:0:: 0_0: 7 +DEAL:0:: 2_0: 1 +DEAL:0:: 1_1:0 4 +DEAL:0:: 1_1:1 4 +DEAL:0:: 1_1:2 4 +DEAL:0:: 1_1:3 4 +DEAL:0::active FE indices after adaptation: +DEAL:0:: 0_0: 7 +DEAL:0:: 1_0: 4 +DEAL:0:: 2_0: 1 +DEAL:0::OK diff --git a/tests/mpi/limit_p_level_difference_04.with_p4est=true.mpirun=4.output b/tests/mpi/limit_p_level_difference_04.with_p4est=true.mpirun=4.output new file mode 100644 index 0000000000..12eec573d9 --- /dev/null +++ b/tests/mpi/limit_p_level_difference_04.with_p4est=true.mpirun=4.output @@ -0,0 +1,74 @@ + +DEAL:0::parallel::distributed::Triangulation +DEAL:0::future FE indices before adaptation: +DEAL:0:: 0_0: 3 +DEAL:0::active FE indices after adaptation: +DEAL:0::OK +DEAL:0::future FE indices before adaptation: +DEAL:0:: 0_0: 5 +DEAL:0::active FE indices after adaptation: +DEAL:0::OK +DEAL:0::future FE indices before adaptation: +DEAL:0:: 0_0: 7 +DEAL:0::active FE indices after adaptation: +DEAL:0::OK + +DEAL:1::parallel::distributed::Triangulation +DEAL:1::future FE indices before adaptation: +DEAL:1:: 1_1:0 2 +DEAL:1:: 1_1:1 2 +DEAL:1:: 1_1:2 2 +DEAL:1:: 1_1:3 2 +DEAL:1::active FE indices after adaptation: +DEAL:1:: 0_0: 3 +DEAL:1::OK +DEAL:1::future FE indices before adaptation: +DEAL:1:: 1_1:0 3 +DEAL:1:: 1_1:1 3 +DEAL:1:: 1_1:2 3 +DEAL:1:: 1_1:3 3 +DEAL:1::active FE indices after adaptation: +DEAL:1:: 0_0: 5 +DEAL:1::OK +DEAL:1::future FE indices before adaptation: +DEAL:1:: 1_1:0 4 +DEAL:1:: 1_1:1 4 +DEAL:1:: 1_1:2 4 +DEAL:1:: 1_1:3 4 +DEAL:1::active FE indices after adaptation: +DEAL:1:: 0_0: 7 +DEAL:1::OK + + +DEAL:2::parallel::distributed::Triangulation +DEAL:2::future FE indices before adaptation: +DEAL:2::active FE indices after adaptation: +DEAL:2:: 1_0: 2 +DEAL:2::OK +DEAL:2::future FE indices before adaptation: +DEAL:2::active FE indices after adaptation: +DEAL:2:: 1_0: 3 +DEAL:2::OK +DEAL:2::future FE indices before adaptation: +DEAL:2::active FE indices after adaptation: +DEAL:2:: 1_0: 4 +DEAL:2::OK + + +DEAL:3::parallel::distributed::Triangulation +DEAL:3::future FE indices before adaptation: +DEAL:3:: 2_0: 1 +DEAL:3::active FE indices after adaptation: +DEAL:3:: 2_0: 1 +DEAL:3::OK +DEAL:3::future FE indices before adaptation: +DEAL:3:: 2_0: 1 +DEAL:3::active FE indices after adaptation: +DEAL:3:: 2_0: 1 +DEAL:3::OK +DEAL:3::future FE indices before adaptation: +DEAL:3:: 2_0: 1 +DEAL:3::active FE indices after adaptation: +DEAL:3:: 2_0: 1 +DEAL:3::OK + -- 2.39.5