Skip to content

Commit

Permalink
fix for non-integer in pow_to_mul
Browse files Browse the repository at this point in the history
  • Loading branch information
gamdow committed Feb 22, 2018
1 parent 6896b27 commit 8f01e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devito/symbolics/manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def pow_to_mul(expr):
return expr
elif expr.is_Pow:
base, exp = expr.as_base_exp()
if exp <= 0:
if exp <= 0 or not exp.is_integer:
# Cannot handle powers containing non-integer non-positive exponents
return expr
else:
Expand Down

0 comments on commit 8f01e3f

Please sign in to comment.