Skip to content

Commit

Permalink
Use ULONG for particle patches (#1710)
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel authored Jan 14, 2025
1 parent 2e246cc commit 8771a99
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/12_span_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>({0}, {1}).currentBuffer().data() =
42;
patches[record].resetDataset({Datatype::ULONG, {1}});
*patches[record]
.storeChunk<unsigned long>({0}, {1})
.currentBuffer()
.data() = 42;
}

Record electronPositions = iteration.particles["e"]["position"];
Expand Down

0 comments on commit 8771a99

Please sign in to comment.