]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add functions accepting hp::DoFHandler to BlockInfo 9810/head
authorPeter Munch <peterrmuench@gmail.com>
Fri, 3 Apr 2020 21:35:19 +0000 (23:35 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Fri, 3 Apr 2020 21:35:19 +0000 (23:35 +0200)
include/deal.II/dofs/block_info.h
source/dofs/block_info.cc
source/dofs/block_info.inst.in

index 504c1fd1d39055c9505dd8360b3cc76dc596c009..a31a9991d38e5d1e40a906cb4beff8b20d6473e4 100644 (file)
@@ -118,6 +118,17 @@ public:
              bool levels_only = false,
              bool active_only = false);
 
+  /**
+   * The same as above but for hp::DoFHandler.
+   *
+   * @note Not implemented.
+   */
+  template <int dim, int spacedim>
+  void
+  initialize(const hp::DoFHandler<dim, spacedim> &,
+             bool levels_only = false,
+             bool active_only = false);
+
   /**
    * @brief Initialize block structure on cells and compute renumbering
    * between cell dofs and block cell dofs.
@@ -126,6 +137,15 @@ public:
   void
   initialize_local(const DoFHandler<dim, spacedim> &);
 
+  /**
+   * The same as above but for hp::DoFHandler.
+   *
+   * @note Not implemented.
+   */
+  template <int dim, int spacedim>
+  void
+  initialize_local(const hp::DoFHandler<dim, spacedim> &);
+
   /**
    * Access the BlockIndices structure of the global system.
    */
index 8475491909bd9b392efaa88338de7c6b069d209e..e1e35cfeeff35fc8974edf3ab12ebddadf959e92 100644 (file)
@@ -53,6 +53,21 @@ BlockInfo::initialize(const DoFHandler<dim, spacedim> &dof,
 }
 
 
+
+template <int dim, int spacedim>
+void
+BlockInfo::initialize(const hp::DoFHandler<dim, spacedim> &dof,
+                      bool                                 levels_only,
+                      bool                                 active_only)
+{
+  AssertThrow(false, ExcNotImplemented());
+  (void)dof;
+  (void)levels_only;
+  (void)active_only;
+}
+
+
+
 template <int dim, int spacedim>
 void
 BlockInfo::initialize_local(const DoFHandler<dim, spacedim> &dof)
@@ -71,6 +86,15 @@ BlockInfo::initialize_local(const DoFHandler<dim, spacedim> &dof)
 }
 
 
+
+template <int dim, int spacedim>
+void
+BlockInfo::initialize_local(const hp::DoFHandler<dim, spacedim> &dof)
+{
+  AssertThrow(false, ExcNotImplemented());
+  (void)dof;
+}
+
 // explicit instantiations
 #include "block_info.inst"
 
index 789628180068d84e5d21c61a3870b62842caccf0..ec0d9623c7e99aa3521e51a6c6265dad060a1dda 100644 (file)
@@ -20,16 +20,30 @@ for (deal_II_dimension : DIMENSIONS)
       const DoFHandler<deal_II_dimension, deal_II_dimension> &, bool, bool);
     template void BlockInfo::initialize_local(
       const DoFHandler<deal_II_dimension, deal_II_dimension> &);
+    template void BlockInfo::initialize(
+      const hp::DoFHandler<deal_II_dimension, deal_II_dimension> &, bool, bool);
+    template void BlockInfo::initialize_local(
+      const hp::DoFHandler<deal_II_dimension, deal_II_dimension> &);
 
 #if deal_II_dimension < 3
     template void BlockInfo::initialize(
       const DoFHandler<deal_II_dimension, deal_II_dimension + 1> &, bool, bool);
     template void BlockInfo::initialize_local(
       const DoFHandler<deal_II_dimension, deal_II_dimension + 1> &);
+    template void BlockInfo::initialize(
+      const hp::DoFHandler<deal_II_dimension, deal_II_dimension + 1> &,
+      bool,
+      bool);
+    template void BlockInfo::initialize_local(
+      const hp::DoFHandler<deal_II_dimension, deal_II_dimension + 1> &);
 #endif
 
 #if deal_II_dimension == 3
     template void BlockInfo::initialize(const DoFHandler<1, 3> &, bool, bool);
     template void BlockInfo::initialize_local(const DoFHandler<1, 3> &);
+    template void BlockInfo::initialize(const hp::DoFHandler<1, 3> &,
+                                        bool,
+                                        bool);
+    template void BlockInfo::initialize_local(const hp::DoFHandler<1, 3> &);
 #endif
   }

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.