dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #21769
Re: [Question #147504]: Subfunction does not work any more
Question #147504 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/147504
Status: Answered => Open
Patricia Brunner is still having a problem:
But - as already mentioned above - this does not work either.
:
p = Function(W.sub(1))
This will give the error:
File "test.py", line 20, in <module>
p = Function(W.sub(1))
File "/usr/lib/python2.6/dist-packages/dolfin/function/function.py", line 98, in __init__
cpp.Function.__init__(self, V)
File "/usr/lib/python2.6/dist-packages/dolfin/cpp.py", line 13325, in __init__
_cpp.Function_swiginit(self,_cpp.new_Function(*args))
RuntimeError: *** Error: Cannot create a Function from a subspace. The subspace needs to be collapsed.
Best,
Patricia
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.