From 9f8bc34267c08858fe7e1038ff552bb60fe5392c Mon Sep 17 00:00:00 2001 From: David Wells Date: Wed, 25 Apr 2018 16:16:27 -0400 Subject: [PATCH] Use VTU output in step-15. --- examples/step-15/step-15.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/step-15/step-15.cc b/examples/step-15/step-15.cc index 158a799a41..e5682dc6eb 100644 --- a/examples/step-15/step-15.cc +++ b/examples/step-15/step-15.cc @@ -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); } } } -- 2.39.5