Skip to content
Snippets Groups Projects
Commit 70c23199 authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Make compile with dune-grid 2.6 again

I forgot the GridFactory::createGrid did return a plain pointer
as recently as dune-grid 2.6.
parent 01bc3cd7
No related branches found
No related tags found
No related merge requests found
Pipeline #2305 failed
#include "config.h"
#include <dune/common/version.hh>
#include <dune/grid/uggrid.hh>
#include <dune/grid/onedgrid.hh>
......@@ -65,7 +67,11 @@ energy(const typename Basis::LocalView& localView,
template <int domainDim>
#if DUNE_VERSION_LT(DUNE_FUNCTIONS,2,7)
GridType* makeTestGrid()
#else
std::unique_ptr<GridType> makeTestGrid()
#endif
{
// ////////////////////////////////////////////////////////
// Make a test grid consisting of a single simplex
......@@ -101,7 +107,11 @@ std::unique_ptr<GridType> makeTestGrid()
template <class TargetSpace, int domainDim>
void testHessian()
{
#if DUNE_VERSION_LT(DUNE_FUNCTIONS,2,7)
const GridType* grid = makeTestGrid<domainDim>();
#else
std::unique_ptr<const GridType> grid = makeTestGrid<domainDim>();
#endif
const int spaceDim = TargetSpace::TangentVector::dimension;
const int embeddedSpaceDim = TargetSpace::EmbeddedTangentVector::dimension;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment