diff --git a/CHANGELOG.md b/CHANGELOG.md index 4224702f0da9..2775c9a4dea9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,8 +3,9 @@ ## Current develop ### Added (new features/APIs/variables/...) -- [[PR1081]](https://github.com/parthenon-hpc-lab/parthenon/pull/1081) Add GetSize and GetIndex to sparse pack -- [[PR1020]](https://github.com/parthenon-hpc-lab/parthenon/pull/1020) Add bi- and trilinear interpolation routines +- [[PR 1084]](https://github.com/parthenon-hpc-lab/parthenon/pull/1084) Properly free swarm boundary MPI requests +- [[PR 1020]](https://github.com/parthenon-hpc-lab/parthenon/pull/1020) Add bi- and trilinear interpolation routines +- [[PR 1081]](https://github.com/parthenon-hpc-lab/parthenon/pull/1081) Add GetSize and GetIndex to sparse pack - [[PR 1026]](https://github.com/parthenon-hpc-lab/parthenon/pull/1026) Particle BCs without relocatable device code - [[PR 1037]](https://github.com/parthenon-hpc-lab/parthenon/pull/1037) Add SwarmPacks - [[PR 1068]](https://github.com/parthenon-hpc-lab/parthenon/pull/1068) Add ability to dump sparse pack contents as a string diff --git a/src/interface/swarm_comms.cpp b/src/interface/swarm_comms.cpp index 67bff0a69565..d63a4e75a23a 100644 --- a/src/interface/swarm_comms.cpp +++ b/src/interface/swarm_comms.cpp @@ -644,7 +644,9 @@ void Swarm::ResetCommunication() { #ifdef MPI_PARALLEL for (int n = 0; n < pmb->neighbors.size(); n++) { NeighborBlock &nb = pmb->neighbors[n]; - vbswarm->bd_var_.req_send[nb.bufid] = MPI_REQUEST_NULL; + if (vbswarm->bd_var_.req_send[nb.bufid] != MPI_REQUEST_NULL) { + MPI_Request_free(&(vbswarm->bd_var_.req_send[nb.bufid])); + } } #endif