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

for debugging/visualization: write the result after each load step

[[Imported from SVN: r9271]]
parent ae20b514
No related branches found
No related tags found
No related merge requests found
......@@ -201,6 +201,9 @@ int main (int argc, char *argv[]) try
// Main homotopy loop
////////////////////////////////////////////////////////
// Output initial iterate (of homotopy loop)
CosseratVTKWriter<GridType>::write(*grid,x, resultPath + "cosserat_homotopy_0");
for (int i=0; i<numHomotopySteps; i++) {
double homotopyParameter = (i+1)*(1.0/numHomotopySteps);
......@@ -274,6 +277,11 @@ int main (int argc, char *argv[]) try
x = solver.getSol();
// Output result of each homotopy step
std::stringstream iAsAscii;
iAsAscii << i+1;
CosseratVTKWriter<GridType>::write(*grid,x, resultPath + "cosserat_homotopy_" + iAsAscii.str());
}
// //////////////////////////////
......
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