Skip to content

Commit a549c7d

Browse files
committed
Use Free for older version of mpi4py
1 parent 62a3da9 commit a549c7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mpisppy/cylinders/spwindow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __init__(self, my_fields: dict, strata_comm: MPI.Comm, field_order=None):
112112
self.buffer_length = total_buffer_length
113113
self.window = MPI.Win.Allocate(window_size_bytes, MPI.DOUBLE.size, comm=strata_comm)
114114
# ensure the memory allocated for the window is freed
115-
self._window_finalizer = weakref.finalize(self, self.window.free)
115+
self._window_finalizer = weakref.finalize(self, self.window.Free)
116116
self.buff = np.ndarray(dtype="d", shape=(total_buffer_length,), buffer=self.window.tomemory())
117117
self.buff[:] = np.nan
118118

0 commit comments

Comments
 (0)