How do one extract a sub^n-space using a component tuple?
I've tried various versions of this:
import numpy
from dolfin import *
mesh = UnitSquare(2, 2)
V = VectorFunctionSpace(mesh, "CG", 2)
Q = FunctionSpace(mesh, "CG", 1)
W = V*Q
component = numpy.array((0, 0))
W.extract_sub_space(component)
but generally get this:
TypeError: in method 'FunctionSpace_extract_sub_space', argument 2 of
type 'std::vector< dolfin::uint > const &'
--
Marie
_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dolfin
More help : https://help.launchpad.net/ListHelp