Overture  Version 25
Classes | Functions
CanInterpolate Namespace Reference

Classes

struct  CanInterpolateQueryData
 
struct  CanInterpolateResultData
 

Functions

int canInterpolate (CompositeGrid &cg, int numberToCheck, CanInterpolateQueryData *cid, CanInterpolateResultData *cir, const int numberOfValidGhost=0)
 
int canInterpolateOld (CompositeGrid &cg, int numberToCheck, CanInterpolateQueryData *cid, CanInterpolateResultData *cir, const int numberOfValidGhost=0)
 
int transferInterpDataForAMR (CompositeGrid &cg, intSerialArray *ipLocal, intSerialArray *ilLocal, realSerialArray *ciLocal)
 
Logical cgCanInterpolate (const Integer &k10, const Integer &k20, const RealArray &r, const IntegerArray &ok, const IntegerArray &useBackupRules, const Logical checkForOneSided, const CompositeGrid &cg, const IntegerArray &mask, int *pValidRange=NULL)
 Determine whether points on grid k1 (target) at r in the coordinates of grids k2 (donor) can be interpolated from grids k2 (donor).
 
void getInterpolationStencil (const Integer &k10, const Integer &k20, const RealArray &r, const IntegerArray &interpolationStencil, const IntegerArray &useBackupRules, const CompositeGrid &cg, int *pValidRange=NULL)
 Determine the lower-left corner of the interpolation stencil.
 

Function Documentation

int CanInterpolate::canInterpolate ( CompositeGrid cg,
int  numberToCheck,
CanInterpolateQueryData *  cid,
CanInterpolateResultData *  cir,
const int  numberOfValidGhost = 0 
)
int CanInterpolate::canInterpolateOld ( CompositeGrid cg,
int  numberToCheck,
CanInterpolateQueryData *  cid,
CanInterpolateResultData *  cir,
const int  numberOfValidGhost = 0 
)
Logical CanInterpolate::cgCanInterpolate ( const Integer k10,
const Integer k20,
const RealArray r,
const IntegerArray ok,
const IntegerArray useBackupRules,
const Logical  checkForOneSided,
const CompositeGrid cg,
const IntegerArray mask,
int *  pValidRange = NULL 
)
void CanInterpolate::getInterpolationStencil ( const Integer k10,
const Integer k20,
const RealArray r,
const IntegerArray interpolationStencil,
const IntegerArray useBackupRules,
const CompositeGrid cg,
int *  pValidRange = NULL 
)

Determine the lower-left corner of the interpolation stencil.

: If the coordinates r(i,0:d-1) lie outside the extendedIndexRange then a value of INT_MAX is returned in the interpolationStencil.

: pointer to an array validRange(2,3) which defines the valid index range of points that can be used for interpolation. Normally this is cg[k2].extendedRange

: wdh 091118 : added validRange so we can interpolate from ghost points.

References MappedGrid::boundaryCondition(), GenericGridCollection::componentGridNumber, CompositeGridData::epsilon, MappedGrid::extendedRange(), g_boundaryCondition, g_gridSpacing, g_indexRange, g_isCellCentered, g_isPeriodic, MappedGrid::gridSpacing(), MappedGrid::indexRange(), INTEGER_MAX, interpolationStencil_, CompositeGrid::interpolationWidth, MappedGrid::isCellCentered(), MappedGrid::isPeriodic(), iw0_, GenericGridCollection::multigridLevelNumber, NULL, MappedGrid::numberOfDimensions(), r, r_, useBackupRules_, and validRange.

Referenced by canInterpolate(), canInterpolateOld(), and cgCanInterpolate().

int CanInterpolate::transferInterpDataForAMR ( CompositeGrid cg,
intSerialArray *  ipLocal,
intSerialArray *  ilLocal,
realSerialArray ciLocal 
)