Skip to content
Snippets Groups Projects
Commit 1a3da011 authored by Robert K's avatar Robert K
Browse files

[cleanup][SphereGrid] fix dgf parser constructor.

parent 21986f98
No related branches found
No related tags found
1 merge request!1Update to 2.8
......@@ -29,9 +29,9 @@ namespace Dune
: dgfHostFactory_( input, comm ),
grid_( 0 )
{
HostGrid *hostGrid = dgfHostFactory_.grid();
assert( hostGrid != 0 );
grid_ = new Grid( *hostGrid );
std::shared_ptr< HostGrid > hostGrid( dgfHostFactory_.grid() );
assert( hostGrid );
grid_ = new Grid( hostGrid );
}
explicit DGFGridFactory ( const std::string &filename,
......@@ -41,7 +41,6 @@ namespace Dune
{
std::shared_ptr< HostGrid > hostGrid( dgfHostFactory_.grid() );
assert( hostGrid );
std::ifstream input( filename.c_str() );
grid_ = new Grid( hostGrid );
}
......
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