|
Overture
Version 25
|
#include <AssignInterpNeighbours.h>
Public Member Functions | |
| AssignInterpNeighbours () | |
| Constructor for the class that assigns interpolation neighbours. | |
| AssignInterpNeighbours (const AssignInterpNeighbours &x) | |
| Copy constructor. | |
| ~AssignInterpNeighbours () | |
| Destructor for the class that assigns interpolation neighbours. | |
| int | assign (realMappedGridFunction &uA, Range &C, const BoundaryConditionParameters &bcParams) |
| Assign values to the unused points next to interpolation points. | |
| int | gridHasChanged () |
| Call this routine when the grid has changed and we need to re-initialize. | |
| AssignInterpNeighbours & | operator= (const AssignInterpNeighbours &x) |
| operator =, deep copy. | |
| void | setInterpolationPoint (intArray &interpolationPoint) |
| provide the interpolation point array, cg.interpolationPoint[grid], | |
| real | sizeOf (FILE *file=NULL) const |
| Return size of this object. | |
Static Public Attributes | |
| static int | debug =0 |
Protected Types | |
| enum | ErrorStatusEnum { noErrors =0, errorInFindInterpolationNeighbours } |
Protected Member Functions | |
| int | setup () |
| Setup routine (protected) | |
| int | findInterpolationNeighbours (MappedGrid &mg) |
| Find the unused points that need to be assigned. | |
Protected Attributes | |
| enum AssignInterpNeighbours::ErrorStatusEnum | errorStatus |
| int | isInitialized |
| int | numberOfInterpolationNeighbours |
| int | maximumWidthToExtrapolationInterpolationNeighbours |
| IntegerArray * | extrapolateInterpolationNeighbourPoints |
| IntegerArray * | extrapolateInterpolationNeighboursDirection |
| IntegerArray * | extrapolateInterpolationNeighboursVariableWidth |
| intArray * | interpolationPoint |
| int | npr |
| int | nps |
| int * | ppr |
| int * | pps |
| int * | nar |
| int ** | iar |
| int * | nas |
| int ** | ias |
| int | AIN_COMM |
Static Protected Attributes | |
| static FILE * | debugFile =NULL |
|
protected |
| AssignInterpNeighbours::AssignInterpNeighbours | ( | ) |
Constructor for the class that assigns interpolation neighbours.
References setup().
| AssignInterpNeighbours::AssignInterpNeighbours | ( | const AssignInterpNeighbours & | x | ) |
Copy constructor.
References setup().
| AssignInterpNeighbours::~AssignInterpNeighbours | ( | ) |
Destructor for the class that assigns interpolation neighbours.
References extrapolateInterpolationNeighbourPoints, extrapolateInterpolationNeighboursDirection, extrapolateInterpolationNeighboursVariableWidth, iar, ias, max(), nar, nas, npr, nps, NULL, ppr, and pps.
| int AssignInterpNeighbours::assign | ( | realMappedGridFunction & | uA, |
| Range & | C, | ||
| const BoundaryConditionParameters & | bcParams | ||
| ) |
Assign values to the unused points next to interpolation points.
References AIN_COMM, assert, c, debug, debugFile, errorInFindInterpolationNeighbours, errorStatus, extrapInterpNeighboursOpt, extrapolateInterpolationNeighbourPoints, extrapolateInterpolationNeighboursDirection, extrapolateInterpolationNeighboursVariableWidth, BoundaryConditionParameters::extrapolateWithLimiterParameters, BoundaryConditionParameters::extrapolationOption, findInterpolationNeighbours(), getCPU(), getLocalArrayWithGhostBoundaries(), doubleMappedGridFunction::getMappedGrid(), i2, ia, IA, iar, isInitialized, max(), maximumWidthToExtrapolationInterpolationNeighbours, MPI_Real, nar, nas, npr, nps, NULL, MappedGrid::numberOfDimensions(), numberOfInterpolationNeighbours, BoundaryConditionParameters::orderOfExtrapolation, printF(), and REAL_MIN.
Referenced by MappedGridOperators::applyBoundaryCondition().
|
protected |
Find the unused points that need to be assigned.
Initialization routine: find the unused points that lie next to interpolation points. We also assign corners too (for AMR interpolation). In parallel , setup the comminication schedule.
References AIN_COMM, assert, aString, MappedGrid::boundaryCondition(), debug, debugFile, dimension, MappedGrid::dimension(), MappedGrid::discretizationWidth(), display(), displayMask(), extendedIndexRange, MappedGrid::extendedIndexRange(), extrapolateInterpolationNeighbourPoints, extrapolateInterpolationNeighboursDirection, extrapolateInterpolationNeighboursVariableWidth, findInterpNeighbours, getIndex(), getLocalArrayWithGhostBoundaries(), MappedGrid::getName(), MappedGrid::gridIndexRange(), i2, ia, IA, iar, ias, interpolationPoint, ip, isInitialized, mask, MappedGrid::mask(), max(), maximumWidthToExtrapolationInterpolationNeighbours, min(), nar, nas, npr, nps, NULL, MappedGrid::numberOfDimensions(), MappedGrid::numberOfGhostPoints(), numberOfInterpolationNeighbours, OV_ABORT, ppr, pps, printF(), and sPrintF().
Referenced by assign().
| int AssignInterpNeighbours::gridHasChanged | ( | ) |
Call this routine when the grid has changed and we need to re-initialize.
References isInitialized.
Referenced by MappedGridOperators::updateToMatchGrid().
| AssignInterpNeighbours & AssignInterpNeighbours::operator= | ( | const AssignInterpNeighbours & | x | ) |
operator =, deep copy.
References isInitialized.
| void AssignInterpNeighbours::setInterpolationPoint | ( | intArray & | interpolationPoint | ) |
provide the interpolation point array, cg.interpolationPoint[grid],
References interpolationPoint.
Referenced by MappedGridOperators::applyBoundaryCondition().
|
protected |
Setup routine (protected)
References AIN_COMM, GenericMappedGridOperators::defaultMaximumWidthToExtrapolationInterpolationNeighbours, errorStatus, extrapolateInterpolationNeighbourPoints, extrapolateInterpolationNeighboursDirection, extrapolateInterpolationNeighboursVariableWidth, iar, ias, interpolationPoint, isInitialized, maximumWidthToExtrapolationInterpolationNeighbours, nar, nas, noErrors, npr, nps, NULL, numberOfInterpolationNeighbours, Overture::OV_COMM, ppr, and pps.
Referenced by AssignInterpNeighbours().
Return size of this object.
References extrapolateInterpolationNeighbourPoints, extrapolateInterpolationNeighboursDirection, extrapolateInterpolationNeighboursVariableWidth, nar, nas, npr, nps, and NULL.
|
protected |
Referenced by assign(), findInterpolationNeighbours(), and setup().
|
static |
Referenced by assign(), and findInterpolationNeighbours().
|
staticprotected |
Referenced by assign(), and findInterpolationNeighbours().
|
protected |
|
protected |
Referenced by assign(), findInterpolationNeighbours(), setup(), sizeOf(), and ~AssignInterpNeighbours().
|
protected |
Referenced by assign(), findInterpolationNeighbours(), setup(), sizeOf(), and ~AssignInterpNeighbours().
|
protected |
Referenced by assign(), findInterpolationNeighbours(), setup(), sizeOf(), and ~AssignInterpNeighbours().
|
protected |
Referenced by assign(), findInterpolationNeighbours(), setup(), and ~AssignInterpNeighbours().
|
protected |
Referenced by findInterpolationNeighbours(), setup(), and ~AssignInterpNeighbours().
|
protected |
Referenced by findInterpolationNeighbours(), setInterpolationPoint(), and setup().
|
protected |
Referenced by assign(), findInterpolationNeighbours(), gridHasChanged(), operator=(), and setup().
|
protected |
Referenced by assign(), findInterpolationNeighbours(), and setup().
|
protected |
Referenced by assign(), findInterpolationNeighbours(), setup(), sizeOf(), and ~AssignInterpNeighbours().
|
protected |
Referenced by assign(), findInterpolationNeighbours(), setup(), sizeOf(), and ~AssignInterpNeighbours().
|
protected |
Referenced by assign(), findInterpolationNeighbours(), setup(), sizeOf(), and ~AssignInterpNeighbours().
|
protected |
Referenced by assign(), findInterpolationNeighbours(), setup(), sizeOf(), and ~AssignInterpNeighbours().
|
protected |
Referenced by assign(), findInterpolationNeighbours(), and setup().
|
protected |
Referenced by findInterpolationNeighbours(), setup(), and ~AssignInterpNeighbours().
|
protected |
Referenced by findInterpolationNeighbours(), setup(), and ~AssignInterpNeighbours().
1.8.3