23 #include "openPMD/ParticlePatches.hpp" 24 #include "openPMD/Record.hpp" 25 #include "openPMD/backend/Attributable.hpp" 26 #include "openPMD/backend/Container.hpp" 56 bool dirtyRecursive()
const;
65 void operator()(
T &ret)
67 ret.particlePatches.linkHierarchy(ret.writable());
69 auto &np = ret.particlePatches[
"numParticles"];
70 auto &npc = np[RecordComponent::SCALAR];
71 npc.resetDataset(
Dataset(determineDatatype<uint64_t>(), {1}));
72 npc.parent() = np.parent();
73 auto &npo = ret.particlePatches[
"numParticlesOffset"];
74 auto &npoc = npo[RecordComponent::SCALAR];
75 npoc.resetDataset(
Dataset(determineDatatype<uint64_t>(), {1}));
76 npoc.parent() = npo.parent();
Definition: ParticlePatches.hpp:31
Definition: Dataset.hpp:35
Container Element Creation Policy.
Definition: Attributable.hpp:47
Logical compilation of data from one snapshot (e.g.
Definition: Iteration.hpp:126
Public definitions of openPMD-api.
Parameters recursively passed through the openPMD hierarchy when flushing.
Definition: AbstractIOHandler.hpp:84
Definition: ParticleSpecies.hpp:33
Map-like container that enforces openPMD requirements and handles IO.
Definition: Container.hpp:131