Commit 57e8a829 authored by Lukas Riedel's avatar Lukas Riedel

Initialize shared_ptr to grid with pointer to grid

This makes the source code compatible to Clang.
parent 42c9dc4d
......@@ -77,16 +77,14 @@ std::shared_ptr<GridType> build_grid_gmsh (const Dune::ParameterTree& inifile, c
else std::cout << std::endl << "--- GMSH READER OUTPUT ---" << std::endl;
auto grid = std::make_shared<GridType>();
Dune::GridFactory<GridType> factory(grid.get());
Dune::GridFactory<GridType> factory;
if(helper.rank() == 0){
std::vector<int> boundary_index_map;
std::vector<int> element_index_map;
auto grid = std::shared_ptr<GridType>(factory.createGrid());
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