Skip to content

Commit

Permalink
Merge pull request #2328 from devitocodes/inline-coeffs-if-unrolled
Browse files Browse the repository at this point in the history
compiler: Tweak Weights.value
  • Loading branch information
mloubout authored Mar 11, 2024
2 parents d34ce85 + 514ab1b commit 32308f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devito/finite_differences/differentiable.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def value(self, idx):
except TypeError:
# E.g., `idx` is a tuple
v = self._npweights[idx]
if v.is_Number:
if v.is_Number or v.is_Indexed:
return sympy.sympify(v)
else:
return self[idx]
Expand Down

0 comments on commit 32308f4

Please sign in to comment.