Skip to content

Commit

Permalink
misc: Tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
EdCaunt committed Jan 31, 2025
1 parent 0ab1e60 commit df6ab6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion devito/data/decomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def index_glb_to_loc(self, *args, rel=True):
glb_min = 0
glb_max = self.glb_max - self.glb_min

base = loc_abs_min if rel is True else 0
base = loc_abs_min if rel else 0
top = loc_abs_max

if len(args) == 1:
Expand Down
2 changes: 1 addition & 1 deletion devito/mpi/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def glb_to_loc(self, dim, *args, strict=True):
among the Distributor Dimensions.
"""
if dim not in self.dimensions:
if strict is True:
if strict:
raise ValueError("`%s` must be one of the Distributor dimensions" % dim)
else:
return args[0]
Expand Down

0 comments on commit df6ab6b

Please sign in to comment.