v0.14.0
Public Member Functions | Public Attributes | List of all members
TestBitLevel Struct Reference
Collaboration diagram for TestBitLevel:
[legend]

Public Member Functions

 TestBitLevel (BitRefManager *mng_ptr)
 
MoFEMErrorCode operator() (const BitRefLevel &bit, const int expected_size)
 

Public Attributes

BitRefManagermngPtr
 

Detailed Description

Definition at line 15 of file mesh_cut_test.cpp.

Constructor & Destructor Documentation

◆ TestBitLevel()

TestBitLevel::TestBitLevel ( BitRefManager mng_ptr)
inline

Definition at line 17 of file mesh_cut_test.cpp.

17 : mngPtr(mng_ptr) {}

Member Function Documentation

◆ operator()()

MoFEMErrorCode TestBitLevel::operator() ( const BitRefLevel bit,
const int  expected_size 
)
inline

Definition at line 18 of file mesh_cut_test.cpp.

18  {
20  Range ents;
22  MOFEM_LOG("WORLD", Sev::inform)
23  << "bit_level nb ents " << bit << " " << ents.size();
24  if (expected_size != -1 && expected_size != static_cast<int>(ents.size())) {
25  SETERRQ2(PETSC_COMM_SELF, MOFEM_ATOM_TEST_INVALID,
26  "Wrong bit ref size %d!=%d", expected_size, ents.size());
27  }
29  }

Member Data Documentation

◆ mngPtr

BitRefManager* TestBitLevel::mngPtr

Definition at line 16 of file mesh_cut_test.cpp.


The documentation for this struct was generated from the following file:
MoFEMFunctionReturnHot
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:447
MoFEM::BitRefManager::getEntitiesByRefLevel
MoFEMErrorCode getEntitiesByRefLevel(const BitRefLevel bit, const BitRefLevel mask, const EntityHandle meshset, const int verb=QUIET) const
add all ents from ref level given by bit to meshset
Definition: BitRefManager.cpp:845
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:535
bit
auto bit
set bit
Definition: hanging_node_approx.cpp:75
TestBitLevel::mngPtr
BitRefManager * mngPtr
Definition: mesh_cut_test.cpp:16
Range
MOFEM_LOG
#define MOFEM_LOG(channel, severity)
Log.
Definition: LogManager.hpp:308
MoFEM::Types::BitRefLevel
std::bitset< BITREFLEVEL_SIZE > BitRefLevel
Bit structure attached to each entity identifying to what mesh entity is attached.
Definition: Types.hpp:40
MOFEM_ATOM_TEST_INVALID
@ MOFEM_ATOM_TEST_INVALID
Definition: definitions.h:40
MoFEMFunctionBeginHot
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:440