Absent Coefficient in Linear Form
Hello
I have a ufl file like so (for the Heat Equation with time-stepping via the theta-method):
element = FiniteElement(
v = TestFunction(
u = TrialFunction(
kappa = Coefficient(
u_old = Coefficient(
f = Coefficient(
dt = ....
a = u*v*dx + theta*dt*
L = ((u_old + dt*f)*v - (1-theta)
The problem is that I can't assign kappa to L.kappa in the linear form, i.e.,
L.kappa = kappa
This is fine though for the Bilinear form.
On examining the generated header file, it turns out that the LinearForm class has no member kappa which is exactly the error message given.
What am I doing wrong?
Best wishes
Pietro
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Pietro Maximoff
- Solved:
- Last query:
- Last reply: