MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::NCMesh::Node Struct Reference

#include <ncmesh.hpp>

Inheritance diagram for mfem::NCMesh::Node:
[legend]
Collaboration diagram for mfem::NCMesh::Node:
[legend]

Public Member Functions

 Node ()
 
 ~Node ()
 
bool HasVertex () const
 
bool HasEdge () const
 
bool UnrefVertex ()
 
bool UnrefEdge ()
 

Public Attributes

char vert_refc
 
char edge_refc
 
int vert_index
 
int edge_index
 
- Public Attributes inherited from mfem::Hashed2
int p1
 
int p2
 
int next
 

Detailed Description

A Node can hold a vertex, an edge, or both. Elements directly point to their corner nodes, but edge nodes also exist and can be accessed using a hash-table given their two end-point node IDs. All nodes can be accessed in this way, with the exception of top-level vertex nodes. When an element is being refined, the mid-edge nodes are readily available with this mechanism. The new elements "sign in" to the nodes by increasing the reference counts of their vertices and edges. The parent element "signs off" its nodes by decrementing the ref counts.

Definition at line 505 of file ncmesh.hpp.

Constructor & Destructor Documentation

◆ Node()

mfem::NCMesh::Node::Node ( )
inline

Definition at line 510 of file ncmesh.hpp.

◆ ~Node()

mfem::NCMesh::Node::~Node ( )

Definition at line 298 of file ncmesh.cpp.

Member Function Documentation

◆ HasEdge()

bool mfem::NCMesh::Node::HasEdge ( ) const
inline

Definition at line 514 of file ncmesh.hpp.

◆ HasVertex()

bool mfem::NCMesh::Node::HasVertex ( ) const
inline

Definition at line 513 of file ncmesh.hpp.

◆ UnrefEdge()

bool mfem::NCMesh::Node::UnrefEdge ( )
inline

Definition at line 518 of file ncmesh.hpp.

◆ UnrefVertex()

bool mfem::NCMesh::Node::UnrefVertex ( )
inline

Definition at line 517 of file ncmesh.hpp.

Member Data Documentation

◆ edge_index

int mfem::NCMesh::Node::edge_index

Definition at line 508 of file ncmesh.hpp.

◆ edge_refc

char mfem::NCMesh::Node::edge_refc

Definition at line 507 of file ncmesh.hpp.

◆ vert_index

int mfem::NCMesh::Node::vert_index

Definition at line 508 of file ncmesh.hpp.

◆ vert_refc

char mfem::NCMesh::Node::vert_refc

Definition at line 507 of file ncmesh.hpp.


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