Skip to content

Commit

Permalink
compiler: Fix decomposition dtype
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeLeibowitz committed Oct 25, 2024
1 parent 2ecf48a commit 01af9bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions devito/mpi/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,10 @@ def __init__(self, shape, dimensions, input_comm=None, topology=None):
self._topology = tuple(1 for _ in range(len(shape)))

# The domain decomposition
self._decomposition = [Decomposition(np.array_split(range(i), j), c)
for i, j, c in zip(shape, self.topology, self.mycoords)]
self._decomposition = [
Decomposition(np.array_split(np.arange(i, dtype=d.dtype), j), c)
for i, j, c, d in zip(shape, self.topology, self.mycoords, dimensions)
]

@property
def comm(self):
Expand Down

0 comments on commit 01af9bd

Please sign in to comment.