Skip to content

Commit

Permalink
dsl: Tweaked uxreplace
Browse files Browse the repository at this point in the history
  • Loading branch information
EdCaunt committed Nov 3, 2023
1 parent f86178b commit e95a51b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion devito/symbolics/manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ def _uxreplace(expr, rule):

if not args:
args = aargs
elif len(args) != len(aargs):
elif len(args) < len(aargs):
raise ValueError("%s args provided, but %s args required"
% (len(args), len(aargs)))
else:
aflag = False # Didn't actually change args

try:
v = {i: getattr(expr, i) for i in expr.__rkwargs__}
Expand Down

0 comments on commit e95a51b

Please sign in to comment.