From 7278e63889b6f2bce452e3f6fd47998bc2df255c Mon Sep 17 00:00:00 2001
From: Simon Praetorius <simon.praetorius@tu-dresden.de>
Date: Sun, 16 Jun 2019 12:36:03 +0200
Subject: [PATCH] Add specialization of ConstructionTraits for SeqGS

---
 dune/istl/paamg/smoother.hh | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/dune/istl/paamg/smoother.hh b/dune/istl/paamg/smoother.hh
index 11d38e4e4..913f7e37e 100644
--- a/dune/istl/paamg/smoother.hh
+++ b/dune/istl/paamg/smoother.hh
@@ -202,6 +202,22 @@ namespace Dune
       }
     };
 
+
+    /**
+     * @brief Policy for the construction of the SeqGS smoother
+     */
+    template<class M, class X, class Y, int l>
+    struct ConstructionTraits<SeqGS<M,X,Y,l> >
+    {
+      typedef DefaultConstructionArgs<SeqGS<M,X,Y,l> > Arguments;
+
+      static inline std::shared_ptr<SeqGS<M,X,Y,l>> construct(Arguments& args)
+      {
+        return std::make_shared<SeqGS<M,X,Y,l>>
+          (args.getMatrix(), args.getArgs().iterations, args.getArgs().relaxationFactor);
+      }
+    };
+
     /**
      * @brief Policy for the construction of the SeqJac smoother
      */
-- 
GitLab