← Back to team overview

ffc team mailing list archive

Getting NoneType from dot

 

1) What is wrong with this form?
2) If it's a user mistake and not an ffc bug, ffc should raise an
exception and not return None


from ffc import *

fe = FiniteElement("Lagrange", "triangle", 1)

v  = TestFunction(fe)
u  = TrialFunction(fe)
w  = Function(fe)

Dw = grad(w)
Du = grad(u)

uDw = dot(u, Dw)

print u
print Dw
print uDw # None!

wDu = dot(w, Du)

a = dot(v, uDw+wDu) * dx



-- 
Martin


Follow ups