]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add MGTransferGlobalCoarsening::min_level() and max_level() 14074/head
authorPeter Munch <peterrmuench@gmail.com>
Wed, 29 Jun 2022 06:22:51 +0000 (08:22 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Wed, 29 Jun 2022 06:22:51 +0000 (08:22 +0200)
include/deal.II/multigrid/mg_transfer_global_coarsening.h

index abe6e896bd245238746a4caaa73e2103fb6776cd..52e8a2140fd24d7a7cbb63b4d72361e515af0c77 100644 (file)
@@ -603,6 +603,18 @@ public:
   std::size_t
   memory_consumption() const;
 
+  /**
+   * Minimum level.
+   */
+  unsigned int
+  min_level() const;
+
+  /**
+   * Maximum level.
+   */
+  unsigned int
+  max_level() const;
+
 private:
   /**
    * Function to initialize internal level vectors.
@@ -878,6 +890,24 @@ MGTransferGlobalCoarsening<dim, VectorType>::memory_consumption() const
   return size;
 }
 
+
+
+template <int dim, typename VectorType>
+inline unsigned int
+MGTransferGlobalCoarsening<dim, VectorType>::min_level() const
+{
+  return transfer.min_level();
+}
+
+
+
+template <int dim, typename VectorType>
+inline unsigned int
+MGTransferGlobalCoarsening<dim, VectorType>::max_level() const
+{
+  return transfer.max_level();
+}
+
 #endif
 
 DEAL_II_NAMESPACE_CLOSE

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.