aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles')
-rw-r--r--Source/Particles/ParticleBoundaryBuffer.H2
-rw-r--r--Source/Particles/ParticleBoundaryBuffer.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/Particles/ParticleBoundaryBuffer.H b/Source/Particles/ParticleBoundaryBuffer.H
index 9f6ad9066..6026c1610 100644
--- a/Source/Particles/ParticleBoundaryBuffer.H
+++ b/Source/Particles/ParticleBoundaryBuffer.H
@@ -43,7 +43,7 @@ public:
void printNumParticles () const;
- int getNumParticlesInContainer(const std::string species_name, int boundary);
+ int getNumParticlesInContainer(const std::string species_name, int boundary, bool local);
PinnedMemoryParticleContainer& getParticleBuffer(const std::string species_name, int boundary);
diff --git a/Source/Particles/ParticleBoundaryBuffer.cpp b/Source/Particles/ParticleBoundaryBuffer.cpp
index f1ee10593..a5c3bcd90 100644
--- a/Source/Particles/ParticleBoundaryBuffer.cpp
+++ b/Source/Particles/ParticleBoundaryBuffer.cpp
@@ -352,12 +352,12 @@ void ParticleBoundaryBuffer::gatherParticles (MultiParticleContainer& mypc,
}
int ParticleBoundaryBuffer::getNumParticlesInContainer(
- const std::string species_name, int boundary) {
+ const std::string species_name, int boundary, bool local) {
auto& buffer = m_particle_containers[boundary];
auto index = WarpX::GetInstance().GetPartContainer().getSpeciesID(species_name);
- if (buffer[index].isDefined()) return buffer[index].TotalNumberOfParticles(false);
+ if (buffer[index].isDefined()) return buffer[index].TotalNumberOfParticles(false, local);
else return 0;
}