dolfin split vs dolfin_adjoint split
Hello, the following lines of code are working for me only with dolfin, but not with dolfin_adjoint:
from dolfin import *
M=UnitSquareMes
V = VectorFunctionS
Q = FunctionSpace(
Z = MixedFunctionSp
PHI = Function(Z)
u,p=PHI.
u0,u1=u.
If I also import dolfin adjoint this way:
from dolfin import *
from dolfin_adjoint import *
Without editing anything else, I get the following error:
u0,u1=u.
TypeError: 'bool' object is not callable
I looked a bit into the examples, but I still don't know what I'm supposed to do instead to achieve the same result.
Thanks a lot,
Davide
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 Davide Longoni for more information if necessary.