Skip to content

Commit

Permalink
misc: Improve code style
Browse files Browse the repository at this point in the history
  • Loading branch information
EdCaunt committed Jan 9, 2025
1 parent 02bee41 commit 8c37150
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions devito/mpi/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,17 +491,14 @@ class SubDistributor(DenseDistributor):
def __init__(self, subdomain):
# Does not keep reference to the SubDomain since SubDomain will point to
# this SubDistributor and Distributor does not point to the Grid

super().__init__(subdomain.shape, subdomain.dimensions)

self._subdomain_name = subdomain.name

self._dimension_map = frozendict({pd: sd for pd, sd
in zip(subdomain.grid.dimensions,
subdomain.dimensions)})

self._parent = subdomain.grid.distributor

self._comm = self.parent.comm
self._topology = self.parent.topology

Expand All @@ -520,7 +517,7 @@ def interval_bounds(interval):
# Interval containing two or more indices. Min and max are ends.
return interval.start, interval.end
else:
# Interval where start == end defaults to FiniteSet.
# Interval where start == end defaults to FiniteSet
# Repeat this value for min and max
return interval.args[0], interval.args[0]

Expand Down

0 comments on commit 8c37150

Please sign in to comment.