Grid key for a distributed grid. More...
Grid key for a distributed grid.
It contain from which local sub-domain grid come from, and the local grid_key_dx
Definition at line 43 of file grid_dist_key.hpp.
#include <grid_dist_key.hpp>
Public Member Functions | |
void | setSub (size_t sub) |
Set the local grid. | |
size_t | getSub () const |
Get the local grid. | |
base_key | getKey () const |
Get the key. | |
base_key & | getKeyRef () |
Get the reference key. | |
const base_key & | getKeyRef () const |
Get the reference key. | |
bool | operator== (const grid_dist_key_dx< dim > &key_t) |
grid_dist_key_dx< dim, base_key > | move (size_t i, int s) const |
Create a new key moving the old one. | |
grid_dist_key_dx< dim > | move (const comb< dim > &c) const |
Create a new key moving the old one. | |
grid_dist_key_dx (int g_c, const base_key &key) | |
Constructor set the sub-domain grid and the position in local coordinates. | |
grid_dist_key_dx () | |
Constructor. | |
std::string | to_string () |
convert the key to string | |
Private Attributes | |
size_t | g_c |
grid list counter | |
base_key | key |
Local grid iterator. | |
|
inline |
Constructor set the sub-domain grid and the position in local coordinates.
g_c | sub-domain |
key | key |
Definition at line 162 of file grid_dist_key.hpp.
|
inline |
Constructor.
Definition at line 168 of file grid_dist_key.hpp.
|
inline |
|
inline |
|
inline |
|
inline |
Get the local grid.
Definition at line 70 of file grid_dist_key.hpp.
|
inline |
Create a new key moving the old one.
c | where to move for each component |
Definition at line 148 of file grid_dist_key.hpp.
|
inline |
Create a new key moving the old one.
i | dimension id |
s | number of steps |
Definition at line 132 of file grid_dist_key.hpp.
|
inline |
Definition at line 114 of file grid_dist_key.hpp.
|
inline |
|
inline |
convert the key to string
Definition at line 174 of file grid_dist_key.hpp.
|
private |
grid list counter
Definition at line 47 of file grid_dist_key.hpp.
|
private |
Local grid iterator.
Definition at line 51 of file grid_dist_key.hpp.