v0.8.13
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 783 of file DofsMultiIndices.hpp.

Constructor & Destructor Documentation

◆ DofEntity_active_change()

MoFEM::DofEntity_active_change::DofEntity_active_change ( bool  active)

Definition at line 81 of file DofsMultiIndices.cpp.

Member Function Documentation

◆ operator()()

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

Definition at line 83 of file DofsMultiIndices.cpp.

83  {
84  dof->active = aCtive;
85  if (aCtive && dof->getDofOrder() > dof->getMaxOrder()) {
86  cerr << *dof << endl;
87  THROW_MESSAGE("Set DoF active which has order larger than maximal order "
88  "set to entity");
89  }
90 }
#define THROW_MESSAGE(a)
Throw MoFEM exception.
Definition: definitions.h:638

Member Data Documentation

◆ aCtive

bool MoFEM::DofEntity_active_change::aCtive

Definition at line 784 of file DofsMultiIndices.hpp.


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