Skip to content
Snippets Groups Projects
Commit 05c30eee authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Look for 'path' and 'gridFile' parameters only if an unstructured grid is used

[[Imported from SVN: r9550]]
parent b875c2f9
No related branches found
No related tags found
No related merge requests found
......@@ -139,10 +139,6 @@ int main (int argc, char *argv[]) try
const bool instrumented = parameterSet.get<bool>("instrumented");
std::string resultPath = parameterSet.get("resultPath", "");
// read problem settings
std::string path = parameterSet.get<std::string>("path");
std::string gridFile = parameterSet.get<std::string>("gridFile");
// ///////////////////////////////////////
// Create the grid
// ///////////////////////////////////////
......@@ -158,8 +154,11 @@ int main (int argc, char *argv[]) try
array<unsigned int,dim> elements = parameterSet.get<array<unsigned int,dim> >("elements");
grid = StructuredGridFactory<GridType>::createCubeGrid(lower, upper, elements);
} else
} else {
std::string path = parameterSet.get<std::string>("path");
std::string gridFile = parameterSet.get<std::string>("gridFile");
grid = shared_ptr<GridType>(GmshReader<GridType>::read(path + "/" + gridFile));
}
grid->globalRefine(numLevels-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