← Back to team overview

dolfin team mailing list archive

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:
Use 'sub' to get subspaces, e.g.

  V = W.sub(1)

If you want a sub-function after computing a solution use split, e.g.

  u, p = U.split()

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.