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 6 of file grid_dist_key.hpp.
#include <grid_dist_key.hpp>
Public Member Functions | |
void | setSub (size_t sub) |
Set the local grid. More... | |
size_t | getSub () const |
Get the local grid. More... | |
base_key | getKey () const |
Get the key. More... | |
base_key & | getKeyRef () |
Get the reference key. More... | |
const base_key & | getKeyRef () const |
Get the reference key. More... | |
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. More... | |
grid_dist_key_dx< dim > | move (const comb< dim > &c) const |
Create a new key moving the old one. More... | |
grid_dist_key_dx (int g_c, const base_key &key) | |
Constructor set the sub-domain grid and the position in local coordinates. More... | |
grid_dist_key_dx () | |
Constructor. | |
std::string | to_string () |
convert the key to string More... | |
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 |
|
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.
i | dimension id |
s | number of steps |
Definition at line 132 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 |
|
inline |
convert the key to string
Definition at line 174 of file grid_dist_key.hpp.