MultiMeshFunctionSpace

class dolfin.cpp.function.MultiMeshFunctionSpace

Bases: dolfin.cpp.common.Variable

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.

Friends: MultiMeshSubSpace.

Create multimesh function space on multimesh (shared pointer version)

Parameters:const MultiMesh > multimesh (std::shared_ptr<) –
add()

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

Parameters:const FunctionSpace > function_space (std::shared_ptr<) –
Return type:void
build()

Build multimesh function space.

Return type:void
dim()

Return dimension of the multimesh function space Returns std::size_t The dimension of the multimesh function space.

Return type:std::size_t
dofmap()

Return multimesh dofmap Returns:cpp:any:MultiMeshDofMap The dofmap.

Return type:std::shared_ptr< const MultiMeshDofMap >
lock_inactive_dofs()

Lock inactive dofs of a system.

Parameters:
Return type:

void

multimesh()

Return multimesh Returns:cpp:any:MultiMesh The multimesh.

Return type:std::shared_ptr< const MultiMesh >
num_parts()

Return the number of function spaces (parts) of the multimesh function space Returns std::size_t The number of function spaces (parts) of the multimesh function space.

Return type:std::size_t
part()

Return function space (part) number i Arguments i (std::size_t) The part number Returns:cpp:any:FunctionSpace Function space (part) number i

Parameters:i (std::size_t) –
Return type:std::shared_ptr< const FunctionSpace >
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 (std::size_t) The part number Returns:cpp:any:FunctionSpace Function space (part) number i

Parameters:i (std::size_t) –
Return type:std::shared_ptr< const FunctionSpace >