Hello I have a mixed function space
V = VectorFunctionSpace(mesh, 'CG', 2) W = FunctionSpace(mesh, 'CG', 1) X = MixedFunctionSpace([V, W]) u = Function(X)
How can get the indices of the dofs in u corresponding to the space W ?
Thanks
Hi, use
dofs_W = X.sub(1).dofmap().dofs() print u.vector()[dofs_W].array()