dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #22403
[Question #151184]: assign values of subfunction
New question #151184 on DOLFIN:
https://answers.launchpad.net/dolfin/+question/151184
Dear all,
Let's say I have
m = UnitInterval(100)
Q = FunctionSpace(n, 'CG',1)
u0 = Function(Q)
W = MixedFunctionSpace([Q,Q,Q])
u_func = Function(W)
I want to do:
u_func[0].assign(u0) but I get
AttributeError: 'Indexed' object has no attribute 'assign'
How do I do this? I tried with split but that is not what I want. I want to assign subfunction 0 within u_func.
Thanks, Chaffra
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.