Overture  Version 25
Static Public Member Functions | List of all members
ParallelUtility Class Reference

#include <ParallelUtility.h>

Static Public Member Functions

static int broadCastArgs (int &argc, char **&argv, int sourceProcessor=0, MPI_Comm comm=MPI_COMM_WORLD)
 
static int broadCastArgsCleanup (int &argc, char **&argv, int sourceProcessor=0)
 
static real getMaxValue (real value, int processor=-1, MPI_Comm comm=MPI_COMM_WORLD)
 
static int getMaxValue (int value, int processor=-1, MPI_Comm comm=MPI_COMM_WORLD)
 
static doubleLengthInt getMaxValue (doubleLengthInt value, int processor=-1, MPI_Comm comm=MPI_COMM_WORLD)
 
static real getMinValue (real value, int processor=-1, MPI_Comm comm=MPI_COMM_WORLD)
 
static int getMinValue (int value, int processor=-1, MPI_Comm comm=MPI_COMM_WORLD)
 
static doubleLengthInt getMinValue (doubleLengthInt value, int processor=-1, MPI_Comm comm=MPI_COMM_WORLD)
 
static real getSum (real value, int processor=-1, MPI_Comm comm=MPI_COMM_WORLD)
 
static int getSum (int value, int processor=-1, MPI_Comm comm=MPI_COMM_WORLD)
 
static doubleLengthInt getSum (doubleLengthInt value, int processor=-1, MPI_Comm comm=MPI_COMM_WORLD)
 
static void getMaxValues (real *value, real *maxValue, int n, int processor=-1, MPI_Comm comm=MPI_COMM_WORLD)
 
static void getMaxValues (int *value, int *maxValue, int n, int processor=-1, MPI_Comm comm=MPI_COMM_WORLD)
 
static void getMinValues (real *value, real *minValue, int n, int processor=-1, MPI_Comm comm=MPI_COMM_WORLD)
 
static void getMinValues (int *value, int *minvalue, int n, int processor=-1, MPI_Comm comm=MPI_COMM_WORLD)
 
static void getSums (real *value, real *sum, int n, int processor=-1, MPI_Comm comm=MPI_COMM_WORLD)
 
static void getSums (int *value, int *sum, int n, int processor=-1, MPI_Comm comm=MPI_COMM_WORLD)
 
static int copy (intArray &dest, Index *D, const intArray &src, Index *S, int nd)
 
static int copy (floatArray &dest, Index *D, const floatArray &src, Index *S, int nd)
 
static int copy (doubleArray &dest, Index *D, const doubleArray &src, Index *S, int nd)
 
static int getArgsFromFile (const aString &fileName, int &argc, char **&argv)
 
static int deleteArgsFromFile (int &argc, char **&argv)
 
static bool getLocalArrayBounds (const realArray &u, const realSerialArray &uLocal, Index &I1, Index &I2, Index &I3, int &n1a, int &n1b, int &n2a, int &n2b, int &n3a, int &n3b, int option=0)
 
static bool getLocalArrayBounds (const realArray &u, const realSerialArray &uLocal, Index &I1, Index &I2, Index &I3, int option=0)
 
static bool getLocalArrayBounds (const realArray &u, const realSerialArray &uLocal, Index &I1, Index &I2, Index &I3, Index &I4, int &n1a, int &n1b, int &n2a, int &n2b, int &n3a, int &n3b, int &n4a, int &n4b, int option=0)
 
static bool getLocalArrayBounds (const realArray &u, const realSerialArray &uLocal, Index &I1, Index &I2, Index &I3, Index &I4, int option=0)
 
static bool getLocalArrayBounds (const intArray &u, const intSerialArray &uLocal, Index &I1, Index &I2, Index &I3, int &n1a, int &n1b, int &n2a, int &n2b, int &n3a, int &n3b, int option=0)
 
static bool getLocalArrayBounds (const intArray &u, const intSerialArray &uLocal, Index &I1, Index &I2, Index &I3, int option=0)
 
static int redistribute (const intArray &u, intArray &v, const Range &P)
 
static int redistribute (const floatArray &u, floatArray &v, const Range &P)
 
static int redistribute (const doubleArray &u, doubleArray &v, const Range &P)
 
static int redistribute (const intArray &u, intSerialArray &v)
 
static int redistribute (const floatArray &u, floatSerialArray &v)
 
static int redistribute (const doubleArray &u, doubleSerialArray &v)
 

Member Function Documentation

int ParallelUtility::broadCastArgs ( int &  argc,
char **&  argv,
int  sourceProcessor = 0,
MPI_Comm  comm = MPI_COMM_WORLD 
)
static

References aString, broadCast(), max(), and NULL.

Referenced by Overture::start().

int ParallelUtility::broadCastArgsCleanup ( int &  argc,
char **&  argv,
int  sourceProcessor = 0 
)
static

References max(), and NULL.

int ParallelUtility::copy ( intArray &  dest,
Index *  D,
const intArray &  src,
Index *  S,
int  nd 
)
static
int ParallelUtility::copy ( floatArray &  dest,
Index *  D,
const floatArray &  src,
Index *  S,
int  nd 
)
static
int ParallelUtility::copy ( doubleArray &  dest,
Index *  D,
const doubleArray &  src,
Index *  S,
int  nd 
)
static
int ParallelUtility::deleteArgsFromFile ( int &  argc,
char **&  argv 
)
static
int ParallelUtility::getArgsFromFile ( const aString fileName,
int &  argc,
char **&  argv 
)
static

References aString, getLineFromFile(), and NULL.

bool ParallelUtility::getLocalArrayBounds ( const realArray u,
const realSerialArray uLocal,
Index &  I1,
Index &  I2,
Index &  I3,
int &  n1a,
int &  n1b,
int &  n2a,
int &  n2b,
int &  n3a,
int &  n3b,
int  option = 0 
)
static

References max(), and min().

Referenced by Ogmg::addAdjustmentForSingularProblem(), PlotIt::adjustGrid(), MappedGridOperators::applyBCaDotGradU(), MappedGridOperators::applyBCaDotU(), MappedGridOperators::applyBCGenDiv(), MappedGridOperators::applyBCneumann(), MappedGridOperators::applyBCnormalComponent(), MappedGridOperators::applyBCnormalDerivative(), MappedGridOperators::applyBCsymmetry(), MappedGridOperators::applyBCtangentialComponent(), Ogmg::applyInitialConditions(), ArrayUtil::assign(), Ogmg::assignBoundaryConditionCoefficients(), OGFunction::assignGridFunction(), Integrate::buildAdaptiveMeshRefinementSurfaceWeights(), Ogmg::buildExtraLevelsNew(), Ogmg::buildPredefinedCoefficientMatrix(), checkError(), Ogen::checkForBoundaryAdjustments(), Ogen::checkHoleCutting(), Ogen::checkInterpolationOnBoundaries(), checkOverlappingGrid(), Ogen::classifyPoints(), Ogen::classifyRedundantPoints(), Ogmg::coarseGridSolverTest(), Ogmg::coarseToFineTest(), DerivedFunctions::computeDerivedFunctions(), ErrorEstimator::computeErrorFunction(), ErrorEstimator::computeFunction(), DataPointMapping::computeGhostPoints(), Ogmg::computeLeftNullVector(), Ogen::computeOverlap(), Integrate::computeSurfaceWeights(), Integrate::computeWeights(), Ogmg::createNullVector(), Ogen::cutHolesNew(), Ogen::cutHolesNewer(), dudt(), SurfaceStitcher::enlargeGap(), SurfaceStitcher::enlargeGapWidth(), EquationSolver::evaluateExtraEquation(), Ogen::explicitHoleCutting(), Ogmg::fineToCoarse(), Ogmg::fineToCoarseTest(), GenericMappedGridOperators::finishBoundaryConditions(), SparseRepForMGF::fixUpClassify(), OGFunction::gd(), Ogen::generateInterpolationArrays(), Ogen::getAdjustmentVectors(), GridFunctionNorms::getBounds(), getDt(), PlotIt::getGridBounds(), Mapping::getGridMinAndMax(), GridStatistics::getGridSpacing(), getInitialConditions(), getLocalArrayBounds(), getSignForJacobian(), Ogmg::getSingularParameter(), getTrueSolution(), DerivedFunctions::getUserDefinedDerivedFunction(), PlotIt::grid3d(), ExposedPoints::initialize(), Ogen::interpolateAll(), InterpolatePointsOnAGrid::interpolateAllPoints(), Interpolate::interpolateCoarseFromFine(), InterpolateRefinements::interpolateRefinementBoundaries(), InterpolateRefinements::interpolateRefinements(), main(), markGhostPoints(), Ogen::markMaskAtGhost(), Ogen::markPointsNeededForInterpolation(), Ogen::markPointsNeededForInterpolationNew(), Ogmg::operatorAveraging(), PlotIt::plotGrid2d(), PlotIt::plotGridBoundaries(), PlotIt::plotParallelGridDistribution(), GridStatistics::printGridStatistics(), Ogmg::removeAdjustmentForSingularProblem(), Ogen::removeExteriorPointsNew(), rungeKutta2(), SparseRepForMGF::setClassify(), SparseRepForMGF::setCoefficientIndex(), DataPointMapping::setDataPoints(), Oges::setEquationAndBoundaryConditions(), GenericMappedGridOperators::setExtrapolationCoefficients(), DataPointMapping::setMapping(), GridCollection::setMaskAtRefinements(), Ogmg::setMean(), GenericMappedGridOperators::setPeriodicCoefficients(), GenericMappedGridOperators::setSymmetryCoefficients(), ErrorEstimator::smooth(), Ogmg::smoothLine(), Ogmg::smoothTest(), Integrate::surfaceIntegral(), PlotIt::unAdjustGrid(), Ogen::unmarkBoundaryInterpolationPoints(), Ogen::unmarkInterpolationPoints(), Ogen::updateBoundaryAdjustment(), Ogen::updateRefinementNew(), Ogen::updateRefinementNewer(), SparseRepForMGF::updateToMatchGrid(), Integrate::volume(), and Integrate::volumeIntegral().

bool ParallelUtility::getLocalArrayBounds ( const realArray u,
const realSerialArray uLocal,
Index &  I1,
Index &  I2,
Index &  I3,
int  option = 0 
)
static

References getLocalArrayBounds().

bool ParallelUtility::getLocalArrayBounds ( const realArray u,
const realSerialArray uLocal,
Index &  I1,
Index &  I2,
Index &  I3,
Index &  I4,
int &  n1a,
int &  n1b,
int &  n2a,
int &  n2b,
int &  n3a,
int &  n3b,
int &  n4a,
int &  n4b,
int  option = 0 
)
static

References max(), and min().

bool ParallelUtility::getLocalArrayBounds ( const realArray u,
const realSerialArray uLocal,
Index &  I1,
Index &  I2,
Index &  I3,
Index &  I4,
int  option = 0 
)
static

References getLocalArrayBounds().

bool ParallelUtility::getLocalArrayBounds ( const intArray &  u,
const intSerialArray &  uLocal,
Index &  I1,
Index &  I2,
Index &  I3,
int &  n1a,
int &  n1b,
int &  n2a,
int &  n2b,
int &  n3a,
int &  n3b,
int  option = 0 
)
static

References max(), and min().

bool ParallelUtility::getLocalArrayBounds ( const intArray &  u,
const intSerialArray &  uLocal,
Index &  I1,
Index &  I2,
Index &  I3,
int  option = 0 
)
static

References getLocalArrayBounds().

real ParallelUtility::getMaxValue ( real  value,
int  processor = -1,
MPI_Comm  comm = MPI_COMM_WORLD 
)
static

Referenced by Ogen::buildACompositeGrid(), Ogmg::buildExtraLevelsNew(), InterpolatePointsOnAGrid::buildInterpolationInfo(), CanInterpolate::canInterpolate(), CanInterpolate::canInterpolateOld(), checkError(), Ogen::checkInterpolationOnBoundaries(), Ogen::classifyPoints(), Ogmg::coarseGridSolverTest(), Ogmg::coarseToFineTest(), DerivedFunctions::computeDerivedFunctions(), ErrorEstimator::computeErrorFunction(), Ogen::computeOverlap(), CompositeGridData::convertLocalInterpolationData(), Ogen::determineBoundaryPointsToAdjust(), LoadBalancer::determineLoadBalanceKernighanLin(), Ogen::determineMinimalIndexRange(), Ogmg::fineToCoarseTest(), CopyArray::getAggregateArray(), PlotIt::getBounds(), Ogmg::getDefect(), getFromADataBase(), Mapping::getGrid(), PlotIt::getGridBounds(), GridStatistics::getGridSpacing(), Ogmg::getInterpolationCoordinatesNew(), ParallelOverlappingGridInterpolator::internalInterpolate(), ExposedPoints::interpolate(), Ogen::interpolateAll(), NurbsMapping::interpolateVolume(), ExactLocalInverse::inverse(), main(), maxNorm(), Ogmg::maxNorm(), ogen(), InterpolatePointsOnAGrid::parallelInternalInterpolate(), InterpolatePointsOnAGrid::parallelSetup(), pauseForInput(), Ogen::plot(), ErrorEstimator::plotErrorPoints(), GridStatistics::printGridStatistics(), ApproximateGlobalInverse::printStatistics(), Ogen::removeExteriorPointsNew(), Mapping::setGridDimensions(), Regrid::splitBox(), CanInterpolate::transferInterpDataForAMR(), Ogen::updateRefinementFillInterpolationDataNew(), Ogen::updateRefinementNew(), Ogen::updateRefinementNewer(), and Interpolant::updateToMatchGrid().

int ParallelUtility::getMaxValue ( int  value,
int  processor = -1,
MPI_Comm  comm = MPI_COMM_WORLD 
)
static
doubleLengthInt ParallelUtility::getMaxValue ( doubleLengthInt  value,
int  processor = -1,
MPI_Comm  comm = MPI_COMM_WORLD 
)
static
void ParallelUtility::getMaxValues ( real value,
real maxValue,
int  n,
int  processor = -1,
MPI_Comm  comm = MPI_COMM_WORLD 
)
static
void ParallelUtility::getMaxValues ( int *  value,
int *  maxValue,
int  n,
int  processor = -1,
MPI_Comm  comm = MPI_COMM_WORLD 
)
static
real ParallelUtility::getMinValue ( real  value,
int  processor = -1,
MPI_Comm  comm = MPI_COMM_WORLD 
)
static
int ParallelUtility::getMinValue ( int  value,
int  processor = -1,
MPI_Comm  comm = MPI_COMM_WORLD 
)
static
doubleLengthInt ParallelUtility::getMinValue ( doubleLengthInt  value,
int  processor = -1,
MPI_Comm  comm = MPI_COMM_WORLD 
)
static
void ParallelUtility::getMinValues ( real value,
real minValue,
int  n,
int  processor = -1,
MPI_Comm  comm = MPI_COMM_WORLD 
)
static
void ParallelUtility::getMinValues ( int *  value,
int *  minvalue,
int  n,
int  processor = -1,
MPI_Comm  comm = MPI_COMM_WORLD 
)
static
real ParallelUtility::getSum ( real  value,
int  processor = -1,
MPI_Comm  comm = MPI_COMM_WORLD 
)
static
int ParallelUtility::getSum ( int  value,
int  processor = -1,
MPI_Comm  comm = MPI_COMM_WORLD 
)
static
doubleLengthInt ParallelUtility::getSum ( doubleLengthInt  value,
int  processor = -1,
MPI_Comm  comm = MPI_COMM_WORLD 
)
static
void ParallelUtility::getSums ( real value,
real sum,
int  n,
int  processor = -1,
MPI_Comm  comm = MPI_COMM_WORLD 
)
static
void ParallelUtility::getSums ( int *  value,
int *  sum,
int  n,
int  processor = -1,
MPI_Comm  comm = MPI_COMM_WORLD 
)
static
int ParallelUtility::redistribute ( const intArray &  u,
intArray &  v,
const Range &  P 
)
static
int ParallelUtility::redistribute ( const floatArray &  u,
floatArray &  v,
const Range &  P 
)
static

References NULL.

int ParallelUtility::redistribute ( const doubleArray &  u,
doubleArray &  v,
const Range &  P 
)
static

References NULL.

int ParallelUtility::redistribute ( const intArray &  u,
intSerialArray &  v 
)
static
int ParallelUtility::redistribute ( const floatArray &  u,
floatSerialArray &  v 
)
static
int ParallelUtility::redistribute ( const doubleArray &  u,
doubleSerialArray &  v 
)
static

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