v0.8.23
Public Member Functions | Public Attributes | List of all members
MoFEM::DofEntity_active_change Struct Reference

#include <src/multi_indices/DofsMultiIndices.hpp>

Collaboration diagram for MoFEM::DofEntity_active_change:
[legend]

Public Member Functions

 DofEntity_active_change (bool active)
 
void operator() (boost::shared_ptr< DofEntity > &dof)
 

Public Attributes

bool aCtive
 

Detailed Description

Activate or deactivate dofs (multi-index modifier)

Definition at line 746 of file DofsMultiIndices.hpp.

Constructor & Destructor Documentation

◆ DofEntity_active_change()

MoFEM::DofEntity_active_change::DofEntity_active_change ( bool  active)

Definition at line 56 of file DofsMultiIndices.cpp.

Member Function Documentation

◆ operator()()

void MoFEM::DofEntity_active_change::operator() ( boost::shared_ptr< DofEntity > &  dof)

Definition at line 58 of file DofsMultiIndices.cpp.

58  {
59  dof->active = aCtive;
60  if (aCtive && dof->getDofOrder() > dof->getMaxOrder()) {
61  cerr << *dof << endl;
62  THROW_MESSAGE("Set DoF active which has order larger than maximal order "
63  "set to entity");
64  }
65 }
#define THROW_MESSAGE(a)
Throw MoFEM exception.
Definition: definitions.h:620

Member Data Documentation

◆ aCtive

bool MoFEM::DofEntity_active_change::aCtive

Definition at line 747 of file DofsMultiIndices.hpp.


The documentation for this struct was generated from the following files: