From d480fd717a7cf13eb4b7782e186098f5cbfbb945 Mon Sep 17 00:00:00 2001 From: David Wells Date: Wed, 24 Aug 2022 16:20:43 -0400 Subject: [PATCH] Forward declare a usage of LA::d::V. --- include/deal.II/grid/tria_description.h | 28 +++++++++++++------ .../numerics/data_out_dof_data.templates.h | 1 + .../deal.II/numerics/vector_tools_evaluate.h | 3 ++ .../distributed_grids/solution_transfer_05.cc | 2 ++ 4 files changed, 26 insertions(+), 8 deletions(-) diff --git a/include/deal.II/grid/tria_description.h b/include/deal.II/grid/tria_description.h index 888353316b..9214fcf449 100644 --- a/include/deal.II/grid/tria_description.h +++ b/include/deal.II/grid/tria_description.h @@ -18,16 +18,25 @@ #include +#include #include #include #include #include -#include - DEAL_II_NAMESPACE_OPEN +#ifndef DOXYGEN +namespace LinearAlgebra +{ + namespace distributed + { + template + class Vector; + } +} // namespace LinearAlgebra +#endif /*------------------------------------------------------------------------*/ @@ -547,9 +556,10 @@ namespace TriangulationDescription template Description create_description_from_triangulation( - const Triangulation & tria, - const LinearAlgebra::distributed::Vector &partition, - const TriangulationDescription::Settings settings = + const Triangulation &tria, + const LinearAlgebra::distributed::Vector + & partition, + const TriangulationDescription::Settings settings = TriangulationDescription::Settings::default_setting); /** @@ -559,9 +569,11 @@ namespace TriangulationDescription template Description create_description_from_triangulation( - const Triangulation & tria, - const LinearAlgebra::distributed::Vector &partition, - const std::vector> + const Triangulation &tria, + const LinearAlgebra::distributed::Vector + &partition, + const std::vector< + LinearAlgebra::distributed::Vector> & mg_partitions, const TriangulationDescription::Settings settings = TriangulationDescription::Settings::default_setting); 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 0952f02ba9..71d069885a 100644 --- a/include/deal.II/numerics/data_out_dof_data.templates.h +++ b/include/deal.II/numerics/data_out_dof_data.templates.h @@ -44,6 +44,7 @@ #include #include +#include #include #include diff --git a/include/deal.II/numerics/vector_tools_evaluate.h b/include/deal.II/numerics/vector_tools_evaluate.h index fbb44a6ed7..f647d40671 100644 --- a/include/deal.II/numerics/vector_tools_evaluate.h +++ b/include/deal.II/numerics/vector_tools_evaluate.h @@ -25,6 +25,9 @@ #include +#include +#include + #include #include diff --git a/tests/distributed_grids/solution_transfer_05.cc b/tests/distributed_grids/solution_transfer_05.cc index e021b80574..50988329ca 100644 --- a/tests/distributed_grids/solution_transfer_05.cc +++ b/tests/distributed_grids/solution_transfer_05.cc @@ -30,6 +30,8 @@ #include +#include + #include "../tests.h" using namespace dealii; -- 2.39.5