]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix stupid mistake: one can't assume that blocks are less than 32k :-(
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 31 Jan 2011 17:28:57 +0000 (17:28 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 31 Jan 2011 17:28:57 +0000 (17:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@23279 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/data_out_base.cc

index 1a196e4d4a4e63cae012a6450505dc930b910123..d51d72482eda7dfdea40b08ade0debc3b9312db8 100644 (file)
@@ -239,7 +239,7 @@ namespace
                                         // now encode the compression header
        const uint32_t compression_header[4]
          = { 1,                                   /* number of blocks */
-             32768, /* size of block */
+             (uint32_t)(data.size() * sizeof(T)), /* size of block */
              (uint32_t)(data.size() * sizeof(T)), /* size of last block */
              (uint32_t)compressed_data_length  }; /* list of compressed sizes of blocks */
 

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.