FFC generates the wrong code for negative powers with tensor representation

Issue #7 resolved
Martin Sandve Alnæs created an issue

Tensor representation generates wrong code for this expression:

u = Constant(triangle)
#q = (1 / u)**2 # Fails as it should (no division handler)
q = u**(-2) # Produces wrong code!
M = q*dx

It should detect the problem and fail as the first case.

Comments (2)

  1. Log in to comment