]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix template parameter of DoFHandler 16753/head
authorMagdalena Schreter <magdalena.schreter@tum.de>
Fri, 15 Mar 2024 09:26:52 +0000 (10:26 +0100)
committerMagdalena Schreter <magdalena.schreter@tum.de>
Fri, 15 Mar 2024 09:45:21 +0000 (10:45 +0100)
include/deal.II/numerics/vector_tools_interpolate.h
include/deal.II/numerics/vector_tools_interpolate.templates.h

index 8407108a24bf705b6e0babc641b43f6114ece012..dfcfcbcccf6e1d5be5b30c8be43b4045a3ed639a 100644 (file)
@@ -305,12 +305,12 @@ namespace VectorTools
    * The opposite operation, interpolation from a coarser to a finer mesh,
    * is implemented in the interpolate_to_finer_mesh() function.
    */
-  template <int dim, typename VectorType>
+  template <int dim, int spacedim, typename VectorType>
   DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
   void interpolate_to_coarser_mesh(
-    const DoFHandler<dim> &dof_handler_fine,
-    const VectorType      &u_fine,
-    const DoFHandler<dim> &dof_handler_coarse,
+    const DoFHandler<dim, spacedim> &dof_handler_fine,
+    const VectorType                &u_fine,
+    const DoFHandler<dim, spacedim> &dof_handler_coarse,
     const AffineConstraints<typename VectorType::value_type>
                &constraints_coarse,
     VectorType &u_coarse);
@@ -338,12 +338,12 @@ namespace VectorTools
    * The opposite operation, interpolation from a finer to a coarser mesh,
    * is implemented in the interpolate_to_coarser_mesh() function.
    */
-  template <int dim, typename VectorType>
+  template <int dim, int spacedim, typename VectorType>
   DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
   void interpolate_to_finer_mesh(
-    const DoFHandler<dim> &dof_handler_coarse,
-    const VectorType      &u_coarse,
-    const DoFHandler<dim> &dof_handler_fine,
+    const DoFHandler<dim, spacedim> &dof_handler_coarse,
+    const VectorType                &u_coarse,
+    const DoFHandler<dim, spacedim> &dof_handler_fine,
     const AffineConstraints<typename VectorType::value_type> &constraints_fine,
     VectorType                                               &u_fine);
 
index 90b2aa7012daeae90c0b078f18ff3b8a7d7f02df..48975fea3aa5857bb0248a8272c5a1fbf21e013a 100644 (file)
@@ -1104,12 +1104,12 @@ namespace VectorTools
   } // namespace InterpolateBetweenMeshes
 
 
-  template <int dim, typename VectorType>
+  template <int dim, int spacedim, typename VectorType>
   DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
   void interpolate_to_coarser_mesh(
-    const DoFHandler<dim> &dof_handler_fine,
-    const VectorType      &u_fine,
-    const DoFHandler<dim> &dof_handler_coarse,
+    const DoFHandler<dim, spacedim> &dof_handler_fine,
+    const VectorType                &u_fine,
+    const DoFHandler<dim, spacedim> &dof_handler_coarse,
     const AffineConstraints<typename VectorType::value_type>
                &constraints_coarse,
     VectorType &u_coarse)
@@ -1174,12 +1174,12 @@ namespace VectorTools
 
 
 
-  template <int dim, typename VectorType>
+  template <int dim, int spacedim, typename VectorType>
   DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
   void interpolate_to_finer_mesh(
-    const DoFHandler<dim> &dof_handler_coarse,
-    const VectorType      &u_coarse,
-    const DoFHandler<dim> &dof_handler_fine,
+    const DoFHandler<dim, spacedim> &dof_handler_coarse,
+    const VectorType                &u_coarse,
+    const DoFHandler<dim, spacedim> &dof_handler_fine,
     const AffineConstraints<typename VectorType::value_type> &constraints_fine,
     VectorType                                               &u_fine)
   {

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.