Skip to content

Commit

Permalink
Merge pull request #498 from gamdow/pow_to_mul_fix
Browse files Browse the repository at this point in the history
fix for non-integer in pow_to_mul
  • Loading branch information
FabioLuporini authored Feb 24, 2018
2 parents 6896b27 + 8f01e3f commit 2792096
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 2792096

Please sign in to comment.