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

Use std::unique_ptr to store the grid

This is what GridFactory::createGrid returns anyway.
parent 7a00ee21
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ energy(const Entity& element, ...@@ -67,7 +67,7 @@ energy(const Entity& element,
template <int domainDim> template <int domainDim>
GridType* makeTestGrid() std::unique_ptr<GridType> makeTestGrid()
{ {
// //////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////
// Make a test grid consisting of a single simplex // Make a test grid consisting of a single simplex
...@@ -103,7 +103,7 @@ GridType* makeTestGrid() ...@@ -103,7 +103,7 @@ GridType* makeTestGrid()
template <class TargetSpace, int domainDim> template <class TargetSpace, int domainDim>
void testHessian() void testHessian()
{ {
const GridType* grid = makeTestGrid<domainDim>(); std::unique_ptr<const GridType> grid = makeTestGrid<domainDim>();
const int spaceDim = TargetSpace::TangentVector::dimension; const int spaceDim = TargetSpace::TangentVector::dimension;
const int embeddedSpaceDim = TargetSpace::EmbeddedTangentVector::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