Skip to content

Commit

Permalink
mpi: Patch MPIMsg construction
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed May 31, 2023
1 parent aca1873 commit de9ace3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devito/mpi/routines.py
Original file line number Diff line number Diff line change
Expand Up @@ -1164,11 +1164,11 @@ def _as_number(self, v, args):
sanity checks to ensure we get a Symbol iff the Msg is for an Array.
"""
if is_integer(v):
return v
return int(v)
else:
assert self.target.c0.is_Array
assert args is not None
return v.subs(args)
return int(v.subs(args))

def _arg_defaults(self, allocator, alias, args=None):
# Lazy initialization if `allocator` is necessary as the `allocator`
Expand Down

0 comments on commit de9ace3

Please sign in to comment.