Skip to content

Commit

Permalink
add explaining comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mcw92 authored Sep 13, 2024
1 parent 4edef21 commit 6db11b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions propulate/propulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ def propulate(self, logging_interval: int = 10, debug: int = -1) -> None:

def _intra_send_cleanup(self) -> None:
"""Delete all send buffers that have been sent."""
# Test for requests to complete.
completed = MPI.Request.Testsome(self.intra_requests)
# Remove requests and buffers of complete send operations.
self.intra_requests = [r for i, r in enumerate(self.intra_requests) if i not in completed]
Expand Down

0 comments on commit 6db11b3

Please sign in to comment.