![]() |
MFEM v4.8.0
Finite element discretization library
|
#include <pncmesh.hpp>
Public Member Functions | |
ElementSet (NCMesh *ncmesh=NULL, bool include_ref_types=false) | |
ElementSet (const ElementSet &other) | |
void | Encode (const Array< int > &elements) |
void | Dump (std::ostream &os) const |
void | Load (std::istream &is) |
void | Decode (Array< int > &elements) const |
void | SetNCMesh (NCMesh *ncmesh_) |
const NCMesh * | GetNCMesh () const |
Protected Member Functions | |
void | EncodeTree (int elem) |
void | DecodeTree (int elem, int &pos, Array< int > &elements) const |
void | WriteInt (int value) |
int | GetInt (int pos) const |
void | FlagElements (const Array< int > &elements, char flag) |
std::string | RefPath () const |
Protected Attributes | |
Array< unsigned char > | data |
encoded refinement (sub-)trees | |
NCMesh * | ncmesh |
bool | include_ref_types |
Array< int > | ref_path |
Uniquely encodes a set of leaf elements in the refinement hierarchy of an NCMesh. Can be dumped to a stream, sent to another processor, loaded, and decoded to identify the same set of elements (refinements) in a different but compatible NCMesh. The encoding can optionally include the refinement types needed to reach the leaves, so the element set can be decoded (recreated) even if the receiver has an incomplete tree.
Definition at line 384 of file pncmesh.hpp.
|
inline |
Definition at line 387 of file pncmesh.hpp.
mfem::ParNCMesh::ElementSet::ElementSet | ( | const ElementSet & | other | ) |
Definition at line 2357 of file pncmesh.cpp.
void mfem::ParNCMesh::ElementSet::Decode | ( | Array< int > & | elements | ) | const |
Definition at line 2514 of file pncmesh.cpp.
|
protected |
Definition at line 2472 of file pncmesh.cpp.
void mfem::ParNCMesh::ElementSet::Dump | ( | std::ostream & | os | ) | const |
Definition at line 2524 of file pncmesh.cpp.
void mfem::ParNCMesh::ElementSet::Encode | ( | const Array< int > & | elements | ) |
Definition at line 2433 of file pncmesh.cpp.
|
protected |
Definition at line 2396 of file pncmesh.cpp.
|
protected |
Definition at line 2381 of file pncmesh.cpp.
|
protected |
Definition at line 2372 of file pncmesh.cpp.
|
inline |
Definition at line 398 of file pncmesh.hpp.
void mfem::ParNCMesh::ElementSet::Load | ( | std::istream & | is | ) |
Definition at line 2530 of file pncmesh.cpp.
|
protected |
Definition at line 2454 of file pncmesh.cpp.
|
inline |
Definition at line 397 of file pncmesh.hpp.
|
protected |
Definition at line 2363 of file pncmesh.cpp.
|
protected |
encoded refinement (sub-)trees
Definition at line 401 of file pncmesh.hpp.
|
protected |
Definition at line 403 of file pncmesh.hpp.
|
protected |
Definition at line 402 of file pncmesh.hpp.
|
mutableprotected |
Definition at line 413 of file pncmesh.hpp.