v0.16.3
Loading...
Searching...
No Matches
DofsMultiIndices.hpp
Go to the documentation of this file.
1/** \file DofsMultiIndices.hpp
2 * \ingroup dof_multi_indices
3 * \brief Multi-Index contains, data structures for mofem dofs and other
4 * low-level functions
5 */
6
7#ifndef __DOFSMULTIINDICES_HPP__
8#define __DOFSMULTIINDICES_HPP__
9
10namespace MoFEM {
11
12/**
13 * \brief keeps information about DOF on the entity
14 * \ingroup dof_multi_indices
15 */
16struct DofEntity : public interface_FieldEntity<FieldEntity> {
17
18 virtual ~DofEntity() = default;
19
23
24 static inline ShortId
26 const boost::shared_ptr<FieldEntity> &ent_ptr) {
27 return static_cast<ShortId>(dof) |
28 (static_cast<ShortId>(ent_ptr->getBitNumber()) << 9);
29 }
30
31 DofEntity(const boost::shared_ptr<FieldEntity> &entity_ptr,
32 const ApproximationOrder dof_order,
33 const FieldCoefficientsNumber dof_rank, const DofIdx dof);
34
35 /// @return get dof index on entity
36 inline DofIdx getEntDofIdx() const { return std::abs(dof); }
37
38 /// @return get field data on dof
39 inline FieldData &getFieldData() const {
40 return const_cast<FieldData &>(
41 (*this->sPtr->getEntFieldDataPtr())[getEntDofIdx()]);
42 }
43
44 /// @return get entity unique dof id
45 inline const UId &getEntLocalUniqueId() const {
46 return this->sPtr->getLocalUniqueId();
47 }
48
49 /// @return get entity unique dof id
50 inline const UId getEntGlobalUniqueId() const {
51 return this->sPtr->getGlobalUniqueId();
52 }
53
54 static inline UId getUniqueIdCalculate(const DofIdx dof, const UId &ent_uid) {
55 UId uid(ent_uid);
56 uid |= dof;
57 return uid;
58 }
59
60 static inline UId
62 const boost::shared_ptr<FieldEntity> &ent_ptr) {
63 return getUniqueIdCalculate(dof, ent_ptr->getLocalUniqueId());
64 }
65
66 /// @return get unique dof id
67 inline UId getLocalUniqueId() const {
68 return getUniqueIdCalculate(std::abs(dof), this->sPtr->getLocalUniqueId());
69 }
70
72 const EntityHandle ent) {
75 }
76
78 const EntityHandle ent) {
81 }
82
83 /**
84 * \brief Calculate UId for DOF
85 *
86 * UId is constructed such that all DOFs are ordered by processor, entity,
87 * field and dof index on entity, On entity dofs index is constructed such
88 * that coefficient number and dofs increase with dofs index on entity.
89 *
90 * @param dof dof index on entity
91 * @param ent_ptr pointer to field entity
92 * @return UId
93 */
94 static inline UId
96 const boost::shared_ptr<FieldEntity> &ent_ptr) {
97 return getUniqueIdCalculate(dof, ent_ptr->getGlobalUniqueId());
98 }
99
100 /// @return get unique dof id
101 inline UId getGlobalUniqueId() const {
102 return getUniqueIdCalculate(std::abs(dof), this->sPtr->getGlobalUniqueId());
103 }
104
105 /** \brief get short uid it is unique in combination with entity handle
106 *
107 * EntityHandle are controlled by MOAB, which is unique in
108 * MOAB instance. However two MOAB instances, can have attached different
109 * EntityHandles to the same entity.
110 *
111 * Relation between MoAB EntityHandle can be handled by saving entity handle
112 * data into tag, see MB_TYPE_HANDLE. MOAB at time of file reading or
113 * creating new MOAB instance, substitute tag value by approbate entity
114 * handle.
115 *
116 * ShortId is created to handle problems related to saving data series, and
117 * reading those data using different MoAB instances.
118 *
119 */
123
124 /// @return get dof entity handle
125 inline EntityHandle getEnt() const { return this->sPtr->getEnt(); }
126
127 /// @return get dof approximation order
129 return getDofOrderMap()[getEntDofIdx()];
130 }
131
132 /// @return get dof coefficient index
134 return getEntDofIdx() % getNbOfCoeffs();
135 }
136
137 /// @return return true if dof us active
138 inline char getActive() const { return dof < 0 ? 0 : 1; }
139
140 friend std::ostream &operator<<(std::ostream &os, const DofEntity &e);
141
142private:
144
146};
147
148/**
149 * \brief Interface to DofEntity
150 *
151 * In MoFEM DOFs classes (and Ent and Finite Element classes) are derived by
152 * interface, i.e. not class is derived but interface to it.
153 *
154 * \ingroup dof_multi_indices
155 */
156template <typename T>
158
159 virtual ~interface_DofEntity() = default;
160
161 interface_DofEntity(const boost::shared_ptr<T> &sptr)
162 : interface_FieldEntity<T>(sptr) {}
163
164 /// @return return dof unique id
165 inline UId getGlobalUniqueId() const {
166 return this->sPtr->getGlobalUniqueId();
167 }
168
169 /// @return return entity unique id
170 inline UId getEntGlobalUniqueId() const {
171 return this->sPtr->getEntGlobalUniqueId();
172 }
173
174 /// @return return dof unique id
175 inline UId getLocalUniqueId() const { return this->sPtr->getLocalUniqueId(); }
176
177 /// @return return entity unique id
178 inline const UId &getEntLocalUniqueId() const {
179 return this->sPtr->getEntLocalUniqueId();
180 }
181
182 /// @return return short id (used by data recorder)
184 return this->sPtr->getNonNonuniqueShortId();
185 }
186
187 /// @return return index of dof on the entity
188 inline DofIdx getEntDofIdx() const { return this->sPtr->getEntDofIdx(); }
189
190 /// @return return data on dof
191 inline FieldData &getFieldData() const { return this->sPtr->getFieldData(); }
192
193 /// @return return entity handle
194 inline EntityHandle getEnt() const { return this->sPtr->getEnt(); }
195
196 /// @return get dof approximation order
198 return this->sPtr->getDofOrder();
199 }
200
201 /// @return get dof coefficient index
203 return this->sPtr->getDofCoeffIdx();
204 }
205
206 /// @return return true if dof is active
207 inline char getActive() const { return this->sPtr->getActive(); }
208
209 /// @return get pointer to dof data structure
210 inline boost::shared_ptr<DofEntity> &getDofEntityPtr() const {
211 return this->sPtr;
212 }
213
214 /// @return get pioneer do dof's entity data structure
215 inline boost::shared_ptr<FieldEntity> &getFieldEntityPtr() const {
216 return this->sPtr->getFieldEntityPtr();
217 }
218};
219
220/**
221 * \brief keeps information about indexed dofs for the problem
222 * \ingroup dof_multi_indices
223 *
224 * A numbered DOF carries its part and its PETSc global and local indices.
225 * Before a replicated problem is partitioned the global index is
226 * provisional: the insertion (UID) order, the same on every rank.
227 *
228 * FIXME: Is too many iterator, this has to be manage more efficiently, some
229 * iterators could be moved to multi_indices views.
230 *
231 */
232struct NumeredDofEntity : public interface_DofEntity<DofEntity> {
233
234 virtual ~NumeredDofEntity() = default;
235
240
243 unsigned int pArt;
244
245 /// @return PETSc global DoF index
247
248 /// @return PETSc local DoF index
249 inline DofIdx getPetscLocalDofIdx() const { return petscLocalDofIdx; }
250
251 /// @return Owning partition (i.e. process/processor)
252 inline unsigned int getPart() const { return pArt; }
253
254 /// @return True if local index is set
255 inline bool getHasLocalIndex() const {
256 return !std::signbit(petscLocalDofIdx);
257 }
258
259 NumeredDofEntity(const boost::shared_ptr<DofEntity> &dof_entity_ptr,
260 const int petsc_gloabl_dof_idx = -1,
261 const int petsc_local_dof_idx = -1, const int part = -1);
262 friend std::ostream &operator<<(std::ostream &os, const NumeredDofEntity &e);
263};
264
265/**
266 * \brief keeps information about indexed dofs for the finite element
267 * \ingroup dof_multi_indices
268 */
269struct FEDofEntity : public DofEntity {
270
271 FEDofEntity() = delete;
272
273private:
275
276 // DO NOT MAKE ANY MAMBER DATA HARE !!!
277
278 friend std::ostream &operator<<(std::ostream &os, const FEDofEntity &e);
279};
280
281/**
282 * \brief keeps information about indexed dofs for the finite element
283 * \ingroup dof_multi_indices
284 */
286
288
289private:
291
292 // DO NOT MAKE ANY MAMBER DATA HARE !!!
293
294 friend std::ostream &operator<<(std::ostream &os,
295 const FENumeredDofEntity &e);
296};
297
298std::ostream &operator<<(std::ostream &os, const FENumeredDofEntity &e);
299
300/**
301 * @relates multi_index_container
302 * \brief MultiIndex container keeps DofEntity
303 * \ingroup dof_multi_indices
304 */
305typedef multi_index_container<
306 boost::shared_ptr<DofEntity>,
307 indexed_by<
308 // unique
309 ordered_unique<
310 tag<Unique_mi_tag>,
311 const_mem_fun<DofEntity, UId, &DofEntity::getLocalUniqueId>>,
312
313 // non_unique
314 ordered_non_unique<
315 tag<Ent_mi_tag>,
316 const_mem_fun<DofEntity, EntityHandle, &DofEntity::getEnt>>
317
318 >>
320
321using DofEntityByUId = DofEntity_multiIndex::index<Unique_mi_tag>::type;
322
323/** \brief Dof multi-index by entity
324 *
325 * \ingroup dof_multi_indices
326 */
327using DofEntityByEnt = DofEntity_multiIndex::index<Ent_mi_tag>::type;
328
329/** \brief multi-index view on DofEntity by uid
330 \ingroup dof_multi_indices
331*/
333 multi_index_container<boost::shared_ptr<DofEntity>,
334 indexed_by<
335
336 ordered_unique<const_mem_fun<
338
339 >>;
340
341/** \brief multi-index view on DofEntity by uid
342 \ingroup dof_multi_indices
343*/
344using DofEntity_multiIndex_global_uid_view = multi_index_container<
345 boost::shared_ptr<DofEntity>,
346 indexed_by<
347
348 ordered_unique<
349 const_mem_fun<DofEntity, UId, &DofEntity::getGlobalUniqueId>>
350
351 >>;
352
353/** \brief vector view on DofEntity by uid
354 \ingroup dof_multi_indices
355*/
356typedef std::vector<boost::weak_ptr<DofEntity>> DofEntity_vector_view;
357
358/** \brief multi-index view on DofEntity activity
359 \ingroup dof_multi_indices
360*/
361typedef multi_index_container<
362 boost::shared_ptr<DofEntity>,
363 indexed_by<
364
365 ordered_unique<
366 const_mem_fun<DofEntity, UId, &DofEntity::getLocalUniqueId>>,
367
368 ordered_non_unique<
369 const_mem_fun<DofEntity, char, &DofEntity::getActive>>
370
371 >>
373
374/**
375 * @relates multi_index_container
376 * \brief MultiIndex container keeps FEDofEntity
377 * \ingroup dof_multi_indices
378
379 */
380typedef multi_index_container<
381 boost::shared_ptr<FEDofEntity>,
382 indexed_by<
383
384 ordered_unique<tag<Unique_mi_tag>,
385 const_mem_fun<FEDofEntity::DofEntity, UId,
387
388 ordered_non_unique<tag<Ent_mi_tag>,
389 const_mem_fun<FEDofEntity::DofEntity, EntityHandle,
391
392 >>
394
395/** \brief Dof entity multi-index by UId and entity
396 *
397 * \ingroup dof_multi_indices
398 */
399using FEDofEntityByUId = FEDofEntity_multiIndex::index<Unique_mi_tag>::type;
400
401/**
402 * @relates multi_index_container
403 * \brief MultiIndex container keeps FENumeredDofEntity
404
405 * \ingroup dof_multi_indices
406 */
407typedef multi_index_container<
408 boost::shared_ptr<FENumeredDofEntity>,
409 indexed_by<ordered_unique<
410 tag<Unique_mi_tag>,
413 ordered_non_unique<
414 tag<Ent_mi_tag>,
416 EntityHandle, &FENumeredDofEntity::getEnt>>
417
418 >>
420
421/** \brief Dof entity multi-index by UId
422 *
423 * \ingroup dof_multi_indices
424 */
426 FENumeredDofEntity_multiIndex::index<Unique_mi_tag>::type;
427
428/** \brief Numbered DoF multi-index by entity
429 *
430 * \ingroup dof_multi_indices
431 */
433 FENumeredDofEntity_multiIndex::index<Ent_mi_tag>::type;
434
435/**
436 * @relates multi_index_container
437 * \brief MultiIndex container keeps NumeredDofEntity
438 * \ingroup dof_multi_indices
439 */
440typedef multi_index_container<
441 boost::shared_ptr<NumeredDofEntity>,
442
443 // unique
444 indexed_by<
445 ordered_unique<tag<Unique_mi_tag>,
448
449 // non unique
450 ordered_non_unique<
451 tag<Part_mi_tag>,
452 member<NumeredDofEntity, unsigned int, &NumeredDofEntity::pArt>>,
453
454 ordered_non_unique<tag<PetscGlobalIdx_mi_tag>,
455 member<NumeredDofEntity, DofIdx,
457
458 ordered_non_unique<tag<PetscLocalIdx_mi_tag>,
459 member<NumeredDofEntity, DofIdx,
461
462 ordered_non_unique<
463 tag<Ent_mi_tag>,
465 EntityHandle, &NumeredDofEntity::getEnt>>
466
467 >>
469
470/** \brief Numbered DoF multi-index by UId
471 *
472 * \ingroup dof_multi_indices
473 */
475 NumeredDofEntity_multiIndex::index<Unique_mi_tag>::type;
476
477/** \brief Numbered DoF multi-index by local index
478 *
479 * \ingroup dof_multi_indices
480 */
482 NumeredDofEntity_multiIndex::index<PetscLocalIdx_mi_tag>::type;
483
484/** \brief Numbered DoF multi-index by entity
485 *
486 * \ingroup dof_multi_indices
487 */
489 NumeredDofEntity_multiIndex::index<Ent_mi_tag>::type;
490
492 multi_index_container<boost::shared_ptr<NumeredDofEntity>,
493 indexed_by<
494
495 ordered_unique<const_mem_fun<
496
499
500 >>
501
502 >>;
503
505 multi_index_container<boost::shared_ptr<NumeredDofEntity>,
506 indexed_by<ordered_non_unique<const_mem_fun<
509
511 multi_index_container<
512 boost::shared_ptr<NumeredDofEntity>,
513 indexed_by<ordered_non_unique<const_mem_fun<
516
517/**
518 * Activate or deactivate dofs (multi-index modifier)
519 * \ingroup dof_multi_indices
520 */
522 bool aCtive;
524 void operator()(boost::shared_ptr<DofEntity> &dof);
525};
526
527/**
528 * Change part and global pestc index (multi-index modifier)
529 * \ingroup dof_multi_indices
530 */
532 const unsigned int pArt;
535 const DofIdx petsc_gloabl_dof_idx)
536 : pArt(part), petscGloablDofIdx(petsc_gloabl_dof_idx){};
537 inline void operator()(boost::shared_ptr<NumeredDofEntity> &dof) const {
538 dof->pArt = pArt;
539 dof->petscGloablDofIdx = petscGloablDofIdx;
540 }
541};
542
544 const unsigned int pArt;
548 const DofIdx petsc_gloabl_dof_idx,
549 const DofIdx petsc_local_dof_idx)
550 : pArt(part), petscGloablDofIdx(petsc_gloabl_dof_idx),
551 petscLocalDofIdx(petsc_local_dof_idx){};
552 inline void operator()(boost::shared_ptr<NumeredDofEntity> &dof) const {
553 dof->pArt = pArt;
554 dof->petscGloablDofIdx = petscGloablDofIdx;
555 dof->petscLocalDofIdx = petscLocalDofIdx;
556 }
557};
558
559/**
560 * Change part and local pestc index (multi-index modifier)
561 * \ingroup dof_multi_indices
562 */
565 NumeredDofEntity_local_idx_change(const DofIdx petsc_local_dof_idx)
566 : petscLocalDofIdx(petsc_local_dof_idx){};
567 inline void operator()(boost::shared_ptr<NumeredDofEntity> &dof) const {
568 dof->petscLocalDofIdx = petscLocalDofIdx;
569 }
570};
571
572} // namespace MoFEM
573#endif // __DOFSMULTIINDICES_HPP__
574
575/**
576 * \defgroup dof_multi_indices Dofs structures and multi-indices
577 * \ingroup mofem
578 **/
bool active
multi_index_container< boost::shared_ptr< DofEntity >, indexed_by< ordered_unique< const_mem_fun< DofEntity, UId, &DofEntity::getLocalUniqueId > >, ordered_non_unique< const_mem_fun< DofEntity, char, &DofEntity::getActive > > > > DofEntity_multiIndex_active_view
multi-index view on DofEntity activity
FENumeredDofEntity_multiIndex::index< Ent_mi_tag >::type FENumeredDofEntityByEnt
Numbered DoF multi-index by entity.
multi_index_container< boost::shared_ptr< FENumeredDofEntity >, indexed_by< ordered_unique< tag< Unique_mi_tag >, const_mem_fun< FENumeredDofEntity::interface_type_DofEntity, UId, &FENumeredDofEntity::getLocalUniqueId > >, ordered_non_unique< tag< Ent_mi_tag >, const_mem_fun< FENumeredDofEntity::interface_type_DofEntity, EntityHandle, &FENumeredDofEntity::getEnt > > > > FENumeredDofEntity_multiIndex
MultiIndex container keeps FENumeredDofEntity.
FEDofEntity_multiIndex::index< Unique_mi_tag >::type FEDofEntityByUId
Dof entity multi-index by UId and entity.
multi_index_container< boost::shared_ptr< DofEntity >, indexed_by< ordered_unique< const_mem_fun< DofEntity, UId, &DofEntity::getLocalUniqueId > > > > DofEntity_multiIndex_uid_view
multi-index view on DofEntity by uid
NumeredDofEntity_multiIndex::index< Unique_mi_tag >::type NumeredDofEntityByUId
Numbered DoF multi-index by UId.
DofEntity_multiIndex::index< Ent_mi_tag >::type DofEntityByEnt
Dof multi-index by entity.
multi_index_container< boost::shared_ptr< DofEntity >, indexed_by< ordered_unique< const_mem_fun< DofEntity, UId, &DofEntity::getGlobalUniqueId > > > > DofEntity_multiIndex_global_uid_view
multi-index view on DofEntity by uid
std::vector< boost::weak_ptr< DofEntity > > DofEntity_vector_view
vector view on DofEntity by uid
multi_index_container< boost::shared_ptr< NumeredDofEntity >, indexed_by< ordered_unique< tag< Unique_mi_tag >, const_mem_fun< NumeredDofEntity::interface_type_DofEntity, UId, &NumeredDofEntity::getLocalUniqueId > >, ordered_non_unique< tag< Part_mi_tag >, member< NumeredDofEntity, unsigned int, &NumeredDofEntity::pArt > >, ordered_non_unique< tag< PetscGlobalIdx_mi_tag >, member< NumeredDofEntity, DofIdx, &NumeredDofEntity::petscGloablDofIdx > >, ordered_non_unique< tag< PetscLocalIdx_mi_tag >, member< NumeredDofEntity, DofIdx, &NumeredDofEntity::petscLocalDofIdx > >, ordered_non_unique< tag< Ent_mi_tag >, const_mem_fun< NumeredDofEntity::interface_type_DofEntity, EntityHandle, &NumeredDofEntity::getEnt > > > > NumeredDofEntity_multiIndex
MultiIndex container keeps NumeredDofEntity.
multi_index_container< boost::shared_ptr< FEDofEntity >, indexed_by< ordered_unique< tag< Unique_mi_tag >, const_mem_fun< FEDofEntity::DofEntity, UId, &FEDofEntity::getLocalUniqueId > >, ordered_non_unique< tag< Ent_mi_tag >, const_mem_fun< FEDofEntity::DofEntity, EntityHandle, &FEDofEntity::getEnt > > > > FEDofEntity_multiIndex
MultiIndex container keeps FEDofEntity.
FENumeredDofEntity_multiIndex::index< Unique_mi_tag >::type FENumeredDofEntityByUId
Dof entity multi-index by UId.
multi_index_container< boost::shared_ptr< DofEntity >, indexed_by< ordered_unique< tag< Unique_mi_tag >, const_mem_fun< DofEntity, UId, &DofEntity::getLocalUniqueId > >, ordered_non_unique< tag< Ent_mi_tag >, const_mem_fun< DofEntity, EntityHandle, &DofEntity::getEnt > > > > DofEntity_multiIndex
MultiIndex container keeps DofEntity.
NumeredDofEntity_multiIndex::index< Ent_mi_tag >::type NumeredDofEntityByEnt
Numbered DoF multi-index by entity.
NumeredDofEntity_multiIndex::index< PetscLocalIdx_mi_tag >::type NumeredDofEntityByLocalIdx
Numbered DoF multi-index by local index.
auto bit
set bit
int DofIdx
Index of DOF.
Definition Types.hpp:18
int ApproximationOrder
Approximation on the entity.
Definition Types.hpp:26
uint128_t UId
Unique Id.
Definition Types.hpp:31
int FieldCoefficientsNumber
Number of field coefficients.
Definition Types.hpp:27
char FieldBitNumber
Field bit number.
Definition Types.hpp:28
int ShortId
Unique Id in the field.
Definition Types.hpp:32
implementation of Data Operators for Forces and Sources
Definition Common.hpp:10
std::ostream & operator<<(std::ostream &os, const EntitiesFieldData::EntData &e)
multi_index_container< boost::shared_ptr< NumeredDofEntity >, indexed_by< ordered_non_unique< const_mem_fun< NumeredDofEntity, DofIdx, &NumeredDofEntity::getPetscLocalDofIdx > > > > NumeredDofEntity_multiIndex_petsc_local_dof_view_ordered_non_unique
multi_index_container< boost::shared_ptr< NumeredDofEntity >, indexed_by< ordered_non_unique< const_mem_fun< NumeredDofEntity::interface_type_DofEntity, FieldCoefficientsNumber, &NumeredDofEntity::getDofCoeffIdx > > > > NumeredDofEntity_multiIndex_coeff_idx_ordered_non_unique
DofEntity_multiIndex::index< Unique_mi_tag >::type DofEntityByUId
multi_index_container< boost::shared_ptr< NumeredDofEntity >, indexed_by< ordered_unique< const_mem_fun< NumeredDofEntity::interface_type_DofEntity, UId, &NumeredDofEntity::getLocalUniqueId > > > > NumeredDofEntity_multiIndex_uid_view_ordered
void operator()(boost::shared_ptr< DofEntity > &dof)
keeps information about DOF on the entity
UId getLocalUniqueId() const
const UId getEntGlobalUniqueId() const
EntityHandle getEnt() const
DofIdx getEntDofIdx() const
static UId getLoFieldEntityUId(const FieldBitNumber bit, const EntityHandle ent)
UId getGlobalUniqueId() const
static UId getHiFieldEntityUId(const FieldBitNumber bit, const EntityHandle ent)
const UId & getEntLocalUniqueId() const
ApproximationOrder getDofOrder() const
FieldData & getFieldData() const
friend std::ostream & operator<<(std::ostream &os, const DofEntity &e)
ShortId getNonNonuniqueShortId() const
get short uid it is unique in combination with entity handle
static ShortId getNonNonuniqueShortId(const DofIdx dof, const boost::shared_ptr< FieldEntity > &ent_ptr)
DofEntity(const boost::shared_ptr< FieldEntity > &entity_ptr, const ApproximationOrder dof_order, const FieldCoefficientsNumber dof_rank, const DofIdx dof)
virtual ~DofEntity()=default
FieldCoefficientsNumber getDofCoeffIdx() const
static UId getGlobalUniqueIdCalculate(const DofIdx dof, const boost::shared_ptr< FieldEntity > &ent_ptr)
Calculate UId for DOF.
static UId getLocalUniqueIdCalculate(const DofIdx dof, const boost::shared_ptr< FieldEntity > &ent_ptr)
static UId getUniqueIdCalculate(const DofIdx dof, const UId &ent_uid)
keeps information about indexed dofs for the finite element
DofEntity(const boost::shared_ptr< FieldEntity > &entity_ptr, const ApproximationOrder dof_order, const FieldCoefficientsNumber dof_rank, const DofIdx dof)
friend std::ostream & operator<<(std::ostream &os, const FEDofEntity &e)
keeps information about indexed dofs for the finite element
friend std::ostream & operator<<(std::ostream &os, const FENumeredDofEntity &e)
UId getLocalUniqueIdCalculate()
Get the Local Unique Id Calculate object.
static UId getHiFieldEntityUId(const UId &uid)
static UId getLoFieldEntityUId(const UId &uid)
void operator()(boost::shared_ptr< NumeredDofEntity > &dof) const
NumeredDofEntity_local_idx_change(const DofIdx petsc_local_dof_idx)
NumeredDofEntity_part_and_glob_idx_change(const unsigned int part, const DofIdx petsc_gloabl_dof_idx)
void operator()(boost::shared_ptr< NumeredDofEntity > &dof) const
void operator()(boost::shared_ptr< NumeredDofEntity > &dof) const
NumeredDofEntity_part_and_indices_change(const unsigned int part, const DofIdx petsc_gloabl_dof_idx, const DofIdx petsc_local_dof_idx)
keeps information about indexed dofs for the problem
virtual ~NumeredDofEntity()=default
NumeredDofEntity(const boost::shared_ptr< DofEntity > &dof_entity_ptr, const int petsc_gloabl_dof_idx=-1, const int petsc_local_dof_idx=-1, const int part=-1)
DofIdx getPetscGlobalDofIdx() const
friend std::ostream & operator<<(std::ostream &os, const NumeredDofEntity &e)
unsigned int getPart() const
interface_DofEntity< DofEntity > interface_type_DofEntity
Interface to DofEntity.
const UId & getEntLocalUniqueId() const
FieldCoefficientsNumber getDofCoeffIdx() const
interface_DofEntity(const boost::shared_ptr< T > &sptr)
virtual ~interface_DofEntity()=default
boost::shared_ptr< FieldEntity > & getFieldEntityPtr() const
boost::shared_ptr< DofEntity > & getDofEntityPtr() const
FieldData & getFieldData() const
ApproximationOrder getDofOrder() const
const std::array< int, MAX_DOFS_ON_ENTITY > & getDofOrderMap() const
get hash-map relating dof index on entity with its order
boost::shared_ptr< FieldEntity > & getFieldEntityPtr() const
FieldCoefficientsNumber getNbOfCoeffs() const
Get number of coefficients per DOF.