21 #ifndef __MULTI_MESH_DOF_MAP_H 22 #define __MULTI_MESH_DOF_MAP_H 24 #include "GenericDofMap.h" 25 #include <dolfin/mesh/MultiMesh.h> 31 class MultiMeshFunctionSpace;
62 std::shared_ptr<const GenericDofMap>
part(std::size_t i)
const;
69 void add(std::shared_ptr<const GenericDofMap> dofmap);
73 const std::vector<dolfin::la_index>& offsets);
91 std::shared_ptr<IndexMap>
index_map()
const;
94 std::string
str(
bool verbose)
const;
98 std::size_t part_id)
const;
104 std::shared_ptr<IndexMap> _index_map;
107 std::vector<std::shared_ptr<const GenericDofMap>> _original_dofmaps;
110 std::vector<std::shared_ptr<GenericDofMap>> _new_dofmaps;
std::shared_ptr< IndexMap > index_map() const
Return the map.
Definition: MultiMeshDofMap.cpp:144
~MultiMeshDofMap()
Destructor.
Definition: MultiMeshDofMap.cpp:45
std::shared_ptr< const GenericDofMap > part(std::size_t i) const
Definition: MultiMeshDofMap.cpp:55
Definition: MultiMesh.h:50
void clear()
Clear MultiMesh dofmap.
Definition: MultiMeshDofMap.cpp:119
std::string str(bool verbose) const
Return informal string representation (pretty-print)
Definition: MultiMeshDofMap.cpp:150
MultiMeshDofMap()
Constructor.
Definition: MultiMeshDofMap.cpp:33
std::size_t num_parts() const
Definition: MultiMeshDofMap.cpp:50
const std::vector< int > & off_process_owner() const
Definition: MultiMeshDofMap.cpp:138
std::vector< dolfin::la_index > inactive_dofs(const MultiMesh &multimesh, std::size_t part_id) const
Return inactive dofs.
Definition: MultiMeshDofMap.cpp:163
void build(const MultiMeshFunctionSpace &function_space, const std::vector< dolfin::la_index > &offsets)
Build MultiMesh dofmap.
Definition: MultiMeshDofMap.cpp:68
Definition: MultiMeshDofMap.h:37
std::pair< std::size_t, std::size_t > ownership_range() const
Definition: MultiMeshDofMap.cpp:131
void add(std::shared_ptr< const GenericDofMap > dofmap)
Definition: MultiMeshDofMap.cpp:61
Definition: MultiMeshFunctionSpace.h:47
std::size_t global_dimension() const
Definition: MultiMeshDofMap.cpp:126