Skip to content

Commit

Permalink
compiler: Generate deterministic code for overlap mode
Browse files Browse the repository at this point in the history
compiler: Switch to filter_sorted
  • Loading branch information
georgebisbas committed Feb 15, 2024
1 parent 747c0fe commit 81b677b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions devito/mpi/halo_scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from devito.ir.support import Forward, Scope
from devito.symbolics.manipulation import _uxreplace_registry
from devito.tools import (Reconstructable, Tag, as_tuple, filter_ordered, flatten,
frozendict, is_integer)
frozendict, is_integer, filter_sorted)
from devito.types import Grid

__all__ = ['HaloScheme', 'HaloSchemeEntry', 'HaloSchemeException', 'HaloTouch']
Expand Down Expand Up @@ -287,7 +287,8 @@ def omapper(self):
ranks*, so the output of this method is guaranteed to be consistent
across *all MPI ranks*.
"""
items = [((d, CENTER), (d, LEFT), (d, RIGHT)) for d in self.dimensions]
items = [((d, CENTER), (d, LEFT), (d, RIGHT))
for d in filter_sorted(self.dimensions)]

processed = []
for item in product(*items):
Expand Down

0 comments on commit 81b677b

Please sign in to comment.