]> https://gitweb.dealii.org/ - dealii.git/commitdiff
No need to futz with the VTK flags in step-15. 11917/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 15 Mar 2021 17:06:00 +0000 (18:06 +0100)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 15 Mar 2021 17:06:20 +0000 (18:06 +0100)
examples/step-15/step-15.cc

index f633133420295e3a0edccb186e5352869201c57a..372dbd1083960b9cef6e53f2011ae6a694a27952 100644 (file)
@@ -676,13 +676,10 @@ namespace Step15
         data_out.add_data_vector(present_solution, "solution");
         data_out.add_data_vector(newton_update, "update");
         data_out.build_patches();
+
         const std::string filename =
           "solution-" + Utilities::int_to_string(refinement, 2) + ".vtk";
-        std::ofstream         output(filename);
-        DataOutBase::VtkFlags vtk_flags;
-        vtk_flags.compression_level =
-          DataOutBase::VtkFlags::ZlibCompressionLevel::best_speed;
-        data_out.set_flags(vtk_flags);
+        std::ofstream output(filename);
         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.