Chombo + EB + MF  3.2
Functions
GenFuncs Namespace Reference

Functions

template<typename T >
bool compare (const T &x, const T &y, int prec)
 
template<typename T >
bool compare1 (const T &x, const T &y, int prec)
 
Box boxFromVector (const Vector< int > &a_ints, int a_start=0)
 
int readBoxes (Vector< Vector< Box > > &a_vectVectBoxes, ParmParse &a_pp, const ProblemDomain &a_domain, const int &a_maxGridSize, const int &a_blockFactor, const int &a_numlevels, const Vector< int > &a_vectRefRatio, const bool &a_verbose)
 
int getDiff (Vector< LevelData< FArrayBox > * > &a_vectDiff, const Vector< LevelData< FArrayBox > * > &a_vectPhi1, const Vector< LevelData< FArrayBox > * > &a_vectPhi2)
 
int getMagnitude (Vector< LevelData< FArrayBox > * > &a_vectMag, const Vector< LevelData< FArrayBox > * > &a_vectField)
 
int project2 (Vector< LevelData< FArrayBox > * > &a_vectProj, const Vector< LevelData< FArrayBox > * > &a_vectPhi, const Vector< DisjointBoxLayout > &a_vectGrids)
 
int printErrorNorms (const string &a_prefix, Real a_dxFine, int a_deginterp, Real a_normMaxerrFine, Real a_norm1errFine, Real a_norm2errFine, Real a_normMaxerrCoarse, Real a_norm1errCoarse, Real a_norm2errCoarse)
 
int printDiffNorms (const string &a_prefix, Real a_dxFine, int a_deginterp, Real a_normMaxdiff, Real a_norm1diff, Real a_norm2diff)
 
int getBoxesFromIndices (Vector< Box > &a_vectBoxes, const Box &a_domainBox, const int &a_maxGridSize, const int &a_blockFactor, const int &a_boxCount, const Vector< int > &a_boxIndices, const Vector< int > &a_domainIndices)
 

Function Documentation

◆ compare()

template<typename T >
bool GenFuncs::compare ( const T &  x,
const T &  y,
int  prec 
)
inline

References min().

◆ compare1()

template<typename T >
bool GenFuncs::compare1 ( const T &  x,
const T &  y,
int  prec 
)
inline

◆ boxFromVector()

Box GenFuncs::boxFromVector ( const Vector< int > &  a_ints,
int  a_start = 0 
)

Referenced by compare1().

◆ readBoxes()

int GenFuncs::readBoxes ( Vector< Vector< Box > > &  a_vectVectBoxes,
ParmParse a_pp,
const ProblemDomain a_domain,
const int &  a_maxGridSize,
const int &  a_blockFactor,
const int &  a_numlevels,
const Vector< int > &  a_vectRefRatio,
const bool &  a_verbose 
)

Referenced by compare1().

◆ getDiff()

int GenFuncs::getDiff ( Vector< LevelData< FArrayBox > * > &  a_vectDiff,
const Vector< LevelData< FArrayBox > * > &  a_vectPhi1,
const Vector< LevelData< FArrayBox > * > &  a_vectPhi2 
)

Referenced by compare1().

◆ getMagnitude()

int GenFuncs::getMagnitude ( Vector< LevelData< FArrayBox > * > &  a_vectMag,
const Vector< LevelData< FArrayBox > * > &  a_vectField 
)

Referenced by compare1().

◆ project2()

int GenFuncs::project2 ( Vector< LevelData< FArrayBox > * > &  a_vectProj,
const Vector< LevelData< FArrayBox > * > &  a_vectPhi,
const Vector< DisjointBoxLayout > &  a_vectGrids 
)

Referenced by compare1().

◆ printErrorNorms()

int GenFuncs::printErrorNorms ( const string &  a_prefix,
Real  a_dxFine,
int  a_deginterp,
Real  a_normMaxerrFine,
Real  a_norm1errFine,
Real  a_norm2errFine,
Real  a_normMaxerrCoarse,
Real  a_norm1errCoarse,
Real  a_norm2errCoarse 
)

Referenced by compare1().

◆ printDiffNorms()

int GenFuncs::printDiffNorms ( const string &  a_prefix,
Real  a_dxFine,
int  a_deginterp,
Real  a_normMaxdiff,
Real  a_norm1diff,
Real  a_norm2diff 
)

Referenced by compare1().

◆ getBoxesFromIndices()

int GenFuncs::getBoxesFromIndices ( Vector< Box > &  a_vectBoxes,
const Box a_domainBox,
const int &  a_maxGridSize,
const int &  a_blockFactor,
const int &  a_boxCount,
const Vector< int > &  a_boxIndices,
const Vector< int > &  a_domainIndices 
)

Referenced by compare1().