Skip to content
Snippets Groups Projects
Commit d37e906f authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

Grid are loaded in two places -- allow gmsh grids for both of them

[[Imported from SVN: r8973]]
parent f48b5993
No related branches found
No related tags found
No related merge requests found
......@@ -267,7 +267,10 @@ int main (int argc, char *argv[]) try
upperRight,
elements);
} else {
grid = shared_ptr<GridType>(AmiraMeshReader<GridType>::read(parameterSet.get<std::string>("gridFile")));
if (gridFileName.rfind(".msh")!=std::string::npos)
grid = shared_ptr<GridType>(GmshReader<GridType>::read(gridFileName));
else
grid = shared_ptr<GridType>(AmiraMeshReader<GridType>::read(gridFileName));
}
grid->globalRefine(i-1);
......
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