v0.16.3
Loading...
Searching...
No Matches
TagMultiIndices.hpp
Go to the documentation of this file.
1/** \file TagMultiIndices.hpp
2 * \brief Tags for Multi-index containers
3 */
4
5
6#ifndef __TAGMULTIINDICES_HPP__
7#define __TAGMULTIINDICES_HPP__
8
9namespace MoFEM {
10
11/// MultiIndex Tag for field id
16
18struct Unique_mi_tag {};
21struct Ent_mi_tag {};
22struct FEEnt_mi_tag {};
29struct Space_mi_tag {};
30
31/**
32 * \brief Index tags of the numbered DOF containers that also read the index
33 */
35 /// extract global dof index from iterator
36 template <class IT> static inline DofIdx get_index(const IT &it) {
37 return (*it)->getPetscGlobalDofIdx();
38 }
39};
41 /// extract local dof index from iterator
42 template <class IT> static inline DofIdx get_index(const IT &it) {
43 return (*it)->getPetscLocalDofIdx();
44 }
45};
46
47struct Part_mi_tag {};
48
51
56
57/// MultiIndex Tag for field order
58struct Order_mi_tag {};
59
60/// MultiIndex Tag for field name
65
67struct Proc_mi_tag {};
68
84
90
92
93} // namespace MoFEM
94
95#endif // __TAGMULTIINDICES_HPP__
It it
Definition Schur.cpp:2568
int DofIdx
Index of DOF.
Definition Types.hpp:18
implementation of Data Operators for Forces and Sources
Definition Common.hpp:10
MultiIndex Tag for field id.
MultiIndex Tag for field name.
MultiIndex Tag for field order.
Index tags of the numbered DOF containers that also read the index.
static DofIdx get_index(const IT &it)
extract global dof index from iterator
static DofIdx get_index(const IT &it)
extract local dof index from iterator
constexpr IntegrationType IT