# MultiMeshFunctionSpace¶

class dolfin.cpp.function.MultiMeshFunctionSpace(multimesh)

This class represents a function space on a multimesh. It may may be created from a set of standard function spaces by repeatedly calling add(), followed by a call to build(). Note that a multimesh function space is not useful and its data structures are empty until build() has been called.

Create multimesh function space on multimesh (shared pointer version)

add()

Arguments
function_space (FunctionSpace)
The function space.
build()

• build()

Build multimesh function space

• build(offsets)

Build multimesh function space. This function uses offsets computed from the full function spaces on each part.

dim()

Return dimension of the multimesh function space

Returns
int
The dimension of the multimesh function space.
dofmap()

Return multimesh dofmap

Returns
MultiMeshDofMap
The dofmap.
multimesh()

Return multimesh

Returns
MultiMesh
The multimesh.
num_parts()

Return the number of function spaces (parts) of the multimesh function space

Returns
int
The number of function spaces (parts) of the multimesh function space.
part()

Return function space (part) number i

Arguments
i (int)
The part number
Returns
FunctionSpace
Function space (part) number i
thisown

The membership flag

view()

Return view of multimesh function space for part number i. This function differs from the part() function in that it does not return the original function space for a part, but rather a view of the common multimesh function space (dofs global to the collection of parts).

Arguments
i (int)
The part number
Returns
FunctionSpace
Function space (part) number i