From 272905ca8c0c52fa7e4ee51333e2cf5e84d3a0bb Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 30 Dec 2022 15:00:49 -0700 Subject: [PATCH] Get rid of the VtuStream class. --- source/base/data_out_base.cc | 76 ------------------------------------ 1 file changed, 76 deletions(-) diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index 28bfa373c3..5f14c6285b 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -1314,40 +1314,6 @@ namespace }; - class VtuStream : public StreamBase - { - public: - VtuStream(std::ostream &stream, const DataOutBase::VtkFlags &flags); - - /** - * Write a high-order cell type, i.e., a Lagrange cell - * in the VTK terminology. - * The connectivity order of the points is given in the - * @p connectivity array, which are offset - * by the global index @p start. - */ - template - void - write_high_order_cell(const unsigned int start, - const std::vector &connectivity); - - void - flush_cells(); - - private: - /** - * A list of vertices and cells, to be used in case we want to compress the - * data. - * - * The data types of these arrays needs to match what we print in the - * XML-preamble to the respective parts of VTU files (e.g. Float32 and - * Int32) - */ - std::vector vertices; - std::vector cells; - }; - - //----------------------------------------------------------------------// DXStream::DXStream(std::ostream &out, const DataOutBase::DXFlags &f) @@ -1796,48 +1762,6 @@ namespace stream << '\t' << start + c; stream << '\n'; } - - - - VtuStream::VtuStream(std::ostream &out, const DataOutBase::VtkFlags &f) - : StreamBase(out, f) - {} - - - - template - void - VtuStream::write_high_order_cell(const unsigned int start, - const std::vector &connectivity) - { - if (deal_ii_with_zlib && - (flags.compression_level != DataOutBase::CompressionLevel::plain_text)) - { - for (const auto &c : connectivity) - cells.push_back(start + c); - } - else - { - for (const auto &c : connectivity) - stream << '\t' << start + c; - stream << '\n'; - } - } - - void - VtuStream::flush_cells() - { - if (deal_ii_with_zlib && - (flags.compression_level != DataOutBase::CompressionLevel::plain_text)) - { - // compress the data we have in memory and write them to the stream. - // then release the data - *this << vtu_stringize_array(cells, - flags.compression_level, - stream.precision()); - cells.clear(); - } - } } // namespace -- 2.39.5