#include <fem_impl.h>
Public Member Functions | |
FEM_Ghost_Stencil (int elType_, int n_, bool addNodes_, const int *ends_, const int *adj_, int idxBase) | |
Create a stencil with this number of elements, and these adjecent elements. | |
void | check (const FEM_Mesh &mesh) const |
Make sure this stencil makes sense for this mesh. | |
int | getType (void) const |
Return the type of element we describe. | |
const int * | getNeighbor (int i, int j) const |
Return a pair consisting of the i'th element's j'th neighbor: the return value's first int is an element type, the second int is an element number. | |
bool | wantNodes (void) const |
FEM_Ghost_Stencil (int elType_, int n_, bool addNodes_, const int *ends_, const int *adj_, int idxBase) | |
Create a stencil with this number of elements, and these adjecent elements. | |
void | check (const FEM_Mesh &mesh) const |
Make sure this stencil makes sense for this mesh. | |
int | getType (void) const |
Return the type of element we describe. | |
const int * | getNeighbor (int i, int j) const |
Return a pair consisting of the i'th element's j'th neighbor: the return value's first int is an element type, the second int is an element number. | |
bool | wantNodes (void) const |
Private Attributes | |
int | elType |
Our element type. | |
int | n |
Number of elements we describe. | |
bool | addNodes |
If true, add ghost nodes as well as elements. | |
intArrayPtr | ends |
Last adjacency entry (plus one), indexed by element. | |
intArrayPtr | adj |
Adjacency entries for each element. |
Definition at line 303 of file fem_impl.h.
FEM_Ghost_Stencil::FEM_Ghost_Stencil | ( | int | elType_, | |
int | n_, | |||
bool | addNodes_, | |||
const int * | ends_, | |||
const int * | adj_, | |||
int | idxBase | |||
) |
Create a stencil with this number of elements, and these adjecent elements.
FEM_Ghost_Stencil::FEM_Ghost_Stencil | ( | int | elType_, | |
int | n_, | |||
bool | addNodes_, | |||
const int * | ends_, | |||
const int * | adj_, | |||
int | idxBase | |||
) |
Create a stencil with this number of elements, and these adjecent elements.
int FEM_Ghost_Stencil::getType | ( | void | ) | const [inline] |
Return the type of element we describe.
Definition at line 338 of file fem_impl.h.
References elType.
Referenced by splitter::addStencil().
Return a pair consisting of the i'th element's j'th neighbor: the return value's first int is an element type, the second int is an element number.
Returns NULL if i doesn't have a j'th neighbor.
Definition at line 346 of file fem_impl.h.
Referenced by splitter::addStencil().
bool FEM_Ghost_Stencil::wantNodes | ( | void | ) | const [inline] |
Definition at line 353 of file fem_impl.h.
References addNodes.
Referenced by splitter::addStencil().
void FEM_Ghost_Stencil::check | ( | const FEM_Mesh & | mesh | ) | const |
Make sure this stencil makes sense for this mesh.
int FEM_Ghost_Stencil::getType | ( | void | ) | const [inline] |
Return a pair consisting of the i'th element's j'th neighbor: the return value's first int is an element type, the second int is an element number.
Returns NULL if i doesn't have a j'th neighbor.
Definition at line 1865 of file ParFUM_internals.h.
bool FEM_Ghost_Stencil::wantNodes | ( | void | ) | const [inline] |
Definition at line 1872 of file ParFUM_internals.h.
References addNodes().
int FEM_Ghost_Stencil::elType [private] |
int FEM_Ghost_Stencil::n [private] |
bool FEM_Ghost_Stencil::addNodes [private] |
If true, add ghost nodes as well as elements.
Definition at line 309 of file fem_impl.h.
Referenced by wantNodes().
intArrayPtr FEM_Ghost_Stencil::ends [private] |
Last adjacency entry (plus one), indexed by element.
That is, element i's data is at [ends[i-1],ends[i])
That is, element i's data is at [ends[i-1],ends[i])
Definition at line 313 of file fem_impl.h.
Referenced by check(), and getNeighbor().
intArrayPtr FEM_Ghost_Stencil::adj [private] |
Adjacency entries for each element.
Stored as a series of pairs: elType, elNum. The first pair for element i starts at 2*(ends[i-1]) the last pair for element i starts at 2*(ends[i]-1) This array then has, in total, 2*ends[n-1] elements.
Stored as a series of pairs: elType, elNum. The first pair for element i starts at 2*(ends[i-1]) the last pair for element i starts at 2*(ends[i]-1) This array then has, in total, 2*ends[n-1] elements.
Definition at line 323 of file fem_impl.h.
Referenced by check(), and getNeighbor().