Unable to assemble form.
Hello,
I try to define a norm (res) in UFL:
element = FiniteElement(
u = TrialFunction(
v = TestFunction(
f = Coefficient(
kappa = 100
a = inner(grad(u), grad(v))*dx + kappa*kappa*
L = f*v*dx
res=inner(
And then, in the C++-Code, I take this:
Poisson:
and later
x=y*assemble(res);
But unfortunately, I get this message:
*** Error: Unable to assemble form.
*** Reason: Expecting a scalar form but rank is 2.
*** Where: This error was encountered inside assemble.cpp.
What should I do. Compiling works, it is a runtime error...
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Katharina Höhne for more information if necessary.