Overture  Version 25
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
GridDistribution Class Reference

#include <GridDistribution.h>

Public Member Functions

 GridDistribution (int grid=0, real workLoad=0., int level=0)
 
 ~GridDistribution ()
 
 GridDistribution (const GridDistribution &x)
 
GridDistributionoperator= (const GridDistribution &x)
 
int getGrid () const
 
int getProcessorRange (int &pStart, int &pEnd) const
 
int getRefinementLevel () const
 
real getWorkLoad () const
 
int getGridPoints (int gridPoints[3]) const
 
int setGrid (int grid)
 
int setGridAndRefinementLevel (int grid, int level)
 
int setProcessors (int pStart, int pEnd)
 
int setRefinementLevel (int level)
 
int setGridPoints (int gridPoints[3])
 
int setWorkLoadAndGridPoints (real workLoad, int gridPoints[3])
 
bool operator< (const GridDistribution &x) const
 
int determineAGoodNumberOfProcessors (int &numProc, const int minProc, const int maxProc)
 
void computeParallelArrayDistribution (int *dimProc)
 
virtual int get (const GenericDataBase &dir, const aString &name)
 
virtual int put (GenericDataBase &dir, const aString &name) const
 

Static Public Member Functions

static void computeParallelArrayDistribution (const int nProcs, const int nDims, int *dimVec, int *dimProc)
 
static int getMinimumNumberOfPointsPerDimensionPerProcessor (int numberOfDimensions)
 
static int setMinimumNumberOfPointsPerDimensionPerProcessor (int numberOfDimensions, int minNumber)
 

Static Public Attributes

static int minNumberPerDimension [3] ={21,9,7}
 

Protected Attributes

int pStart
 
int pEnd
 
int grid
 
real workLoad
 
int refinementLevel
 
int dims [3]
 

Constructor & Destructor Documentation

GridDistribution::GridDistribution ( int  grid = 0,
real  workLoad = 0.,
int  level = 0 
)

References dims, grid, pEnd, pStart, refinementLevel, and workLoad.

GridDistribution::~GridDistribution ( )
GridDistribution::GridDistribution ( const GridDistribution x)

Member Function Documentation

void GridDistribution::computeParallelArrayDistribution ( int *  dimProc)

References dims, pEnd, and pStart.

Referenced by determineAGoodNumberOfProcessors().

void GridDistribution::computeParallelArrayDistribution ( const int  nProcs,
const int  nDims,
int *  dimVec,
int *  dimProc 
)
static
int GridDistribution::determineAGoodNumberOfProcessors ( int &  numProc,
const int  minProc,
const int  maxProc 
)
int GridDistribution::get ( const GenericDataBase dir,
const aString name 
)
virtual
int GridDistribution::getGrid ( ) const

References grid.

Referenced by GridDistributionList::display().

int GridDistribution::getGridPoints ( int  gridPoints[3]) const
int GridDistribution::getMinimumNumberOfPointsPerDimensionPerProcessor ( int  numberOfDimensions)
static
int GridDistribution::getProcessorRange ( int &  pStart,
int &  pEnd 
) const
int GridDistribution::getRefinementLevel ( ) const
real GridDistribution::getWorkLoad ( ) const

References workLoad.

Referenced by GridDistributionList::display().

bool GridDistribution::operator< ( const GridDistribution x) const
inline

References workLoad.

GridDistribution & GridDistribution::operator= ( const GridDistribution x)

References dims, grid, pEnd, pStart, refinementLevel, and workLoad.

int GridDistribution::put ( GenericDataBase dir,
const aString name 
) const
virtual
int GridDistribution::setGrid ( int  grid)

References grid.

int GridDistribution::setGridAndRefinementLevel ( int  grid,
int  level 
)

References grid, and refinementLevel.

Referenced by Regrid::regridAligned().

int GridDistribution::setGridPoints ( int  gridPoints[3])

References dims.

Referenced by setWorkLoadAndGridPoints().

int GridDistribution::setMinimumNumberOfPointsPerDimensionPerProcessor ( int  numberOfDimensions,
int  minNumber 
)
static

References assert, and minNumberPerDimension.

Referenced by main().

int GridDistribution::setProcessors ( int  pStart,
int  pEnd 
)

References pEnd, and pStart.

Referenced by Regrid::regridAligned().

int GridDistribution::setRefinementLevel ( int  level)

References refinementLevel.

int GridDistribution::setWorkLoadAndGridPoints ( real  workLoad,
int  gridPoints[3] 
)

References setGridPoints(), and workLoad.

Referenced by Regrid::regridAligned().

Member Data Documentation

int GridDistribution::dims[3]
protected
int GridDistribution::grid
protected
int GridDistribution::minNumberPerDimension ={21,9,7}
static
int GridDistribution::pEnd
protected
int GridDistribution::pStart
protected
int GridDistribution::refinementLevel
protected
real GridDistribution::workLoad
protected

The documentation for this class was generated from the following files: