From 6db388322846dcd32b87683406546bea60fc7116 Mon Sep 17 00:00:00 2001
From: Ansgar Burchardt <Ansgar.Burchardt@tu-dresden.de>
Date: Wed, 17 Jun 2020 23:56:49 +0200
Subject: [PATCH] multigridstep.cc: use `std::make_shared`

---
 dune/solvers/iterationsteps/multigridstep.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dune/solvers/iterationsteps/multigridstep.cc b/dune/solvers/iterationsteps/multigridstep.cc
index 3985e84a..e49ad648 100644
--- a/dune/solvers/iterationsteps/multigridstep.cc
+++ b/dune/solvers/iterationsteps/multigridstep.cc
@@ -119,8 +119,8 @@ void MultigridStep<MatrixType, VectorType, BitVectorType>::preprocess()
     // /////////////////////////////////////////////////////
     for (int i=this->numLevels()-2; i>=0; i--)
     {
-        this->matrixHierarchy_[i] = std::shared_ptr<MatrixType>(new MatrixType);
-        this->xHierarchy_[i] = std::shared_ptr<VectorType>(new VectorType);
+        this->matrixHierarchy_[i] = std::make_shared<MatrixType>();
+        this->xHierarchy_[i] = std::make_shared<VectorType>();
 
         // Compute which entries are present in the (sparse) coarse grid stiffness
         // matrices.
-- 
GitLab