Skip to content

Commit

Permalink
Merge pull request #1084 from parthenon-hpc-lab/brryan/fix_swarm_mpi_…
Browse files Browse the repository at this point in the history
…reqs

Properly free swarm boundary MPI requests
  • Loading branch information
pdmullen authored May 21, 2024
2 parents 1bb0bd4 + 9094e3f commit f9bb863
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/interface/swarm_comms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f9bb863

Please sign in to comment.