Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guj committed Jan 22, 2024
1 parent 0bf1636 commit f6a8e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Extern/openPMD-api/AMReX_ParticlesOPENPMD.H
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void CountParticles()
for (auto currentLevel = 0; currentLevel <= this->finestLevel(); currentLevel++)
{
// numParticles in this processor
auto numParticles = static_cast<long long>(this->NumberOfParticlesAtLevel(currentLevel, false, false));
auto numParticles = static_cast<long long>(this->NumberOfParticlesAtLevel(currentLevel, true, true));

unsigned long long offset=0; // offset of this level
unsigned long long sum=0; // numParticles in this level (sum from all processors)
Expand Down

0 comments on commit f6a8e7d

Please sign in to comment.