dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #21770
Re: [Question #147504]: Subfunction does not work any more
Question #147504 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/147504
Status: Open => Answered
Garth Wells proposed the following answer:
Your compete code example didn't create a Function p, it was attempting
to create a sub-space p.
If you want a Function from the space V2, use
W = V1 * V2
. . . .
p = Function(V2)
Subspaces are views into larger function spaces (there are 'gaps' in the
dof map), so it doesn't make sense to create new a Function with a
subspace.
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.