Commit 0254d9fa authored by Dominic Kempf's avatar Dominic Kempf

[dgf] Change DGFs internal construction of GeometryGrids to using shared_ptr

parent 7c7fb5a8
Pipeline #16287 passed with stage
in 33 minutes and 47 seconds
......@@ -148,10 +148,10 @@ namespace Dune
: dgfHostFactory_( filename, comm ),
grid_( 0 )
{
HostGrid *hostGrid = dgfHostFactory_.grid();
auto hostGrid = std::shared_ptr<HostGrid>(dgfHostFactory_.grid());
assert( hostGrid != 0 );
std::ifstream input( filename.c_str() );
CoordFunction *coordFunction = CoordFunctionFactory::create( input, *hostGrid );
auto coordFunction = std::shared_ptr<CoordFunction>(CoordFunctionFactory::create( input, *hostGrid ));
grid_ = new Grid( hostGrid, coordFunction );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment