← Back to team overview

dolfin team mailing list archive

Extracting sub space with component tuple

 


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


Follow ups