From 4dab4bc53feda78771b4b6b3f665f5f891ae8f2f Mon Sep 17 00:00:00 2001 From: Pasquale Africa Date: Mon, 10 Jul 2023 13:52:12 +0000 Subject: [PATCH] Remove unused file --- tests/fullydistributed_grids/tests.h | 78 ---------------------------- 1 file changed, 78 deletions(-) delete mode 100644 tests/fullydistributed_grids/tests.h diff --git a/tests/fullydistributed_grids/tests.h b/tests/fullydistributed_grids/tests.h deleted file mode 100644 index 7cce591b7d..0000000000 --- a/tests/fullydistributed_grids/tests.h +++ /dev/null @@ -1,78 +0,0 @@ -// --------------------------------------------------------------------- -// -// Copyright (C) 2019 - 2022 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. -// -// --------------------------------------------------------------------- - -#ifndef dealii_fully_distributed_tests_h -#define dealii_fully_distributed_tests_h - -#include "../tests.h" - - -template -void -print_statistics(const Triangulation &tria, bool do_mg = false) -{ - deallog << "n_levels: " << tria.n_levels() << std::endl; - deallog << "n_cells: " << tria.n_cells() << std::endl; - deallog << "n_active_cells: " << tria.n_active_cells() - << std::endl; - deallog << "has_hanging_nodes: " - << (tria.has_hanging_nodes() ? "true" : "false") << std::endl; - - if (do_mg) - { - for (auto level = 0u; level < tria.n_levels(); ++level) - deallog << "n_cells on level=" << level << ": " - << tria.n_cells(level) << std::endl; - - for (auto level = 0u; level < tria.n_levels(); ++level) - deallog << "n_active_cells on level=" << level << ": " - << tria.n_active_cells(level) << std::endl; - } - - deallog << std::endl; -} - -template -void -print_statistics(const DoFHandler &dof_handler, - bool do_mg = false) -{ - deallog << "n_dofs: " << dof_handler.n_dofs() - << std::endl; - deallog << "n_locally_owned_dofs: " - << dof_handler.n_locally_owned_dofs() << std::endl; - deallog << "has_hanging_nodes: " - << (dof_handler.get_triangulation().has_hanging_nodes() ? "true" : - "false") - << std::endl; - - const auto n_levels = dof_handler.get_triangulation().n_levels(); - - if (do_mg) - { - for (auto level = 0u; level < n_levels; ++level) - deallog << "n_dofs on level=" << level << ": " - << dof_handler.n_dofs(level) << std::endl; - - for (auto level = 0u; level < n_levels; ++level) - deallog << "n_locally_owned_mg_dofs on level=" << level << ": " - << dof_handler.locally_owned_mg_dofs(level).n_elements() - << std::endl; - } - - deallog << std::endl; -} - -#endif -- 2.39.5