escript
Revision_
|
describes the distribution of a vector stored on the local process More...
#include <Distribution.h>
Public Member Functions | |
Distribution (Esys_MPIInfo *mpiInfo, const index_t *firstComponent, index_t m, index_t b) | |
~Distribution () | |
index_t | getFirstComponent () const |
index_t | getLastComponent () const |
dim_t | getGlobalNumComponents () const |
dim_t | getMyNumComponents () const |
dim_t | getMinGlobalComponents () const |
dim_t | getMaxGlobalComponents () const |
dim_t | numPositives (const double *x, dim_t block) const |
double * | createRandomVector (dim_t block) const |
Public Attributes | |
index_t * | first_component |
dim_t | reference_counter |
Esys_MPIInfo * | mpi_info |
Static Public Attributes | |
static double | random_seed = .4142135623730951 |
describes the distribution of a vector stored on the local process
paso::Distribution::Distribution | ( | Esys_MPIInfo * | mpiInfo, |
const index_t * | firstComponent, | ||
index_t | m, | ||
index_t | b | ||
) | [inline] |
References Esys_MPIInfo_getReference(), first_component, mpi_info, and Esys_MPIInfo::size.
paso::Distribution::~Distribution | ( | ) | [inline] |
References Esys_MPIInfo_free(), first_component, and mpi_info.
double* paso::Distribution::createRandomVector | ( | dim_t | block | ) | const [inline] |
References getFirstComponent(), getGlobalNumComponents(), getLastComponent(), and random_seed.
index_t paso::Distribution::getFirstComponent | ( | ) | const [inline] |
References first_component, mpi_info, and Esys_MPIInfo::rank.
Referenced by createRandomVector(), and getMyNumComponents().
dim_t paso::Distribution::getGlobalNumComponents | ( | ) | const [inline] |
References getMaxGlobalComponents(), and getMinGlobalComponents().
Referenced by createRandomVector().
index_t paso::Distribution::getLastComponent | ( | ) | const [inline] |
References first_component, mpi_info, and Esys_MPIInfo::rank.
Referenced by createRandomVector(), and getMyNumComponents().
dim_t paso::Distribution::getMaxGlobalComponents | ( | ) | const [inline] |
References first_component, mpi_info, and Esys_MPIInfo::size.
Referenced by getGlobalNumComponents().
dim_t paso::Distribution::getMinGlobalComponents | ( | ) | const [inline] |
References first_component.
Referenced by getGlobalNumComponents().
dim_t paso::Distribution::getMyNumComponents | ( | ) | const [inline] |
References getFirstComponent(), and getLastComponent().
Referenced by numPositives().
dim_t paso::Distribution::numPositives | ( | const double * | x, |
dim_t | block | ||
) | const [inline] |
References Esys_MPIInfo::comm, getMyNumComponents(), mpi_info, and MPI_INT.
Referenced by Distribution(), getFirstComponent(), getLastComponent(), getMaxGlobalComponents(), getMinGlobalComponents(), and ~Distribution().
Referenced by Distribution(), getFirstComponent(), getLastComponent(), getMaxGlobalComponents(), numPositives(), and ~Distribution().
double paso::Distribution::random_seed = .4142135623730951 [static] |
Referenced by createRandomVector().