MFEM  v3.3.2
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Public Attributes | List of all members
mfem::NCMesh::Element Struct Reference

#include <ncmesh.hpp>

Public Member Functions

 Element (int geom, int attr)
 

Public Attributes

char geom
 Geometry::Type of the element. More...
 
char ref_type
 bit mask of X,Y,Z refinements (bits 0,1,2 respectively) More...
 
char flag
 generic flag/marker, can be used by algorithms More...
 
int index
 element number in the Mesh, -1 if refined More...
 
int rank
 processor number (ParNCMesh), -1 if undefined/unknown More...
 
int attribute
 
union {
   int   node [8]
 element corners (if ref_type == 0) More...
 
   int   child [8]
 2-8 children (if ref_type != 0) More...
 
}; 
 
int parent
 parent element, -1 if this is a root element, -2 if free More...
 

Detailed Description

This is an element in the refinement hierarchy. Each element has either been refined and points to its children, or is a leaf and points to its vertex nodes.

Definition at line 332 of file ncmesh.hpp.

Constructor & Destructor Documentation

mfem::NCMesh::Element::Element ( int  geom,
int  attr 
)

Definition at line 423 of file ncmesh.cpp.

Member Data Documentation

union { ... }
int mfem::NCMesh::Element::attribute

Definition at line 339 of file ncmesh.hpp.

int mfem::NCMesh::Element::child[8]

2-8 children (if ref_type != 0)

Definition at line 343 of file ncmesh.hpp.

char mfem::NCMesh::Element::flag

generic flag/marker, can be used by algorithms

Definition at line 336 of file ncmesh.hpp.

char mfem::NCMesh::Element::geom

Geometry::Type of the element.

Definition at line 334 of file ncmesh.hpp.

int mfem::NCMesh::Element::index

element number in the Mesh, -1 if refined

Definition at line 337 of file ncmesh.hpp.

int mfem::NCMesh::Element::node[8]

element corners (if ref_type == 0)

Definition at line 342 of file ncmesh.hpp.

int mfem::NCMesh::Element::parent

parent element, -1 if this is a root element, -2 if free

Definition at line 345 of file ncmesh.hpp.

int mfem::NCMesh::Element::rank

processor number (ParNCMesh), -1 if undefined/unknown

Definition at line 338 of file ncmesh.hpp.

char mfem::NCMesh::Element::ref_type

bit mask of X,Y,Z refinements (bits 0,1,2 respectively)

Definition at line 335 of file ncmesh.hpp.


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