Distributed grid iterator. More...
Distributed grid iterator.
Iterator across the local elements of the distributed grid
dim | dimensionality of the grid |
device_grid | type of basic grid |
impl | implementation |
Definition at line 257 of file grid_dist_id_iterator.hpp.
#include <grid_dist_id_iterator.hpp>
Public Member Functions | |
grid_dist_iterator< dim, device_grid, FIXED > & | operator= (const grid_dist_iterator< dim, device_grid, FIXED > &tmp) |
Copy operator=. More... | |
grid_dist_iterator (const openfpm::vector< device_grid > &gk, const openfpm::vector< GBoxes< device_grid::dims >> &gdb_ext) | |
Constructor of the distributed grid iterator. More... | |
grid_dist_iterator< dim, device_grid, FIXED > & | operator++ () |
Get the next element. More... | |
bool | isNext () |
Check if there is the next element. More... | |
grid_dist_key_dx< dim > | get () |
Get the actual key. More... | |
const openfpm::vector< GBoxes < device_grid::dims > > & | getGBoxes () |
Get the boxes. More... | |
grid_key_dx< dim > | getGKey (const grid_dist_key_dx< dim > &k) |
Convert a g_dist_key_dx into a global key. More... | |
template<unsigned int id> | |
grid_dist_lin_dx | getStencil () |
Return the stencil point offset. More... | |
Private Member Functions | |
void | selectValidGrid () |
from g_c increment g_c until you find a valid grid More... | |
Private Attributes | |
size_t | g_c |
grid list counter | |
const openfpm::vector < device_grid > & | gList |
List of the grids we are going to iterate. | |
const openfpm::vector< GBoxes < device_grid::dims > > & | gdb_ext |
Extension of each grid: domain and ghost + domain. | |
grid_key_dx_iterator< dim, stencil > | a_it |
Actual iterator. | |
|
inline |
Constructor of the distributed grid iterator.
gk | std::vector of the local grid |
gdb_ext | information about the local grids |
Definition at line 311 of file grid_dist_id_iterator.hpp.
|
inline |
|
inline |
Get the boxes.
Get the boxes that define the local grids
Definition at line 380 of file grid_dist_id_iterator.hpp.
|
inline |
Convert a g_dist_key_dx into a global key.
k | local coordinates to convert into global |
Definition at line 395 of file grid_dist_id_iterator.hpp.
|
inline |
Return the stencil point offset.
id |
Definition at line 415 of file grid_dist_id_iterator.hpp.
|
inline |
Check if there is the next element.
Definition at line 353 of file grid_dist_id_iterator.hpp.
|
inline |
Get the next element.
Definition at line 330 of file grid_dist_id_iterator.hpp.
|
inline |
Copy operator=.
tmp | iterator to copy |
Definition at line 295 of file grid_dist_id_iterator.hpp.
|
inlineprivate |
from g_c increment g_c until you find a valid grid
Definition at line 274 of file grid_dist_id_iterator.hpp.