From: Peter Munch Date: Wed, 29 Jun 2022 06:22:51 +0000 (+0200) Subject: Add MGTransferGlobalCoarsening::min_level() and max_level() X-Git-Tag: v9.5.0-rc1~1135^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cfd0e52fa8bc13df777fb8163b8e62d8a2e7cce;p=dealii.git Add MGTransferGlobalCoarsening::min_level() and max_level() --- diff --git a/include/deal.II/multigrid/mg_transfer_global_coarsening.h b/include/deal.II/multigrid/mg_transfer_global_coarsening.h index abe6e896bd..52e8a2140f 100644 --- a/include/deal.II/multigrid/mg_transfer_global_coarsening.h +++ b/include/deal.II/multigrid/mg_transfer_global_coarsening.h @@ -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::memory_consumption() const return size; } + + +template +inline unsigned int +MGTransferGlobalCoarsening::min_level() const +{ + return transfer.min_level(); +} + + + +template +inline unsigned int +MGTransferGlobalCoarsening::max_level() const +{ + return transfer.max_level(); +} + #endif DEAL_II_NAMESPACE_CLOSE