From be3ed71634e57143133bd646bb2276cd95739463 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Tue, 17 Mar 2020 15:13:39 +0100 Subject: [PATCH] Fix compilation issues due to removed Dune::shared_ptr. Those methods return a unique_ptr since at least DUNE 2.6. --- opm/models/io/cubegridvanguard.hh | 2 +- opm/models/io/simplexvanguard.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/models/io/cubegridvanguard.hh b/opm/models/io/cubegridvanguard.hh index 46ee7f710..4ee8d474a 100644 --- a/opm/models/io/cubegridvanguard.hh +++ b/opm/models/io/cubegridvanguard.hh @@ -72,7 +72,7 @@ class CubeGridVanguard : public BaseVanguard typedef typename GET_PROP_TYPE(TypeTag, Simulator) Simulator; typedef typename GET_PROP_TYPE(TypeTag, Grid) Grid; - typedef Dune::shared_ptr GridPointer; + typedef std::unique_ptr GridPointer; typedef typename Grid::ctype CoordScalar; enum { dimWorld = Grid::dimensionworld }; typedef Dune::FieldVector GlobalPosition; diff --git a/opm/models/io/simplexvanguard.hh b/opm/models/io/simplexvanguard.hh index 33891cd81..a12165a4f 100644 --- a/opm/models/io/simplexvanguard.hh +++ b/opm/models/io/simplexvanguard.hh @@ -65,7 +65,7 @@ class SimplexGridVanguard typedef typename GET_PROP_TYPE(TypeTag, Simulator) Simulator; typedef typename GET_PROP_TYPE(TypeTag, Grid) Grid; - typedef Dune::shared_ptr GridPointer; + typedef std::unique_ptr GridPointer; typedef typename Grid::ctype CoordScalar; enum { dimWorld = Grid::dimensionworld }; typedef Dune::FieldVector GlobalPosition;