From cacaa35ba56eedf85484d6065b706a83561e3e4f Mon Sep 17 00:00:00 2001 From: Oliver Sander <oliver.sander@tu-dresden.de> Date: Thu, 16 May 2019 11:14:07 +0200 Subject: [PATCH] Use more shared pointers in sequential code This makes sequential cosserat-continuum compile again. --- dune/gfe/riemanniantrsolver.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dune/gfe/riemanniantrsolver.cc b/dune/gfe/riemanniantrsolver.cc index 0c3958e0..70414dd3 100644 --- a/dune/gfe/riemanniantrsolver.cc +++ b/dune/gfe/riemanniantrsolver.cc @@ -79,12 +79,12 @@ setup(const GridType& grid, baseSolver->setTolerance(baseTolerance); #else // First create a Gauss-seidel base solver - TrustRegionGSStep<MatrixType, CorrectionType>* baseSolverStep = new TrustRegionGSStep<MatrixType, CorrectionType>; + auto baseSolverStep = std::make_shared<TrustRegionGSStep<MatrixType, CorrectionType> >(); // Hack: the two-norm may not scale all that well, but it is fast! - TwoNorm<CorrectionType>* baseNorm = new TwoNorm<CorrectionType>; + auto baseNorm = std::make_shared<TwoNorm<CorrectionType> >(); - ::LoopSolver<CorrectionType>* baseSolver = new ::LoopSolver<CorrectionType>(baseSolverStep, + auto baseSolver = std::make_shared<::LoopSolver<CorrectionType> >(baseSolverStep, baseIterations, baseTolerance, baseNorm, -- GitLab