diff --git a/Src/Particle/AMReX_NeighborParticles.H b/Src/Particle/AMReX_NeighborParticles.H index 1b7d01d7a95..9b3f01d4318 100644 --- a/Src/Particle/AMReX_NeighborParticles.H +++ b/Src/Particle/AMReX_NeighborParticles.H @@ -309,21 +309,22 @@ public: calcCommSize(); } - void Redistribute (int lev_min=0, int lev_max=-1, int nGrow=0, int local=0) + void Redistribute (int lev_min=0, int lev_max=-1, int nGrow=0, int local=0, + bool remove_negative=true) { clearNeighbors(); ParticleContainer - ::Redistribute(lev_min, lev_max, nGrow, local); + ::Redistribute(lev_min, lev_max, nGrow, local, remove_negative); } - void RedistributeLocal () + void RedistributeLocal (bool remove_negative=true) { const int lev_min = 0; const int lev_max = 0; const int nGrow = 0; const int local = 1; clearNeighbors(); - this->Redistribute(lev_min, lev_max, nGrow, local); + this->Redistribute(lev_min, lev_max, nGrow, local, remove_negative); } #ifdef AMREX_USE_GPU