Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMR communication and destruction #355

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
1 change: 1 addition & 0 deletions src/bvals/bvals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ void MeshBoundaryValues::InitializeBuffers(const int nvar) {
particles::ParticlesBoundaryValues::ParticlesBoundaryValues(
particles::Particles *pp, ParameterInput *pin) :
sendlist("sendlist",1),
destroylist("destroylist",1),
#if MPI_PARALLEL_ENABLED
prtcl_rsendbuf("rsend",1),
prtcl_rrecvbuf("rrecv",1),
Expand Down
3 changes: 2 additions & 1 deletion src/bvals/bvals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,9 @@ class ParticlesBoundaryValues {
ParticlesBoundaryValues(particles::Particles *ppart, ParameterInput *pin);
~ParticlesBoundaryValues();

int nprtcl_send, nprtcl_recv;
int nprtcl_send, nprtcl_recv, nprtcl_destroy;
DualArray1D<ParticleLocationData> sendlist;
DualArray1D<ParticleLocationData> destroylist;

// Data needed to count number of messages and particles to send between ranks
int nsends; // number of MPI sends to neighboring ranks on this rank
Expand Down
Loading