From: David Wells Date: Wed, 25 Apr 2018 20:16:27 +0000 (-0400) Subject: Use VTU output in step-15. X-Git-Tag: v9.0.0-rc1~107^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f8bc34267c08858fe7e1038ff552bb60fe5392c;p=dealii.git Use VTU output in step-15. --- 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); } } }