From 0c7ec3d1d0942f6fcdc8a6b7d152d2d0969e2390 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 20 Apr 2015 15:28:04 -0400 Subject: [PATCH] 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 --- examples/step-40/step-40.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } } -- 2.39.5