Structure for stencil iterator. More...
Structure for stencil iterator.
Np | number of stencil points |
Definition at line 18 of file stencil_type.hpp.
#include <stencil_type.hpp>
Public Member Functions | |
template<unsigned int dim2> | |
void | set_stencil (const grid_key_dx< dim2 >(&stencil_pnt)[Np]) |
Set the stencil points. | |
template<unsigned int id> | |
size_t | getStencil () const |
Get the calculated stencil offset. | |
template<unsigned int dim2, typename ginfo > | |
void | calc_offsets (const ginfo &g, const grid_key_dx< dim2 > &start_p) |
Calculate the offsets of the stencil points. | |
template<unsigned int dim2, typename ginfo > | |
void | calc_offsets (const ginfo &g, const grid_key_dx< dim2 > &start_p, const grid_key_dx< dim2 >(&stencil_pnt)[Np]) |
Calculate the offsets of the stencil points. | |
void | increment () |
Increment the offsets by one. | |
template<typename ginfo > | |
void | adjust_offset (size_t i, size_t idr, const ginfo &grid_base) |
Adjust the offset. | |
template<unsigned int tot_add> | |
void | private_sum () |
Sum a template constant. | |
void | private_adjust (size_t tot_add) |
Sum a template constant. | |
Data Fields | |
long int | stencil_offset [Np] |
set of offsets for the stencil | |
grid_key_dx< dim > | stencil_pnt [Np] |
Stencil points. | |
Static Public Attributes | |
static const unsigned int | nsp = Np |
Number of stencil points. | |
|
inline |
Adjust the offset.
i | component |
idr | component |
grid_base | obbect containing the grid informations |
Definition at line 116 of file stencil_type.hpp.
|
inline |
Calculate the offsets of the stencil points.
g | object storing the grid information |
start_p | starting point where we calculate the stencil offsets |
Definition at line 61 of file stencil_type.hpp.
|
inline |
Calculate the offsets of the stencil points.
dim | dimensionality |
ginfo | grid information object |
g | information of the grid |
start_p | starting point |
stencil_pnt | stencil points in the grid |
Definition at line 85 of file stencil_type.hpp.
|
inline |
Get the calculated stencil offset.
id | stencil point |
Definition at line 48 of file stencil_type.hpp.
|
inline |
Increment the offsets by one.
Definition at line 102 of file stencil_type.hpp.
|
inline |
Sum a template constant.
tot_add | Add an offset to all the pointer |
Definition at line 142 of file stencil_type.hpp.
|
inline |
Sum a template constant.
compile-time | offset |
Definition at line 131 of file stencil_type.hpp.
|
inline |
|
static |
Number of stencil points.
Definition at line 21 of file stencil_type.hpp.
long int stencil_offset_compute< dim, Np >::stencil_offset[Np] |
set of offsets for the stencil
Definition at line 24 of file stencil_type.hpp.
grid_key_dx<dim> stencil_offset_compute< dim, Np >::stencil_pnt[Np] |
Stencil points.
Definition at line 27 of file stencil_type.hpp.