]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Forward declare a usage of LA::d::V.
authorDavid Wells <drwells@email.unc.edu>
Wed, 24 Aug 2022 20:20:43 +0000 (16:20 -0400)
committerDavid Wells <drwells@email.unc.edu>
Fri, 9 Sep 2022 20:58:08 +0000 (16:58 -0400)
include/deal.II/grid/tria_description.h
include/deal.II/numerics/data_out_dof_data.templates.h
include/deal.II/numerics/vector_tools_evaluate.h
tests/distributed_grids/solution_transfer_05.cc

index 888353316bfcf9f7f40115e13a5ba128146d7548..9214fcf449bf7c9ce5ffdb47508289d02262e89c 100644 (file)
 
 #include <deal.II/base/config.h>
 
+#include <deal.II/base/memory_space.h>
 #include <deal.II/base/mpi_stub.h>
 
 #include <deal.II/grid/cell_id.h>
 #include <deal.II/grid/reference_cell.h>
 #include <deal.II/grid/tria.h>
 
-#include <deal.II/lac/la_parallel_vector.h>
-
 
 DEAL_II_NAMESPACE_OPEN
+#ifndef DOXYGEN
+namespace LinearAlgebra
+{
+  namespace distributed
+  {
+    template <typename Number, typename MemorySpace>
+    class Vector;
+  }
+} // namespace LinearAlgebra
+#endif
 
 /*------------------------------------------------------------------------*/
 
@@ -547,9 +556,10 @@ namespace TriangulationDescription
     template <int dim, int spacedim>
     Description<dim, spacedim>
     create_description_from_triangulation(
-      const Triangulation<dim, spacedim> &              tria,
-      const LinearAlgebra::distributed::Vector<double> &partition,
-      const TriangulationDescription::Settings          settings =
+      const Triangulation<dim, spacedim> &tria,
+      const LinearAlgebra::distributed::Vector<double, MemorySpace::Host>
+        &                                      partition,
+      const TriangulationDescription::Settings settings =
         TriangulationDescription::Settings::default_setting);
 
     /**
@@ -559,9 +569,11 @@ namespace TriangulationDescription
     template <int dim, int spacedim>
     Description<dim, spacedim>
     create_description_from_triangulation(
-      const Triangulation<dim, spacedim> &              tria,
-      const LinearAlgebra::distributed::Vector<double> &partition,
-      const std::vector<LinearAlgebra::distributed::Vector<double>>
+      const Triangulation<dim, spacedim> &tria,
+      const LinearAlgebra::distributed::Vector<double, MemorySpace::Host>
+        &partition,
+      const std::vector<
+        LinearAlgebra::distributed::Vector<double, MemorySpace::Host>>
         &                                      mg_partitions,
       const TriangulationDescription::Settings settings =
         TriangulationDescription::Settings::default_setting);
index 0952f02ba9d138bfb7bd5d0ee9a4b7cab6db2c6d..71d069885a6b21aeef5d9917d56958df7c30f5c4 100644 (file)
@@ -44,6 +44,7 @@
 #include <deal.II/hp/q_collection.h>
 
 #include <deal.II/lac/block_vector_base.h>
+#include <deal.II/lac/la_parallel_vector.h>
 #include <deal.II/lac/read_write_vector.h>
 #include <deal.II/lac/vector.h>
 
index fbb44a6ed759c7c4fde59726d8c6f62b630c3b14..f647d40671f9c80bfb78c2e7dd151f4d85d56b78 100644 (file)
@@ -25,6 +25,9 @@
 
 #include <deal.II/dofs/dof_handler.h>
 
+#include <deal.II/lac/la_parallel_vector.h>
+#include <deal.II/lac/vector.h>
+
 #include <deal.II/matrix_free/fe_point_evaluation.h>
 
 #include <map>
index e021b8057472dde9aba1ec58ac1051758f9a4b21..50988329cafb1a9c4e3b8b752059b16dce512241 100644 (file)
@@ -30,6 +30,8 @@
 
 #include <deal.II/grid/grid_generator.h>
 
+#include <deal.II/lac/la_parallel_vector.h>
+
 #include "../tests.h"
 
 using namespace dealii;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.