]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove DoFHandlerType from fe_tools.h
authorPeter Munch <peterrmuench@gmail.com>
Mon, 29 Jun 2020 06:50:20 +0000 (08:50 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Mon, 29 Jun 2020 06:50:20 +0000 (08:50 +0200)
include/deal.II/fe/fe_tools.h
include/deal.II/fe/fe_tools_interpolate.templates.h

index 6f3f4b486ae5395fe1628492c5c0c8bcc47d516f..3d1970df317ac59b4f8e3d6f74c4f98fafca1840 100644 (file)
@@ -644,17 +644,12 @@ namespace FETools
    * by calling the @p distribute function of your hanging node constraints
    * object.
    */
-  template <int dim,
-            int spacedim,
-            template <int, int> class DoFHandlerType1,
-            template <int, int> class DoFHandlerType2,
-            class InVector,
-            class OutVector>
+  template <int dim, int spacedim, class InVector, class OutVector>
   void
-  interpolate(const DoFHandlerType1<dim, spacedim> &dof1,
-              const InVector &                      u1,
-              const DoFHandlerType2<dim, spacedim> &dof2,
-              OutVector &                           u2);
+  interpolate(const DoFHandler<dim, spacedim> &dof1,
+              const InVector &                 u1,
+              const DoFHandler<dim, spacedim> &dof2,
+              OutVector &                      u2);
 
   /**
    * Compute the interpolation of a the @p dof1-function @p u1 to a @p
@@ -672,17 +667,12 @@ namespace FETools
    * the discontinuities.  Therefore the mean value is taken at the DoF values
    * at the discontinuities.
    */
-  template <int dim,
-            int spacedim,
-            template <int, int> class DoFHandlerType1,
-            template <int, int> class DoFHandlerType2,
-            class InVector,
-            class OutVector>
+  template <int dim, int spacedim, class InVector, class OutVector>
   void
   interpolate(
-    const DoFHandlerType1<dim, spacedim> &                   dof1,
+    const DoFHandler<dim, spacedim> &                        dof1,
     const InVector &                                         u1,
-    const DoFHandlerType2<dim, spacedim> &                   dof2,
+    const DoFHandler<dim, spacedim> &                        dof2,
     const AffineConstraints<typename OutVector::value_type> &constraints,
     OutVector &                                              u2);
 
index 01a278f9f8a1767ddd678b2e2e1e800049d936df..adb96ff7209bdd5e68c4ca41eb949cf143755a5d 100644 (file)
@@ -59,17 +59,12 @@ DEAL_II_NAMESPACE_OPEN
 
 namespace FETools
 {
-  template <int dim,
-            int spacedim,
-            template <int, int> class DoFHandlerType1,
-            template <int, int> class DoFHandlerType2,
-            class InVector,
-            class OutVector>
+  template <int dim, int spacedim, class InVector, class OutVector>
   void
-  interpolate(const DoFHandlerType1<dim, spacedim> &dof1,
-              const InVector &                      u1,
-              const DoFHandlerType2<dim, spacedim> &dof2,
-              OutVector &                           u2)
+  interpolate(const DoFHandler<dim, spacedim> &dof1,
+              const InVector &                 u1,
+              const DoFHandler<dim, spacedim> &dof2,
+              OutVector &                      u2)
   {
     AffineConstraints<typename OutVector::value_type> dummy;
     dummy.close();
@@ -78,17 +73,12 @@ namespace FETools
 
 
 
-  template <int dim,
-            int spacedim,
-            template <int, int> class DoFHandlerType1,
-            template <int, int> class DoFHandlerType2,
-            class InVector,
-            class OutVector>
+  template <int dim, int spacedim, class InVector, class OutVector>
   void
   interpolate(
-    const DoFHandlerType1<dim, spacedim> &                   dof1,
+    const DoFHandler<dim, spacedim> &                        dof1,
     const InVector &                                         u1,
-    const DoFHandlerType2<dim, spacedim> &                   dof2,
+    const DoFHandler<dim, spacedim> &                        dof2,
     const AffineConstraints<typename OutVector::value_type> &constraints,
     OutVector &                                              u2)
   {
@@ -132,10 +122,10 @@ namespace FETools
                       std::unique_ptr<FullMatrix<double>>>>
       interpolation_matrices;
 
-    typename DoFHandlerType1<dim, spacedim>::active_cell_iterator
+    typename DoFHandler<dim, spacedim>::active_cell_iterator
       cell1 = dof1.begin_active(),
       endc1 = dof1.end();
-    typename DoFHandlerType2<dim, spacedim>::active_cell_iterator
+    typename DoFHandler<dim, spacedim>::active_cell_iterator
       cell2 = dof2.begin_active(),
       endc2 = dof2.end();
     (void)endc2;

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.