From: Marco Feder Date: Fri, 28 Apr 2023 14:02:16 +0000 (+0200) Subject: second review X-Git-Tag: v9.5.0-rc1~280^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=993ec2a98a59ab2b4a994921589b196618c10e73;p=dealii.git second review --- diff --git a/include/deal.II/multigrid/mg_transfer_global_coarsening.h b/include/deal.II/multigrid/mg_transfer_global_coarsening.h index 7fe96f979b..c03bdddaae 100644 --- a/include/deal.II/multigrid/mg_transfer_global_coarsening.h +++ b/include/deal.II/multigrid/mg_transfer_global_coarsening.h @@ -17,7 +17,6 @@ #define dealii_mg_transfer_global_coarsening_h #include -#include #include #include @@ -666,14 +665,16 @@ public: /** * Constructor taking a collection of transfer operators (with the coarsest - * level kept - * empty in @p transfer) and an optional function that initializes the + * level kept empty in @p transfer) and an optional function that initializes the * internal level vectors within the function call copy_to_mg() if used in the - * context of PreconditionMG. + * context of PreconditionMG. The template parameter @p MGTwoLevelTransferObject should derive from + * MGTwoLevelTransferBase and implement the transfer operation (see for + * instance MGTwoLevelTransfer). It can also be a std::shared_ptr or + * std::unique_ptr to the actual transfer operator. */ - template + template MGTransferGlobalCoarsening( - const MGLevelObject &transfer, + const MGLevelObject &transfer, const std::function &initialize_dof_vector = {}); @@ -854,9 +855,9 @@ private: template -template +template MGTransferGlobalCoarsening::MGTransferGlobalCoarsening( - const MGLevelObject &transfer, + const MGLevelObject &transfer, const std::function &initialize_dof_vector) { diff --git a/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h b/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h index 1a53fe6e8f..2a01f9a456 100644 --- a/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h +++ b/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h @@ -21,6 +21,7 @@ #include #include +#include #include #include @@ -31,7 +32,6 @@ #include #include -#include #include #include @@ -3173,6 +3173,8 @@ MGTwoLevelTransferBase>:: } } + + template void MGTwoLevelTransfer>::