aboutsummaryrefslogtreecommitdiff
path: root/Source/Python/WarpXWrappers.cpp
diff options
context:
space:
mode:
authorGravatar Roelof Groenewald <40245517+roelof-groenewald@users.noreply.github.com> 2023-01-06 12:30:07 -0800
committerGravatar GitHub <noreply@github.com> 2023-01-06 12:30:07 -0800
commit210ef04152c6d33a64bd052918c9b501bf88cd8c (patch)
treebc6e3c33b0871b0a55b5f8d8f990d9b882ba8b3b /Source/Python/WarpXWrappers.cpp
parent8fb44c9eb40daada432e77963f71b3c99bcdcd3e (diff)
downloadWarpX-210ef04152c6d33a64bd052918c9b501bf88cd8c.tar.gz
WarpX-210ef04152c6d33a64bd052918c9b501bf88cd8c.tar.zst
WarpX-210ef04152c6d33a64bd052918c9b501bf88cd8c.zip
add local flag to ParticleBoundaryBuffer::getNumParticlesInContainer (#3586)
Diffstat (limited to 'Source/Python/WarpXWrappers.cpp')
-rw-r--r--Source/Python/WarpXWrappers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp
index 05a2a1061..f2c022365 100644
--- a/Source/Python/WarpXWrappers.cpp
+++ b/Source/Python/WarpXWrappers.cpp
@@ -565,11 +565,11 @@ namespace
return myspc.sumParticleCharge(local);
}
- int warpx_getParticleBoundaryBufferSize(const char* species_name, int boundary)
+ int warpx_getParticleBoundaryBufferSize(const char* species_name, int boundary, bool local)
{
const std::string name(species_name);
auto& particle_buffers = WarpX::GetInstance().GetParticleBoundaryBuffer();
- return particle_buffers.getNumParticlesInContainer(species_name, boundary);
+ return particle_buffers.getNumParticlesInContainer(species_name, boundary, local);
}
int** warpx_getParticleBoundaryBufferScrapedSteps(const char* species_name, int boundary, int lev,