![]() |
PEARL
Parallel Event Access and Replay Library
|
Stores information related to cartesian grid topologies. More...
#include <pearl/Cartesian.h>
Public Types | |
typedef std::vector< uint32_t > | cart_dims |
Container type for topology dimensions. | |
typedef std::vector< bool > | cart_period |
Container type for topology periodicity. | |
typedef std::vector< uint32_t > | cart_coords |
Public Member Functions | |
uint32_t | num_dimensions () const |
void | get_dimensionv (cart_dims &outv) const |
void | get_periodv (cart_period &outv) const |
void | get_coords (const Location &location, cart_coords &coords) const |
void | set_coords (const Location &location, const cart_coords &coords) |
Constructors & destructor | |
Cartesian (uint32_t id, const cart_dims &num_locations, const cart_period &is_periodic) |
The class Cartesian provides information related to virtual cartesian grid topologies. These grids can have arbitrary dimensions. In addition, each dimension can be periodic or not (e.g., to define a torus topology).
typedef std::vector<uint32_t> pearl::Cartesian::cart_coords |
typedef std::vector<uint32_t> pearl::Cartesian::cart_dims |
typedef std::vector<bool> pearl::Cartesian::cart_period |
pearl::Cartesian::Cartesian | ( | uint32_t | id, |
const cart_dims & | num_locations, | ||
const cart_period & | is_periodic | ||
) |
void pearl::Cartesian::get_coords | ( | const Location & | location, |
cart_coords & | coords | ||
) | const |
void pearl::Cartesian::get_dimensionv | ( | cart_dims & | outv | ) | const |
void pearl::Cartesian::get_periodv | ( | cart_period & | outv | ) | const |
uint32_t pearl::Cartesian::num_dimensions | ( | ) | const |
void pearl::Cartesian::set_coords | ( | const Location & | location, |
const cart_coords & | coords | ||
) |
![]() |
Copyright © 1998–2014 Forschungszentrum Jülich GmbH,
Jülich Supercomputing Centre
Copyright © 2009–2014 German Research School for Simulation Sciences GmbH, Laboratory for Parallel Programming |