From 52389d4636a456885fae5ef82438f54c9e25be3a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 31 Jan 2011 17:28:57 +0000 Subject: [PATCH] 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 --- deal.II/source/base/data_out_base.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.39.5