Skip to content
Snippets Groups Projects
Commit 045d555f authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Readers now return unique_ptr

parent a2c82cb6
Branches
Tags
No related merge requests found
...@@ -87,7 +87,7 @@ int main (int argc, char *argv[]) try { ...@@ -87,7 +87,7 @@ int main (int argc, char *argv[]) try {
typedef UGGrid<dim> GridType; typedef UGGrid<dim> GridType;
typedef BoundaryPatch<GridType::LevelGridView> LevelBoundaryPatch; typedef BoundaryPatch<GridType::LevelGridView> LevelBoundaryPatch;
GridType* grid; std::unique_ptr<GridType> grid;
if (parameterSet.hasKey("parFile")) { if (parameterSet.hasKey("parFile")) {
std::string parFile = parameterSet.get<std::string>("parFile"); std::string parFile = parameterSet.get<std::string>("parFile");
grid = AmiraMeshReader<GridType>::read(path + gridFile, PSurfaceBoundary<dim-1>::read(path + parFile)); grid = AmiraMeshReader<GridType>::read(path + gridFile, PSurfaceBoundary<dim-1>::read(path + parFile));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment