Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDF5 filters (compression) #1644

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from
31 changes: 30 additions & 1 deletion examples/7_extended_write_serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@ int main()
}
]
}
},
"hdf5": {
"dataset": {
"chunks": "auto",
"permanent_filters": {
"id": "fletcher32",
"flags": "optional"
}
}
}
})END";
d.options = datasetConfig;
Expand All @@ -144,7 +153,27 @@ int main()
d = io::Dataset(dtype, mpiDims);
electrons["positionOffset"]["x"].resetDataset(d);

auto dset = io::Dataset(io::determineDatatype<uint64_t>(), {2});
auto dset = io::Dataset(
io::determineDatatype<uint64_t>(),
{2},
R"(
{
"hdf5": {
"dataset": {
"chunks": "auto",
"permanent_filters": [
{
"aggression": 5,
"type": "zlib"
},
{
"flags": "MANDATORY",
"id": "shuffle"
}
]
}
}
})");
electrons.particlePatches["numParticles"].resetDataset(dset);
electrons.particlePatches["numParticlesOffset"].resetDataset(dset);

Expand Down
Loading
Loading