From: Wolfgang Bangerth Date: Mon, 31 Jan 2011 17:28:57 +0000 (+0000) Subject: Fix stupid mistake: one can't assume that blocks are less than 32k :-( X-Git-Tag: v8.0.0~4417 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52389d4636a456885fae5ef82438f54c9e25be3a;p=dealii.git Fix stupid mistake: one can't assume that blocks are less than 32k :-( git-svn-id: https://svn.dealii.org/trunk@23279 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/base/data_out_base.cc b/deal.II/source/base/data_out_base.cc index 1a196e4d4a..d51d72482e 100644 --- a/deal.II/source/base/data_out_base.cc +++ b/deal.II/source/base/data_out_base.cc @@ -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 */