]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Merge pull request #14284 from peterrum/vtu_ascii
authorDavid Wells <drwells@email.unc.edu>
Tue, 20 Sep 2022 12:15:53 +0000 (08:15 -0400)
committerGitHub <noreply@github.com>
Tue, 20 Sep 2022 12:15:53 +0000 (08:15 -0400)
Add DataOutBase::CompressionLevel::ascii

1  2 
include/deal.II/base/data_out_base.h
source/base/data_out_base.cc

Simple merge
index 6ff70bee332c8de0acfdd82314463403ce0b7fed,60e90d8e47e1b3cd9559809ef208a9dc49ce0a12..a9377296c508e43788e6a2596e4b33d84cdeecb0
@@@ -5820,13 -5835,10 +5853,14 @@@ namespace DataOutBas
      else
        out << '.';
      out << "\n-->\n";
 -    out << "<VTKFile type=\"UnstructuredGrid\" version=\"0.1\"";
 +
 +    if (flags.write_higher_order_cells)
 +      out << "<VTKFile type=\"UnstructuredGrid\" version=\"2.2\"";
 +    else
 +      out << "<VTKFile type=\"UnstructuredGrid\" version=\"0.1\"";
  #ifdef DEAL_II_WITH_ZLIB
-     out << " compressor=\"vtkZLibDataCompressor\"";
+     if (flags.compression_level != CompressionLevel::plain_text)
+       out << " compressor=\"vtkZLibDataCompressor\"";
  #endif
  #ifdef DEAL_II_WORDS_BIGENDIAN
      out << " byte_order=\"BigEndian\"";

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.