Skip to content

Commit

Permalink
Reverse duped comm dict
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Jan 12, 2024
1 parent 87d227e commit 3a00f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyop2/mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def _free_comms():
debug("STATE2")
debug(pyop2_comm_status())
debug(f"Freeing comms in list (length {len(_DUPED_COMM_DICT)})")
for key in sorted(_DUPED_COMM_DICT.keys()):
for key in sorted(_DUPED_COMM_DICT.keys(), reverse=True):
comm = _DUPED_COMM_DICT[key]
if comm != MPI.COMM_NULL:
refcount = comm.Get_attr(refcount_keyval)
Expand Down

0 comments on commit 3a00f86

Please sign in to comment.