Fix compilation issues due to removed Dune::shared_ptr.

Those methods return a unique_ptr since at least DUNE 2.6.
This commit is contained in:
Markus Blatt 2020-03-17 15:13:39 +01:00
parent aaa375b080
commit be3ed71634
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ class CubeGridVanguard : public BaseVanguard<TypeTag>
typedef typename GET_PROP_TYPE(TypeTag, Simulator) Simulator;
typedef typename GET_PROP_TYPE(TypeTag, Grid) Grid;
typedef Dune::shared_ptr<Grid> GridPointer;
typedef std::unique_ptr<Grid> GridPointer;
typedef typename Grid::ctype CoordScalar;
enum { dimWorld = Grid::dimensionworld };
typedef Dune::FieldVector<CoordScalar, dimWorld> GlobalPosition;

View File

@ -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<Grid> GridPointer;
typedef std::unique_ptr<Grid> GridPointer;
typedef typename Grid::ctype CoordScalar;
enum { dimWorld = Grid::dimensionworld };
typedef Dune::FieldVector<CoordScalar, dimWorld> GlobalPosition;