I have a simulation in which I need to dump large amount of data, usually on the order ~50GB or so, while the code is running, which usually happens on the order of weeks. Right now, I am exporting the data as legacy ASCII VTK files.
I was wondering if there is any way to compress the data as it is being written to the disk so I can save some space (I need to run multiple versions of the code at the same time). I prefer something from the standard library if possible.
if you can use boost, look at the zlib filter compressor and decompressor