From 8c3715024436eb92bfe481f458ea4d926e767a5a Mon Sep 17 00:00:00 2001 From: Edward Caunt Date: Thu, 9 Jan 2025 09:44:50 +0000 Subject: [PATCH] misc: Improve code style --- devito/mpi/distributed.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/devito/mpi/distributed.py b/devito/mpi/distributed.py index 4325055247..4d2c7ff3bd 100644 --- a/devito/mpi/distributed.py +++ b/devito/mpi/distributed.py @@ -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 @@ -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]