From 258b6b96d728e5296c23236e4c848f9e65bf4ba0 Mon Sep 17 00:00:00 2001 From: Vladimir Yushutin Date: Fri, 10 Nov 2023 14:45:42 -0500 Subject: [PATCH] Erronius VectorTools::NormType::* has been replaced with VectorTools::* in all files. Primarily, this fixes the clickability in doxygen for the two grid_refinement.h files. --- doc/news/8.2.1-vs-8.3.0.h | 2 +- include/deal.II/distributed/grid_refinement.h | 6 +++--- include/deal.II/grid/grid_refinement.h | 6 +++--- source/distributed/grid_refinement.cc | 4 ++-- source/grid/grid_refinement.cc | 4 ++-- tests/grid/refine_and_coarsen_fixed_fraction_03.cc | 4 ++-- tests/grid/refine_and_coarsen_fixed_fraction_04.cc | 4 ++-- tests/matrix_free/poisson_dg_hp.cc | 6 ++---- tests/matrix_free/step-37-inhomogeneous-1.cc | 2 +- tests/mpi/refine_and_coarsen_fixed_fraction_08.cc | 4 ++-- tests/mpi/refine_and_coarsen_fixed_fraction_09.cc | 4 ++-- .../multigrid-global-coarsening/step-37-inhomogeneous-1.cc | 2 +- .../vector_tools_evaluate_at_points_01.cc | 6 ++---- .../vector_tools_evaluate_at_points_03.cc | 6 ++---- .../vector_tools_evaluate_at_points_05.cc | 6 ++---- tests/simplex/matrix_free_02.cc | 4 ++-- tests/simplex/matrix_free_03.cc | 4 ++-- tests/simplex/matrix_free_04.cc | 6 ++---- tests/simplex/poisson_01.cc | 7 ++++--- tests/simplex/step-40.cc | 4 ++-- 20 files changed, 41 insertions(+), 50 deletions(-) diff --git a/doc/news/8.2.1-vs-8.3.0.h b/doc/news/8.2.1-vs-8.3.0.h index ce7cf9389b..ddf6b79e85 100644 --- a/doc/news/8.2.1-vs-8.3.0.h +++ b/doc/news/8.2.1-vs-8.3.0.h @@ -753,7 +753,7 @@ inconvenience this causes.
  • New: The VectorTools::integrate_difference() function can now also compute the $H_\text{div}$ seminorm, using the - VectorTools::NormType::Hdiv_seminorm argument. + VectorTools::Hdiv_seminorm argument.
    (Zhen Tao, Arezou Ghesmati, Wolfgang Bangerth, 2015/04/17)
  • diff --git a/include/deal.II/distributed/grid_refinement.h b/include/deal.II/distributed/grid_refinement.h index 0c557c79b7..0c87c717ba 100644 --- a/include/deal.II/distributed/grid_refinement.h +++ b/include/deal.II/distributed/grid_refinement.h @@ -204,8 +204,8 @@ namespace parallel * @param[in] norm_type To determine thresholds, combined errors on * subsets of cells are calculated as norms of the criteria on these * cells. Different types of norms can be used for this purpose, from - * which VectorTools::NormType::L1_norm and - * VectorTools::NormType::L2_norm are currently supported. + * which VectorTools::L1_norm and + * VectorTools::L2_norm are currently supported. */ template void @@ -214,7 +214,7 @@ namespace parallel const dealii::Vector &criteria, const double top_fraction_of_error, const double bottom_fraction_of_error, - const VectorTools::NormType norm_type = VectorTools::NormType::L1_norm); + const VectorTools::NormType norm_type = VectorTools::L1_norm); } // namespace GridRefinement } // namespace distributed } // namespace parallel diff --git a/include/deal.II/grid/grid_refinement.h b/include/deal.II/grid/grid_refinement.h index 5e354a505d..c344066173 100644 --- a/include/deal.II/grid/grid_refinement.h +++ b/include/deal.II/grid/grid_refinement.h @@ -226,8 +226,8 @@ namespace GridRefinement * @param[in] norm_type To determine thresholds, combined errors on * subsets of cells are calculated as norms of the criteria on these * cells. Different types of norms can be used for this purpose, from - * which VectorTools::NormType::L1_norm and - * VectorTools::NormType::L2_norm are currently supported. + * which VectorTools::L1_norm and + * VectorTools::L2_norm are currently supported. */ template void @@ -237,7 +237,7 @@ namespace GridRefinement const double top_fraction, const double bottom_fraction, const unsigned int max_n_cells = std::numeric_limits::max(), - const VectorTools::NormType norm_type = VectorTools::NormType::L1_norm); + const VectorTools::NormType norm_type = VectorTools::L1_norm); diff --git a/source/distributed/grid_refinement.cc b/source/distributed/grid_refinement.cc index 55ca56fa1a..2a7fb94068 100644 --- a/source/distributed/grid_refinement.cc +++ b/source/distributed/grid_refinement.cc @@ -595,7 +595,7 @@ namespace parallel switch (norm_type) { - case VectorTools::NormType::L1_norm: + case VectorTools::L1_norm: // evaluate norms on subsets and compare them as // c_0 + c_1 + ... < fraction * l1-norm(c) refine_and_coarsen_fixed_fraction_via_l1_norm( @@ -605,7 +605,7 @@ namespace parallel bottom_fraction_of_error); break; - case VectorTools::NormType::L2_norm: + case VectorTools::L2_norm: { // we do not want to evaluate norms on subsets as: // sqrt(c_0^2 + c_1^2 + ...) < fraction * l2-norm(c) diff --git a/source/grid/grid_refinement.cc b/source/grid/grid_refinement.cc index 9163212f09..9d5fd9d402 100644 --- a/source/grid/grid_refinement.cc +++ b/source/grid/grid_refinement.cc @@ -404,14 +404,14 @@ GridRefinement::refine_and_coarsen_fixed_fraction( switch (norm_type) { - case VectorTools::NormType::L1_norm: + case VectorTools::L1_norm: // evaluate norms on subsets and compare them as // c_0 + c_1 + ... < fraction * l1-norm(c) refine_and_coarsen_fixed_fraction_via_l1_norm( tria, criteria, top_fraction, bottom_fraction, max_n_cells); break; - case VectorTools::NormType::L2_norm: + case VectorTools::L2_norm: { // we do not want to evaluate norms on subsets as: // sqrt(c_0^2 + c_1^2 + ...) < fraction * l2-norm(c) diff --git a/tests/grid/refine_and_coarsen_fixed_fraction_03.cc b/tests/grid/refine_and_coarsen_fixed_fraction_03.cc index 103d6ecc4f..a6240e6ddc 100644 --- a/tests/grid/refine_and_coarsen_fixed_fraction_03.cc +++ b/tests/grid/refine_and_coarsen_fixed_fraction_03.cc @@ -73,7 +73,7 @@ test() 0.3, 0.3, std::numeric_limits::max(), - VectorTools::NormType::L1_norm); + VectorTools::L1_norm); count_flags(tria); deallog << std::endl; @@ -91,7 +91,7 @@ test() 0.3, 0.3, std::numeric_limits::max(), - VectorTools::NormType::L2_norm); + VectorTools::L2_norm); count_flags(tria); deallog << std::endl; } diff --git a/tests/grid/refine_and_coarsen_fixed_fraction_04.cc b/tests/grid/refine_and_coarsen_fixed_fraction_04.cc index ca8655c23c..f074d892aa 100644 --- a/tests/grid/refine_and_coarsen_fixed_fraction_04.cc +++ b/tests/grid/refine_and_coarsen_fixed_fraction_04.cc @@ -74,7 +74,7 @@ test() 0.3, 0.3, std::numeric_limits::max(), - VectorTools::NormType::L1_norm); + VectorTools::L1_norm); count_flags(tria); deallog << std::endl; @@ -92,7 +92,7 @@ test() 0.3, 0.3, std::numeric_limits::max(), - VectorTools::NormType::L2_norm); + VectorTools::L2_norm); count_flags(tria); deallog << std::endl; } diff --git a/tests/matrix_free/poisson_dg_hp.cc b/tests/matrix_free/poisson_dg_hp.cc index 4d55716f34..1103e253ae 100644 --- a/tests/matrix_free/poisson_dg_hp.cc +++ b/tests/matrix_free/poisson_dg_hp.cc @@ -301,12 +301,10 @@ test(const unsigned int degree) Functions::ZeroFunction(), difference, quad, - VectorTools::NormType::L2_norm); + VectorTools::L2_norm); const double error = - VectorTools::compute_global_error(tria, - difference, - VectorTools::NormType::L2_norm); + VectorTools::compute_global_error(tria, difference, VectorTools::L2_norm); if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0) printf("Error %f.\n", error); diff --git a/tests/matrix_free/step-37-inhomogeneous-1.cc b/tests/matrix_free/step-37-inhomogeneous-1.cc index fb203c6eb6..1653e85453 100644 --- a/tests/matrix_free/step-37-inhomogeneous-1.cc +++ b/tests/matrix_free/step-37-inhomogeneous-1.cc @@ -595,7 +595,7 @@ namespace Step37 ManufacturedSolution(), errors, QIterated(QTrapezoid<1>(), 4), - VectorTools::NormType::Linfty_norm); + VectorTools::Linfty_norm); double max_cell_error = 1.0; if (errors.begin() != errors.end()) max_cell_error = *std::max_element(errors.begin(), errors.end()); diff --git a/tests/mpi/refine_and_coarsen_fixed_fraction_08.cc b/tests/mpi/refine_and_coarsen_fixed_fraction_08.cc index 6dcbc18c4b..61fdaed947 100644 --- a/tests/mpi/refine_and_coarsen_fixed_fraction_08.cc +++ b/tests/mpi/refine_and_coarsen_fixed_fraction_08.cc @@ -77,7 +77,7 @@ test() deallog << "l1-norm: "; parallel::distributed::GridRefinement::refine_and_coarsen_fixed_fraction( - tria, indicator, 0.3, 0.3, VectorTools::NormType::L1_norm); + tria, indicator, 0.3, 0.3, VectorTools::L1_norm); count_flags(tria); deallog << std::endl; @@ -91,7 +91,7 @@ test() deallog << "l2-norm: "; parallel::distributed::GridRefinement::refine_and_coarsen_fixed_fraction( - tria, indicator, 0.3, 0.3, VectorTools::NormType::L2_norm); + tria, indicator, 0.3, 0.3, VectorTools::L2_norm); count_flags(tria); deallog << std::endl; } diff --git a/tests/mpi/refine_and_coarsen_fixed_fraction_09.cc b/tests/mpi/refine_and_coarsen_fixed_fraction_09.cc index 56391b08e3..529d29ecd9 100644 --- a/tests/mpi/refine_and_coarsen_fixed_fraction_09.cc +++ b/tests/mpi/refine_and_coarsen_fixed_fraction_09.cc @@ -78,7 +78,7 @@ test() deallog << "l1-norm: "; parallel::distributed::GridRefinement::refine_and_coarsen_fixed_fraction( - tria, indicator, 0.3, 0.3, VectorTools::NormType::L1_norm); + tria, indicator, 0.3, 0.3, VectorTools::L1_norm); count_flags(tria); deallog << std::endl; @@ -92,7 +92,7 @@ test() deallog << "l2-norm: "; parallel::distributed::GridRefinement::refine_and_coarsen_fixed_fraction( - tria, indicator, 0.3, 0.3, VectorTools::NormType::L2_norm); + tria, indicator, 0.3, 0.3, VectorTools::L2_norm); count_flags(tria); deallog << std::endl; } diff --git a/tests/multigrid-global-coarsening/step-37-inhomogeneous-1.cc b/tests/multigrid-global-coarsening/step-37-inhomogeneous-1.cc index 0f7412cd2b..151c5d4105 100644 --- a/tests/multigrid-global-coarsening/step-37-inhomogeneous-1.cc +++ b/tests/multigrid-global-coarsening/step-37-inhomogeneous-1.cc @@ -595,7 +595,7 @@ namespace Step37 ManufacturedSolution(), errors, QIterated(QTrapezoid<1>(), 4), - VectorTools::NormType::Linfty_norm); + VectorTools::Linfty_norm); double max_cell_error = 1.0; if (errors.begin() != errors.end()) max_cell_error = *std::max_element(errors.begin(), errors.end()); diff --git a/tests/remote_point_evaluation/vector_tools_evaluate_at_points_01.cc b/tests/remote_point_evaluation/vector_tools_evaluate_at_points_01.cc index c0d2a0a9ad..db593557b0 100644 --- a/tests/remote_point_evaluation/vector_tools_evaluate_at_points_01.cc +++ b/tests/remote_point_evaluation/vector_tools_evaluate_at_points_01.cc @@ -249,12 +249,10 @@ test() AnalyticalFunction(), difference, quadrature_2, - VectorTools::NormType::L2_norm); + VectorTools::L2_norm); double error = - VectorTools::compute_global_error(tria_2, - difference, - VectorTools::NormType::L2_norm); + VectorTools::compute_global_error(tria_2, difference, VectorTools::L2_norm); if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)) diff --git a/tests/remote_point_evaluation/vector_tools_evaluate_at_points_03.cc b/tests/remote_point_evaluation/vector_tools_evaluate_at_points_03.cc index 078b5a12a6..ee45e98466 100644 --- a/tests/remote_point_evaluation/vector_tools_evaluate_at_points_03.cc +++ b/tests/remote_point_evaluation/vector_tools_evaluate_at_points_03.cc @@ -228,12 +228,10 @@ test() Functions::CosineFunction<2>(), difference, quadrature_2, - VectorTools::NormType::L2_norm); + VectorTools::L2_norm); double error = - VectorTools::compute_global_error(tria_2, - difference, - VectorTools::NormType::L2_norm); + VectorTools::compute_global_error(tria_2, difference, VectorTools::L2_norm); if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)) diff --git a/tests/remote_point_evaluation/vector_tools_evaluate_at_points_05.cc b/tests/remote_point_evaluation/vector_tools_evaluate_at_points_05.cc index a3c38bbcaf..b36002642d 100644 --- a/tests/remote_point_evaluation/vector_tools_evaluate_at_points_05.cc +++ b/tests/remote_point_evaluation/vector_tools_evaluate_at_points_05.cc @@ -218,12 +218,10 @@ test() AnalyticalFunction(), difference, quadrature_2, - VectorTools::NormType::L2_norm); + VectorTools::L2_norm); double error = - VectorTools::compute_global_error(tria_2, - difference, - VectorTools::NormType::L2_norm); + VectorTools::compute_global_error(tria_2, difference, VectorTools::L2_norm); if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)) diff --git a/tests/simplex/matrix_free_02.cc b/tests/simplex/matrix_free_02.cc index 2b436ac0ae..4cd341c4d2 100644 --- a/tests/simplex/matrix_free_02.cc +++ b/tests/simplex/matrix_free_02.cc @@ -206,7 +206,7 @@ test(const unsigned version, const unsigned int degree, const bool do_helmholtz) Functions::ZeroFunction(), difference, quads, - VectorTools::NormType::L2_norm); + VectorTools::L2_norm); std::tuple result( reduction_control.last_step(), @@ -214,7 +214,7 @@ test(const unsigned version, const unsigned int degree, const bool do_helmholtz) x.linfty_norm(), VectorTools::compute_global_error(tria, difference, - VectorTools::NormType::L2_norm)); + VectorTools::L2_norm)); return result; }; diff --git a/tests/simplex/matrix_free_03.cc b/tests/simplex/matrix_free_03.cc index 266dc44025..6395f2c429 100644 --- a/tests/simplex/matrix_free_03.cc +++ b/tests/simplex/matrix_free_03.cc @@ -363,11 +363,11 @@ test(const unsigned int degree) Functions::ZeroFunction(), difference, quadrature, - VectorTools::NormType::L2_norm); + VectorTools::L2_norm); deallog << VectorTools::compute_global_error(tria, difference, - VectorTools::NormType::L2_norm) + VectorTools::L2_norm) << std::endl; return {reduction_control.last_step(), reduction_control.last_value()}; diff --git a/tests/simplex/matrix_free_04.cc b/tests/simplex/matrix_free_04.cc index 14d126a7b0..60b815e44b 100644 --- a/tests/simplex/matrix_free_04.cc +++ b/tests/simplex/matrix_free_04.cc @@ -312,12 +312,10 @@ test(const unsigned version, const unsigned int degree) Functions::ZeroFunction(), difference, quads, - VectorTools::NormType::L2_norm); + VectorTools::L2_norm); const double error = - VectorTools::compute_global_error(tria, - difference, - VectorTools::NormType::L2_norm); + VectorTools::compute_global_error(tria, difference, VectorTools::L2_norm); if (error < 0.042) deallog << "OK" << std::endl; diff --git a/tests/simplex/poisson_01.cc b/tests/simplex/poisson_01.cc index a1df1fd504..3556f77e1d 100644 --- a/tests/simplex/poisson_01.cc +++ b/tests/simplex/poisson_01.cc @@ -317,10 +317,11 @@ test(const Triangulation &tria, Functions::ZeroFunction(), difference, quad, - VectorTools::NormType::L2_norm); + VectorTools::L2_norm); - deallog << VectorTools::compute_global_error( - tria, difference, VectorTools::NormType::L2_norm) + deallog << VectorTools::compute_global_error(tria, + difference, + VectorTools::L2_norm) << std::endl; DataOut data_out; diff --git a/tests/simplex/step-40.cc b/tests/simplex/step-40.cc index 5f9be61703..8a8305010e 100644 --- a/tests/simplex/step-40.cc +++ b/tests/simplex/step-40.cc @@ -310,11 +310,11 @@ namespace Step40 Functions::ZeroFunction(), difference, quadrature_formula, - VectorTools::NormType::L2_norm); + VectorTools::L2_norm); deallog << VectorTools::compute_global_error(triangulation, difference, - VectorTools::NormType::L2_norm) + VectorTools::L2_norm) << std::endl; } -- 2.39.5