MFEM
v3.1
Finite element discretization library
|
#include <pncmesh.hpp>
Public Member Functions | |
ElementSet (const std::set< Element * > &elements, const Array< Element * > &ncmesh_roots) | |
void | Dump (std::ostream &os) const |
ElementSet () | |
ElementSet (std::istream &is) | |
void | Load (std::istream &is) |
void | Decode (Array< Element * > &elements, const Array< Element * > &ncmesh_roots) const |
Protected Member Functions | |
bool | EncodeTree (Element *elem, const std::set< Element * > &elements) |
void | DecodeTree (Element *elem, int &pos, Array< Element * > &elements) const |
void | SetInt (int pos, int value) |
int | GetInt (int pos) const |
Protected Attributes | |
Array< unsigned char > | data |
encoded refinement (sub-)trees More... | |
Uniquely encodes a set of 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 elements don't have to be leaves, but they must represent subtrees of 'ncmesh_roots'.
Definition at line 257 of file pncmesh.hpp.
mfem::ParNCMesh::ElementSet::ElementSet | ( | const std::set< Element * > & | elements, |
const Array< Element * > & | ncmesh_roots | ||
) |
Definition at line 734 of file pncmesh.cpp.
|
inline |
Definition at line 264 of file pncmesh.hpp.
|
inline |
Definition at line 265 of file pncmesh.hpp.
void mfem::ParNCMesh::ElementSet::Decode | ( | Array< Element * > & | elements, |
const Array< Element * > & | ncmesh_roots | ||
) | const |
Definition at line 779 of file pncmesh.cpp.
|
protected |
Definition at line 759 of file pncmesh.cpp.
void mfem::ParNCMesh::ElementSet::Dump | ( | std::ostream & | os | ) | const |
Definition at line 804 of file pncmesh.cpp.
|
protected |
Definition at line 692 of file pncmesh.cpp.
|
protected |
Definition at line 682 of file pncmesh.cpp.
void mfem::ParNCMesh::ElementSet::Load | ( | std::istream & | is | ) |
Definition at line 810 of file pncmesh.cpp.
|
protected |
Definition at line 673 of file pncmesh.cpp.
|
protected |
encoded refinement (sub-)trees
Definition at line 271 of file pncmesh.hpp.