From: Timo Heister Date: Mon, 20 Apr 2015 19:28:04 +0000 (-0400) Subject: step-40: fix pvtu filename X-Git-Tag: v8.3.0-rc1~226^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F855%2Fhead;p=dealii.git step-40: fix pvtu filename Paraview gets confused by the additional .0000 numbering and refuses to load all .pvtu files together. Fix this by the more sensible naming of solution-XX.pvtu --- diff --git a/examples/step-40/step-40.cc b/examples/step-40/step-40.cc index 15ed3db10b..7f17aea51b 100644 --- a/examples/step-40/step-40.cc +++ b/examples/step-40/step-40.cc @@ -573,7 +573,7 @@ namespace Step40 data_out.build_patches (); // The next step is to write this data to disk. We choose file names of - // the form solution-XX-PPPP.vtu where XX + // the form solution-XX.PPPP.vtu where XX // indicates the refinement cycle, PPPP refers to the // processor number (enough for up to 10,000 processors, though we hope // that nobody ever tries to generate this much data -- you would likely @@ -606,7 +606,9 @@ namespace Step40 Utilities::int_to_string (i, 4) + ".vtu"); - std::ofstream master_output ((filename + ".pvtu").c_str()); + std::ofstream master_output (("solution-" + + Utilities::int_to_string (cycle, 2) + + ".pvtu").c_str()); data_out.write_pvtu_record (master_output, filenames); } }