← Back to team overview

dolfin team mailing list archive

[Bug 663949] Re: Form assembly crashes for derivative without 3rd argument

 

We need to implement our own derivative in PyDOLFIN, as the
automatically generated trial function is a pure ufl one.

If we add a derivative function in PyDOLFIN we should be able to extract
a FunctionSpace from either u or F, and instantiate a
dolfin.TrialFunction. I am not familiar to the innerworkings of
ufl.derivative so there might be caveats with this solution.

Johan

-- 
Form assembly crashes for derivative without 3rd argument
https://bugs.launchpad.net/bugs/663949
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.

Status in DOLFIN: New

Bug description:

Reproduce with:

mesh = UnitSquare(1, 1)
V = FunctionSpace(mesh, "CG", 1)
u = Function(V)
v = TestFunction(V)
F = u*v*dx
a = derivative(F, u)
A = assemble(a)





References