v0.15.0
Loading...
Searching...
No Matches
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) {}
BitRefManager * mngPtr

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 SETERRQ(PETSC_COMM_SELF, MOFEM_ATOM_TEST_INVALID,
26 "Wrong bit ref size %d!=%d", expected_size, ents.size());
27 }
29 }
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
@ MOFEM_ATOM_TEST_INVALID
Definition definitions.h:40
#define CHKERR
Inline error check.
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
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
#define MOFEM_LOG(channel, severity)
Log.
auto bit
set bit
std::bitset< BITREFLEVEL_SIZE > BitRefLevel
Bit structure attached to each entity identifying to what mesh entity is attached.
Definition Types.hpp:40

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: