]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify the instantiations of DoFTools::extract_dofs().
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 8 Jan 2020 03:42:13 +0000 (20:42 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 8 Jan 2020 03:42:13 +0000 (20:42 -0700)
source/dofs/dof_tools.inst.in

index 15c788aa66def8f967172ec01891e936fd71368b..b33610e531e6c34723f5d6e182f46fbdebc4bc51 100644 (file)
@@ -70,6 +70,32 @@ for (DoFHandler : DOFHANDLER_TEMPLATES;
         const DoFHandler<deal_II_dimension, deal_II_space_dimension> &,
         std::vector<types::global_dof_index> &,
         const std::vector<unsigned int> &);
+        
+      // extract_dofs(): Deprecated versions that return information through
+      // the last argument
+      template void
+      extract_dofs<DoFHandler<deal_II_dimension, deal_II_space_dimension>>(
+        const DoFHandler<deal_II_dimension, deal_II_space_dimension> &,
+        const ComponentMask &,
+        std::vector<bool> &);
+
+      template void
+      extract_dofs<DoFHandler<deal_II_dimension, deal_II_space_dimension>>(
+        const DoFHandler<deal_II_dimension, deal_II_space_dimension> &,
+        const BlockMask &,
+        std::vector<bool> &);
+
+
+      // extract_dofs(): New versions that return information as an IndexSet
+      template IndexSet
+      extract_dofs<DoFHandler<deal_II_dimension, deal_II_space_dimension>>(
+        const DoFHandler<deal_II_dimension, deal_II_space_dimension> &,
+        const ComponentMask &);
+
+      template IndexSet
+      extract_dofs<DoFHandler<deal_II_dimension, deal_II_space_dimension>>(
+        const DoFHandler<deal_II_dimension, deal_II_space_dimension> &,
+        const BlockMask &);
     \}
 #endif
   }
@@ -567,54 +593,6 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : DIMENSIONS)
                          deal_II_space_dimension>::active_cell_iterator>
           &patch);
 
-      // Deprecated versions that return information through the last
-      // argument
-      template void
-      extract_dofs<DoFHandler<deal_II_dimension, deal_II_space_dimension>>(
-        const DoFHandler<deal_II_dimension, deal_II_space_dimension> &,
-        const ComponentMask &,
-        std::vector<bool> &);
-
-      template void
-      extract_dofs<DoFHandler<deal_II_dimension, deal_II_space_dimension>>(
-        const DoFHandler<deal_II_dimension, deal_II_space_dimension> &,
-        const BlockMask &,
-        std::vector<bool> &);
-
-      template void
-      extract_dofs<hp::DoFHandler<deal_II_dimension, deal_II_space_dimension>>(
-        const hp::DoFHandler<deal_II_dimension, deal_II_space_dimension> &,
-        const ComponentMask &,
-        std::vector<bool> &);
-
-      template void
-      extract_dofs<hp::DoFHandler<deal_II_dimension, deal_II_space_dimension>>(
-        const hp::DoFHandler<deal_II_dimension, deal_II_space_dimension> &,
-        const BlockMask &,
-        std::vector<bool> &);
-
-
-      // New versions that return information as an IndexSet
-      template IndexSet
-      extract_dofs<DoFHandler<deal_II_dimension, deal_II_space_dimension>>(
-        const DoFHandler<deal_II_dimension, deal_II_space_dimension> &,
-        const ComponentMask &);
-
-      template IndexSet
-      extract_dofs<DoFHandler<deal_II_dimension, deal_II_space_dimension>>(
-        const DoFHandler<deal_II_dimension, deal_II_space_dimension> &,
-        const BlockMask &);
-
-      template IndexSet
-      extract_dofs<hp::DoFHandler<deal_II_dimension, deal_II_space_dimension>>(
-        const hp::DoFHandler<deal_II_dimension, deal_II_space_dimension> &,
-        const ComponentMask &);
-
-      template IndexSet
-      extract_dofs<hp::DoFHandler<deal_II_dimension, deal_II_space_dimension>>(
-        const hp::DoFHandler<deal_II_dimension, deal_II_space_dimension> &,
-        const BlockMask &);
-
       // extract_level_dofs() for ComponentMask and BlockMask
       template void
       extract_level_dofs<

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.