From 106e19d0ad11fc1647283ef434256a7ab74076a1 Mon Sep 17 00:00:00 2001
From: podlesny <podlesny@zedat.fu-berlin.de>
Date: Thu, 18 Jun 2020 21:09:57 +0200
Subject: [PATCH] galerkin restriction with transfer operators

---
 dune/faultnetworks/dgmgtransfer.hh | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/dune/faultnetworks/dgmgtransfer.hh b/dune/faultnetworks/dgmgtransfer.hh
index 641d3f8..7201df5 100644
--- a/dune/faultnetworks/dgmgtransfer.hh
+++ b/dune/faultnetworks/dgmgtransfer.hh
@@ -218,6 +218,24 @@ public:
     {
         GenericMultigridTransfer::restrict(prolongationMatrix_, f, t, -1);
     }
+
+    template< class OperatorType>
+    void galerkinRestrictSetOccupation(const OperatorType& fineMat, OperatorType& coarseMat)
+    {
+        GenericMultigridTransfer::galerkinRestrictSetOccupation(prolongationMatrix_, fineMat, coarseMat);
+    }
+
+    template<class FineMatrixType, class CoarseMatrixType>
+    void galerkinRestrict(const FineMatrixType& fineMat, CoarseMatrixType& coarseMat)
+    {
+         GenericMultigridTransfer::galerkinRestrict(prolongationMatrix_, fineMat, coarseMat);
+    }
+
+    template <class BitVectorType>
+    void restrictToFathers(const BitVectorType& f, BitVectorType& t) const
+    {
+        GenericMultigridTransfer::restrictBitFieldToFathers(prolongationMatrix_, f, t, -1);
+    }
 };
 
 #endif
-- 
GitLab