|
TRUST 1.9.8
HPC thermohydraulic platform
|
: This class describes an IJ plane of an IJK_Field_local. More...
#include <IJ_layout.h>
Public Member Functions | |
| int | ni () const |
| int | nj () const |
| int | ghost () const |
| int | j_stride () const |
| template<typename T> | |
| IJ_layout (const T &f) | |
| template<typename T> | |
| T & | operator() (T *origin, int i, int j) const |
| template<typename T> | |
| const T & | operator() (const T *origin, int i, int j) const |
| template<typename T> | |
| T & | linear (T *origin, int linear_index) const |
| template<typename T> | |
| const T & | linear (const T *origin, int linear_index) const |
| void | linear_to_ij (int linear_index, int &i, int &j) const |
Public Attributes | |
| int | ni_ |
| int | nj_ |
| int | ghost_ |
| int | j_stride_ |
: This class describes an IJ plane of an IJK_Field_local.
It just encapsulates the offset computation: j * j_stride_ + i with bound checking in debug... This class is usefull to safely optimize the code !
Definition at line 26 of file IJ_layout.h.
|
inline |
Definition at line 35 of file IJ_layout.h.
|
inline |
Definition at line 31 of file IJ_layout.h.
|
inline |
Definition at line 32 of file IJ_layout.h.
|
inline |
Definition at line 65 of file IJ_layout.h.
|
inline |
Definition at line 57 of file IJ_layout.h.
|
inline |
Definition at line 72 of file IJ_layout.h.
|
inline |
Definition at line 29 of file IJ_layout.h.
|
inline |
Definition at line 30 of file IJ_layout.h.
|
inline |
Definition at line 48 of file IJ_layout.h.
|
inline |
Definition at line 39 of file IJ_layout.h.
| int IJ_layout::ghost_ |
Definition at line 82 of file IJ_layout.h.
| int IJ_layout::j_stride_ |
Definition at line 82 of file IJ_layout.h.
| int IJ_layout::ni_ |
Definition at line 82 of file IJ_layout.h.
| int IJ_layout::nj_ |
Definition at line 82 of file IJ_layout.h.