From c53c7c8e8195c3da3093bbeb01ed6f6bcc6d46ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Tue, 14 Jan 2025 14:05:34 +0100 Subject: [PATCH] Use ULONG for particle patches --- examples/12_span_write.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/12_span_write.cpp b/examples/12_span_write.cpp index e2efcffdaa..201e062ff9 100644 --- a/examples/12_span_write.cpp +++ b/examples/12_span_write.cpp @@ -44,9 +44,11 @@ void span_write(std::string const &filename) } for (auto record : {"numParticlesOffset", "numParticles"}) { - patches[record].resetDataset({Datatype::INT, {1}}); - *patches[record].storeChunk({0}, {1}).currentBuffer().data() = - 42; + patches[record].resetDataset({Datatype::ULONG, {1}}); + *patches[record] + .storeChunk({0}, {1}) + .currentBuffer() + .data() = 42; } Record electronPositions = iteration.particles["e"]["position"];