MultiMeshDofMap.h

Note

The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.

class MultiMeshDofMap

This class handles the mapping of degrees of freedom for MultiMesh function spaces.

MultiMeshDofMap()

Constructor

std::size_t num_parts() const

Return the number dofmaps (parts) of the MultiMesh dofmap

Returns
std::size_t
The number of dofmaps (parts) of the MultiMesh dofmap
std::shared_ptr<const GenericDofMap> part(std::size_t i) const

Return dofmap (part) number i

Returns
GenericDofMap
Dofmap (part) number i
void add(std::shared_ptr<const GenericDofMap> dofmap)

Add dofmap

Arguments
dofmap (GenericDofMap)
The dofmap.
void build(const MultiMeshFunctionSpace &function_space, const std::vector<dolfin::la_index> &offsets)

Build MultiMesh dofmap

void clear()

Clear MultiMesh dofmap

std::size_t global_dimension() const

Return the dimension of the global finite element function space

std::pair<std::size_t, std::size_t> ownership_range() const

Return the ownership range (dofs in this range are owned by this process)

const std::vector<int> &off_process_owner() const

Return map from nonlocal-dofs (that appear in local dof map) to owning process

std::shared_ptr<IndexMap> index_map() const

Return the map

std::string str(bool verbose) const

Return informal string representation (pretty-print)