]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use VTU output in step-15.
authorDavid Wells <wellsd2@rpi.edu>
Wed, 25 Apr 2018 20:16:27 +0000 (16:16 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Thu, 26 Apr 2018 03:19:23 +0000 (23:19 -0400)
examples/step-15/step-15.cc

index 158a799a41a0ba18b494ae44ef300a9909818903..e5682dc6ebf989e334e4bb5bed46eaaec5d3136a 100644 (file)
@@ -703,9 +703,12 @@ namespace Step15
         const std::string filename = "solution-" +
                                      Utilities::int_to_string (refinement, 2) +
                                      ".vtk";
-        std::ofstream output (filename.c_str());
-        data_out.write_vtk (output);
-
+        std::ofstream output (filename);
+        DataOutBase::VtkFlags vtk_flags;
+        vtk_flags.compression_level =
+          DataOutBase::VtkFlags::ZlibCompressionLevel::best_speed;
+        data_out.set_flags(vtk_flags);
+        data_out.write_vtu (output);
       }
   }
 }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.