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

accept a result path argument

[[Imported from SVN: r1623]]
parent 4a624607
No related branches found
No related tags found
No related merge requests found
...@@ -80,6 +80,7 @@ int main (int argc, char *argv[]) try ...@@ -80,6 +80,7 @@ int main (int argc, char *argv[]) try
const double baseTolerance = parameterSet.get<double>("baseTolerance"); const double baseTolerance = parameterSet.get<double>("baseTolerance");
const double initialTrustRegionRadius = parameterSet.get<double>("initialTrustRegionRadius"); const double initialTrustRegionRadius = parameterSet.get<double>("initialTrustRegionRadius");
const double damping = parameterSet.get<double>("damping"); const double damping = parameterSet.get<double>("damping");
std::string resultPath = parameterSet.get("resultPath", "");
// Problem settings // Problem settings
std::string path = parameterSet.get<string>("path"); std::string path = parameterSet.get<string>("path");
...@@ -559,9 +560,9 @@ int main (int argc, char *argv[]) try ...@@ -559,9 +560,9 @@ int main (int argc, char *argv[]) try
// ////////////////////////////// // //////////////////////////////
LeafAmiraMeshWriter<GridType> amiraMeshWriter(grid); LeafAmiraMeshWriter<GridType> amiraMeshWriter(grid);
amiraMeshWriter.addVertexData(x3d, grid.leafIndexSet()); amiraMeshWriter.addVertexData(x3d, grid.leafIndexSet());
amiraMeshWriter.write("grid.result"); amiraMeshWriter.write(resultPath + "grid.result");
writeRod(rodX, "rod3d.result"); writeRod(rodX, resultPath + "rod3d.result");
} catch (Exception e) { } catch (Exception e) {
......
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