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 11 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... | |
grid_key_dx< dim > | getKey () const |
Get the key. More... | |
grid_key_dx< dim > & | getKeyRef () |
Get the reference key. More... | |
bool | operator== (const grid_dist_key_dx< dim > &key_t) |
grid_dist_key_dx< dim > | move (size_t i, size_t 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 grid_key_dx< dim > &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 | |
grid_key_dx< dim > | 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 118 of file grid_dist_key.hpp.
|
inline |
|
inline |
|
inline |
Get the local grid.
Definition at line 38 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 90 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 104 of file grid_dist_key.hpp.
|
inline |
|
inline |
convert the key to string
Definition at line 130 of file grid_dist_key.hpp.