From e5db1034f2fe2be45046f474198804c560d7619b Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Thu, 27 Jun 2013 15:07:38 +0000 Subject: [PATCH] for debugging/visualization: write the result after each load step [[Imported from SVN: r9271]] --- cosserat-continuum.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cosserat-continuum.cc b/cosserat-continuum.cc index d4b68675..1eb2d265 100644 --- a/cosserat-continuum.cc +++ b/cosserat-continuum.cc @@ -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()); + } // ////////////////////////////// -- GitLab