From 04d75bd789af8c7f36f9f4fe2975512900a2f5cb Mon Sep 17 00:00:00 2001
From: Jonathan Youett <youett@math.fu-berlin.de>
Date: Mon, 12 Nov 2018 10:03:42 +0100
Subject: [PATCH] Don't set smoother by raw pointer

---
 het2bcontact.cc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/het2bcontact.cc b/het2bcontact.cc
index c013b6ba..c822878a 100644
--- a/het2bcontact.cc
+++ b/het2bcontact.cc
@@ -330,15 +330,14 @@ int main (int argc, char *argv[]) try
 #endif
 
         // Make pre and postsmoothers
-        ProjectedBlockGSStep<OperatorType, VectorType> presmoother;
-        ProjectedBlockGSStep<OperatorType, VectorType> postsmoother;
+        ProjectedBlockGSStep<OperatorType, VectorType> presmoother, postsmoother;
 
         NonSmoothNewtonMGStep<OperatorType, VectorType> multigridStep(bilinearForm, totalX, totalRhs);
 
         multigridStep.setMGType(mu, nu1, nu2);
         multigridStep.setIgnore(totalDirichletNodes);
         multigridStep.setBaseSolver(baseSolver);
-        multigridStep.setSmoother(&presmoother, &postsmoother);
+        multigridStep.setSmoother(presmoother, postsmoother);
         multigridStep.setHasObstacle(hasObstacle);
         multigridStep.setObstacles(contactAssembler.obstacles_);
 
-- 
GitLab