diff options
author | 2023-01-06 12:30:07 -0800 | |
---|---|---|
committer | 2023-01-06 12:30:07 -0800 | |
commit | 210ef04152c6d33a64bd052918c9b501bf88cd8c (patch) | |
tree | bc6e3c33b0871b0a55b5f8d8f990d9b882ba8b3b /Source/Python | |
parent | 8fb44c9eb40daada432e77963f71b3c99bcdcd3e (diff) | |
download | WarpX-210ef04152c6d33a64bd052918c9b501bf88cd8c.tar.gz WarpX-210ef04152c6d33a64bd052918c9b501bf88cd8c.tar.zst WarpX-210ef04152c6d33a64bd052918c9b501bf88cd8c.zip |
add local flag to ParticleBoundaryBuffer::getNumParticlesInContainer (#3586)
Diffstat (limited to 'Source/Python')
-rw-r--r-- | Source/Python/WarpXWrappers.H | 2 | ||||
-rw-r--r-- | Source/Python/WarpXWrappers.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/Python/WarpXWrappers.H b/Source/Python/WarpXWrappers.H index 708a97cc3..0c2002d65 100644 --- a/Source/Python/WarpXWrappers.H +++ b/Source/Python/WarpXWrappers.H @@ -102,7 +102,7 @@ extern "C" { amrex::Real warpx_sumParticleCharge(const char* char_species_name, const bool local); - int warpx_getParticleBoundaryBufferSize(const char* species_name, int boundary); + int warpx_getParticleBoundaryBufferSize(const char* species_name, int boundary, bool local); int** warpx_getParticleBoundaryBufferScrapedSteps( const char* species_name, int boundary, int lev, 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, |