From 210ef04152c6d33a64bd052918c9b501bf88cd8c Mon Sep 17 00:00:00 2001 From: Roelof Groenewald <40245517+roelof-groenewald@users.noreply.github.com> Date: Fri, 6 Jan 2023 12:30:07 -0800 Subject: add local flag to ParticleBoundaryBuffer::getNumParticlesInContainer (#3586) --- Source/Python/WarpXWrappers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Python/WarpXWrappers.cpp') 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, -- cgit v1.2.3