Commit Graph
18 Commits
Author SHA1 Message Date
Tzanio Kolev e4c2152419 Update Copyright to 2010-2025 2025-02-03 12:17:26 -08:00
Tzanio Kolev 87290fbf56 Update Copyright to 2010-2024 2024-01-27 13:06:49 -08:00
Tzanio Kolev 96e00dc815 Updated COPYRIGHT to 2010-2023 2023-03-11 16:58:18 -08:00
Tzanio 6d2530775b Extended copyright to 2022 2022-02-25 10:24:50 -08:00
Will Pazner 8f647fa4ef Add convenience function NumBase64Chars
This function returns the number of characters required to encode a given number
of bytes in base-64.
2021-07-01 10:40:04 -07:00
Will Pazner 5da228a103 Support reading VTK XML binary compressed data with multiple blocks
Both raw binary data and base-64 encoded are supported.

We previously only supported reading a single "block" of compressed data. VTK
format supports multiple blocks for semi-random access. Each block is
compressed separately, and the blocks are concatenated.

The header format is as follows (where header_t is either uint32_t or uint64_t
according to the VTK file metadata):

    header_t number_of blocks;
    header_t uncompressed_block_size;
    header_t uncompressed_last_block_size;
    header_t[] compressed_size;

The total uncompressed_block_size is bounded by (number_of_blocks -
1)*uncompressed_block_size + uncompressed_last_block_size.

The main complication is that the header contains a variable number of integers
(depending on the number of blocks), rather than a fixed number of 4 integers
as is the case when we are restricted to one block only.
2021-07-01 10:29:02 -07:00
Will Pazner 75cd6b4b6f Avoid signed-unsigned comparison 2021-04-01 14:14:32 -07:00
Will Pazner 59b1806e11 Add base-64 decoding 2021-04-01 13:27:17 -07:00
Adrien M. Bernede 04fb572359 Let's forget about 2020 2021-01-26 11:55:36 -08:00
Tzanio 05125e19d5 Removed a space 2020-03-09 15:36:41 -07:00
Tzanio ca55ef0217 The release number for mfem-4.1 is LLNL-CODE-806117 2020-03-02 17:18:46 -08:00
Tzanio d336039758 Updated license in several new files 2020-02-27 09:33:44 -08:00
Will Pazner 988e317854 Reorganize: move VTK code from mesh.cpp to vtk.cpp 2020-02-16 14:02:13 -08:00
Will Pazner 1a97440384 Add option for setting default compression level 2020-02-13 15:18:00 -08:00
Will Pazner 8779a96e95 Allow for different compression levels 2020-02-13 14:49:19 -08:00
Will Pazner a6fd497ce6 Allow for compressed binary ParaView output 2020-02-12 22:08:32 -08:00
Will Pazner 1fae44428a Minor simplifications to binary I/O 2020-02-05 07:36:11 -08:00
Will Pazner 14d2de68c8 Add some binary I/O utilities including base 64 2020-02-04 19:40:20 -08:00