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

#include <Ogen.h>

Collaboration diagram for Ogen:
Collaboration graph
[legend]

Public Types

enum  MovingGridOption { useOptimalAlgorithm =0, minimizeOverlap =1, useFullAlgorithm }
 
enum  OgenParameterEnum {
  THEimproveQualityOfInterpolation, THEqualityBound, THEoutputGridOnFailure, THEabortOnAlgorithmFailure,
  THEcomputeGeometryForMovingGrids, THEmaximumAngleDifferenceForNormalsOnSharedBoundaries
}
 

Public Member Functions

 Ogen ()
 
 Ogen (GenericGraphicsInterface &ps)
 
 ~Ogen ()
 
int buildACompositeGrid (CompositeGrid &cg, MappingInformation &mapInfo, const IntegerArray &mapList, const int &numberOfMultigridLevels=1, const bool useAnOldGrid=FALSE)
 
int changeParameters (CompositeGrid &cg, MappingInformation *mapInfo=NULL)
 Change Ogen parameters. (input) : pointer to the list of mappings (used to define explicit hole cutters)
 
int printOrphanPoints (CompositeGrid &cg)
 Print the locations of orphan points.
 
void set (const OgenParameterEnum option, const bool value)
 
void set (const OgenParameterEnum option, const int value)
 
void set (const OgenParameterEnum option, const real value)
 
void turnOnHybridHoleCutting ()
 
void turnOffHybridHoleCutting ()
 
int updateOverlap (CompositeGrid &cg, MappingInformation &mapInfo)
 
int updateOverlap (CompositeGrid &cg)
 
int updateOverlap (CompositeGrid &cg, CompositeGrid &cgNew, const LogicalArray &hasMoved, const MovingGridOption &option=useOptimalAlgorithm)
 
int updateRefinement (CompositeGrid &cg, const int &refinementLevel=-1)
 
int updateRefinementNew (CompositeGrid &cg, const int &refinementLevel=-1)
 
int updateRefinementNewer (CompositeGrid &cg, const int &refinementLevel=-1)
 
int updateRefinementFillInterpolationData (CompositeGrid &cg, UpdateRefinementData &urd)
 
int updateRefinementFillInterpolationDataNew (CompositeGrid &cg, UpdateRefinementData &urd)
 
int resetGrid (CompositeGrid &cg)
 
int updateParameters (CompositeGrid &cg, const int level=-1, const RealArray &minimumOverlap=Overture::nullRealArray())
 

Static Public Member Functions

static bool canDiscretize (MappedGrid &g, const int iv[3], bool checkOneSidedAtBoundaries=true)
 
static int checkParallelGhostWidth (CompositeGrid &cg)
 Check that there are enough parallel ghost lines for ogen.
 
static int checkUpdateRefinement (GridCollection &gc)
 
static int displayCompositeGridParameters (CompositeGrid &cg, FILE *file=stdout)
 Output composite grid parameters such as discretization width, interpolation width etc.
 
static int saveGridToAFile (CompositeGrid &cg, aString &gridFileName, aString &gridName)
 
static int checkCanInterpolate (CompositeGrid &cg, int grid, int donor, int numberToCheck, RealArray &r, IntegerArray &interpolates, IntegerArray &useBackupRules)
 
static int checkCanInterpolate (CompositeGrid &cg, int grid, int donor, RealArray &r, IntegerArray &interpolates, IntegerArray &useBackupRules)
 

Public Attributes

int debug
 
int info
 
bool useNewMovingUpdate
 
int isMovingGridProblem
 
int defaultInterpolationIsImplicit
 
int myid
 
int defaultNumberOfGhostPoints
 
bool loadBalanceGrids
 
bool doubleCheckInterpolation
 

Protected Types

enum  { THEinverseMap = CompositeGrid::THEinverseMap, THEmask = CompositeGrid::THEmask, resetTheGrid =123456789, ISnonCuttingBoundaryPoint =MappedGrid::ISreservedBit1 }
 

Protected Member Functions

int buildBounds (CompositeGrid &cg)
 
int buildCutout (CompositeGrid &cg, MappingInformation &cutMapInfo)
 
int chooseASide (MappedGrid &mg, int &side, int &axis)
 Ogen utility function: Choose a side of a grid.
 
bool interpolateAPoint (CompositeGrid &cg, int grid, int iv[3], bool interpolatePoint, bool checkInterpolationCoords, bool checkBoundaryPoint, int infoLevel)
 Try to interpolate a point If interpolatePoint==true then attempt to interpolate the point. Return true if the point was interpolated.
 
int interpolatePoints (CompositeGrid &cg, int grid, int numberToInterpolate, const IntegerArray &ia, IntegerArray &interpolates)
 Attempt to interpolate a list of points. For points that could interpolate the interpolation data mask, inverseGrid and inverseCoordinates are changed.
 
int interpolateMixedBoundary (CompositeGrid &cg, int mixedBoundaryNumber)
 
int interpolateMixedBoundary (CompositeGrid &cg, int mixedBoundaryNumber, int side, int axis, int grid, MappedGrid &g, int grid2, MappedGrid &g2, int offset[3], real rScale[3], real rOffset[3])
 
int checkInterpolationOnBoundaries (CompositeGrid &cg)
 
int classifyPoints (CompositeGrid &cg, realSerialArray &invalidPoint, int &numberOfInvalidPoints, const int &level, CompositeGrid &cg0)
 
int classifyRedundantPoints (CompositeGrid &cg, const int &grid, const int &level, CompositeGrid &cg0)
 
int computeOverlap (CompositeGrid &cg, CompositeGrid &cgOld, const int &level=0, const bool &movingGrids=FALSE, const IntegerArray &hasMoved=Overture::nullIntArray())
 
int checkForOrphanPointsOnBoundaries (CompositeGrid &cg)
 
int cutHoles (CompositeGrid &cg)
 
int cutHolesNew (CompositeGrid &cg)
 
int cutHolesNewer (CompositeGrid &cg)
 
int explicitHoleCutting (CompositeGrid &cg)
 Cut holes with user defined explicit hole cutters.
 
int getHoleWidth (CompositeGrid &cg, MappedGrid &g2, int pHoleMarker[3], IntegerArray &holeCenter, IntegerArray &holeMask, IntegerArray &holeWidth, RealArray &r, RealArray &x, const int *pIndexRange2, const int *pExtendedIndexRange2, const int *plocalIndexBounds2, int iv[3], int jv[3], int jpv[3], bool isPeriodic2[3], bool isPeriodic2p[3], const Index Iv[3], const int &grid, const int &grid2, int &ib, int &ib2, int &skipThisPoint, int &initialPoint, const int &numberOfDimensions, const int &axisp1, const int &axisp2, const real &cellCenterOffset, const int &maximumHoleWidth, int &numberOfHoleWidthWarnings)
 
int countCrossingsWithRealBoundary (CompositeGrid &cg, const realArray &x, IntegerArray &crossings)
 
int findTrueBoundary (CompositeGrid &cg)
 
int interpolateAll (CompositeGrid &cg, IntegerArray &numberOfInterpolationPoints, CompositeGrid &cg0)
 
bool isNeededForDiscretization (MappedGrid &g, const int iv[3])
 
bool isOnInterpolationBoundary (MappedGrid &g, const int iv[3], const int &width=1)
 
bool isNeededForMultigridRestriction (CompositeGrid &c, const int &grid, const int &l, const int iv[3])
 
real computeInterpolationQuality (CompositeGrid &cg, const int &grid, const int &i1, const int &i2, const int &i3, real &qForward, real &qReverse)
 
int markMaskAtGhost (CompositeGrid &cg)
 
int markPointsNeededForInterpolation (CompositeGrid &cg, const int &grid, const int &lowerOrUpper=-1)
 
int markPointsNeededForInterpolationNew (CompositeGrid &cg, const int &grid, const int &lowerOrUpper=-1)
 
int markPointsReallyNeededForInterpolation (CompositeGrid &cg)
 
int improveQuality (CompositeGrid &cg, const int &grid, RealArray &removedPointBound)
 
int updateCanInterpolate (CompositeGrid &cg, CompositeGrid &cg0, RealArray &removedPointBound)
 
int plot (const aString &title, CompositeGrid &cg, const int &queryForChanges=TRUE)
 
int projectToParameterBoundary (const real rv0[3], const real rv1[3], real rv[3], const int numberOfDimensions, const int grid)
 
int projectToBoundary (CompositeGrid &cg, const int &grid, const realArray &r, const int iv[3], const int ivp[3], real rv[3])
 
int queryAPoint (CompositeGrid &cg)
 
int removeExteriorPoints (CompositeGrid &cg, const bool boundariesHaveCutHoles=FALSE)
 
int removeExteriorPointsNew (CompositeGrid &cg, const bool boundariesHaveCutHoles=FALSE)
 
int sweepOutHolePoints (CompositeGrid &cg)
 
int unmarkBoundaryInterpolationPoints (CompositeGrid &cg, const int &grid)
 
int unmarkInterpolationPoints (CompositeGrid &cg, const bool &unMarkAll=FALSE)
 
int updateGeometry (CompositeGrid &cg, CompositeGrid &cgOld, const bool &movingGrids=FALSE, const IntegerArray &hasMoved=Overture::nullIntArray())
 
int adjustBoundary (CompositeGrid &cg, const Integer &k1, const Integer &k2, const intSerialArray &i1, const realSerialArray &x)
 
int adjustBoundarySerial (CompositeGrid &cg, const Integer &k1, const Integer &k2, const intSerialArray &i1, const realSerialArray &x)
 
int oppositeBoundaryIndex (MappedGrid &g, const int &ks, const int &kd)
 
int adjustForNearbyBoundaries (CompositeGrid &cg, IntegerArray &numberOfInterpolationPoints, intSerialArray *iInterp)
 
int determineBoundaryPointsToAdjust (CompositeGrid &cg, const int grid, const int grid2, IntegerArray &sidesShare, const int ks1, const int kd1, const int ks2, const int kd2, BoundaryAdjustment &bA, bool &first, bool &needAdjustment, int numberOfDirectionsAdjusted, bool &directionAdjusted, bool &wasAdjusted, Range &R, IntegerArray &ia, IntegerArray &ok, const int it, real shareTol[3][2], RealArray &r, RealArray &r2, RealArray &r3, RealArray &rOk, RealArray &xx, RealArray &x2, RealArray &x3)
 Determine the points to adjust on a shared boundary when interpolating points from grid side (ks1,kd1)
 
int checkBoundaryAdjustment (CompositeGrid &cg, const int grid, const int grid2, const int ks1, const int kd1, BoundaryAdjustment &bA, int numberOfDirectionsAdjusted, Range &R, IntegerArray &ia, IntegerArray &ok, RealArray &r, RealArray &r2, RealArray &r3, RealArray &rOk, RealArray &xx, RealArray &x2, RealArray &x3)
 Check the boundary adjustment for debugging purposes.
 
int checkForBoundaryAdjustments (CompositeGrid &cg, int k1, int k2, IntegerArray &sidesShare, bool &needAdjustment, int manualSharedBoundaryNumber[2][3])
 
int getAdjustmentVectors (CompositeGrid &cg, BoundaryAdjustment &bA, int grid, int grid2, bool &needAdjustment, int numberOfPoints, int it, int ks1, int kd1, int ks2, int kd2, Index Iv[3], RealArray &x1)
 
bool canInterpolate (CompositeGrid &cg, const Integer &k10, const Integer &k20, const RealArray &r, const LogicalArray &ok, const LogicalArray &useBackupRules, const Logical checkForOneSided)
 
int checkCrossings (CompositeGrid &cg, const int &numToCheck, const IntegerArray &ia, intArray &mask, realArray &x, realArray &vertex, IntegerArray &crossings, const Range &Rx, const int &usedPoint)
 
int checkHoleCutting (CompositeGrid &cg)
 
int computeInterpolationStencil (CompositeGrid &cg, const int &grid, const int &gridI, const real r[3], int stencil[3][2], bool useOneSidedAtBoundaries=true, bool useOddInterpolationWidth=false)
 
int conformToCmpgrd (CompositeGrid &cg)
 
int determineMinimalIndexRange (CompositeGrid &cg)
 
int estimateSharedBoundaryTolerance (CompositeGrid &cg)
 
int findBestGuess (CompositeGrid &cg, const int &grid, const int &numberToCheck, intSerialArray &ia, realSerialArray &x, realSerialArray &r, realSerialArray &rI, intSerialArray &inverseGrid, const realSerialArray &center)
 
int findClosestBoundaryPoint (MappedGrid &mg, real *x, int *iv, int *ivb, int &sideb, int &axisb)
 Find the closest boundary point – use x-distance!
 
int generateInterpolationArrays (CompositeGrid &cg, const IntegerArray &numberOfInterpolationPoints, intSerialArray *iInterp)
 
int initialize ()
 
int lastChanceInterpolation (CompositeGrid &cg, CompositeGrid &cg0, const int &grid, const IntegerArray &ia, const IntegerArray &ok, intSerialArray &interpolates, int &numberOfInvalidPoints, realSerialArray &invalidPoint, const int &printDiagnosticMessages=false, const bool &tryBackupRules=false, const bool saveInvalidPoints=true, int lastChanceOption=0)
 This routine is called for points that could not be interpolated when perhaps they should be able to.
 
int movingUpdate (CompositeGrid &cg, CompositeGrid &cgOld, const LogicalArray &hasMoved, const MovingGridOption &option=useOptimalAlgorithm)
 
int movingUpdateNew (CompositeGrid &cg, CompositeGrid &cgOld, const LogicalArray &hasMoved, const MovingGridOption &option=useOptimalAlgorithm)
 The new moving grid generator (parallel version)
 
int preInterpolateGrids (CompositeGrid &cg)
 
int setGridParameters (CompositeGrid &cg)
 
bool sidesShareBoundary (CompositeGrid &cg, int grid1, int side1, int dir1, int grid2, int side2, int dir2) const
 return true if grid1 face=(side1,dir1) shares a boundary with grid2 face=(side2,dir2)
 
void getSharedBoundaryTolerances (CompositeGrid &cg, int grid1, int side1, int dir1, int grid2, int side2, int dir2, real &rTol, real &xTol, real &nTol) const
 
int updateBoundaryAdjustment (CompositeGrid &cg, const int &grid, const int &grid2, intSerialArray *iag, realSerialArray *rg, realSerialArray *xg, IntegerArray &sidesShare)
 
int getNormal (const int &numberOfDimensions, const int &side, const int &axis, const RealArray &xr, real signForJacobian, RealArray &normal)
 
int markOffAxisRefinementMask (int numberOfDimensions, Index Ivr[3], Index Ivb[3], int rf[3], intSerialArray &mask, const intSerialArray &maskb)
 
int setRefinementMaskFace (intSerialArray &mask, int side, int axis, int numberOfDimensions, int rf[3], Index &I1r, Index &I2r, Index &I3r, const intSerialArray &mask00, const intSerialArray &mask10, const intSerialArray &mask01, const intSerialArray &mask11)
 
int checkRefinementInterpolation (CompositeGrid &cg)
 
int checkRefinementInterpolationNew (CompositeGrid &cg)
 

Protected Attributes

GenericGraphicsInterfaceps
 
GraphicsParameters psp
 
bool plotTitles
 
bool makeAdjustmentsForNearbyBoundaries
 
bool outputGridOnFailure
 
bool abortOnAlgorithmFailure
 
FILE * logFile
 
FILE * plogFile
 
FILE * checkFile
 
real boundaryEps
 
RealArray gridScale
 
RealArray rBound
 
real maximumAngleDifferenceForNormalsOnSharedBoundaries
 
int computeGeometryForMovingGrids
 
IntegerArray geometryNeedsUpdating
 
bool numberOfGridsHasChanged
 
bool checkForOneSided
 
IntegerArray isNew
 
int numberOfHolePoints
 
RealArray holePoint
 
IntegerArray plotHolePoints
 
int numberOfOrphanPoints
 
RealArray orphanPoint
 
IntegerArray plotOrphanPoints
 
int maximumNumberOfPointsToInvertAtOneTime
 
int maskRatio [3]
 
int holeCuttingOption
 
bool useAnOldGrid
 
int numberOfArrays
 
IntegerArray warnForSharedSides
 
int numberOfMixedBoundaries
 
IntegerArray mixedBoundary
 
RealArray mixedBoundaryValue
 
int numberOfManualHoles
 
IntegerArray manualHole
 
RealArray manualHoleValue
 
bool plotExplicitHoleCutters
 
ListOfMappingRCholeCutters
 
int numberOfManualSharedBoundaries
 
IntegerArray manualSharedBoundary
 
RealArray manualSharedBoundaryValue
 
int numberOfSharedBoundaryTolerances
 
IntegerArray sharedBoundaryTolerances
 
RealArray sharedBoundaryTolerancesValue
 
int numberOfNonCuttingBoundaries
 
IntegerArray nonCuttingBoundaryPoints
 
intSerialArray * backupValues
 
IntegerArray backupValuesUsed
 
IntegerArray preInterpolate
 
MappingInformation cutMapInfo
 
bool useBoundaryAdjustment
 
bool improveQualityOfInterpolation
 
real qualityBound
 
bool minimizeTheOverlap
 
bool allowHangingInterpolation
 
bool allowBackupRules
 
bool classifyHolesForHybrid
 
int incrementalHoleSweep
 
bool useLocalBoundingBoxes
 
char buff [200]
 
real totalTime
 
real timeUpdateGeometry
 
real timeInterpolateBoundaries
 
real timeCutHoles
 
real timeCheckHoleCutting
 
real timeFindTrueBoundary
 
real timeRemoveExteriorPoints
 
real timeImproperInterpolation
 
real timeProperInterpolation
 
real timeAllInterpolation
 
real timeRemoveRedundant
 
real timeImproveQuality
 
real timePreInterpolate
 

Member Enumeration Documentation

anonymous enum
protected
Enumerator
THEinverseMap 
THEmask 
resetTheGrid 
ISnonCuttingBoundaryPoint 
Enumerator
useOptimalAlgorithm 
minimizeOverlap 
useFullAlgorithm 
Enumerator
THEimproveQualityOfInterpolation 
THEqualityBound 
THEoutputGridOnFailure 
THEabortOnAlgorithmFailure 
THEcomputeGeometryForMovingGrids 
THEmaximumAngleDifferenceForNormalsOnSharedBoundaries 

Constructor & Destructor Documentation

Ogen::Ogen ( )

References initialize().

Ogen::Ogen ( GenericGraphicsInterface ps)

References initialize(), and ps.

Ogen::~Ogen ( )

References checkFile, holeCutters, logFile, NULL, and plogFile.

Member Function Documentation

int Ogen::adjustBoundary ( CompositeGrid cg,
const Integer k1,
const Integer k2,
const intSerialArray &  i1,
const realSerialArray x 
)
protected
int Ogen::adjustBoundarySerial ( CompositeGrid cg,
const Integer k1,
const Integer k2,
const intSerialArray &  i1,
const realSerialArray x 
)
protected
int Ogen::adjustForNearbyBoundaries ( CompositeGrid cg,
IntegerArray numberOfInterpolationPoints,
intSerialArray *  iInterp 
)
protected
int Ogen::buildACompositeGrid ( CompositeGrid cg,
MappingInformation mapInfo,
const IntegerArray mapList,
const int &  numberOfMultigridLevels = 1,
const bool  useAnOldGrid = FALSE 
)

References Overture::abort(), CompositeGrid::addMultigridCoarsening(), LoadBalancer::assignWorkLoads(), CompositeGridData::boundaryAdjustment, c, GenericGridCollection::COMPUTEnothing, debug, ReferenceCounting::decrementReferenceCount(), defaultInterpolationIsImplicit, defaultNumberOfGhostPoints, LoadBalancer::determineLoadBalance(), display(), GridCollection::displayDistribution(), getCPU(), MappingRC::getMapping(), ParallelUtility::getMaxValue(), ParallelUtility::getMinValue(), GenericGridCollectionData::gridDistributionList, MappedGrid::gridIndexRange(), ReferenceCounting::incrementReferenceCount(), info, CompositeGrid::interpolationCoordinates, CompositeGrid::interpolationIsImplicit, CompositeGrid::interpolationOverlap, CompositeGrid::interpolationPoint, CompositeGrid::interpolationPreference, CompositeGrid::interpolationWidth, CompositeGrid::interpoleeGrid, CompositeGrid::interpoleeLocation, loadBalanceGrids, LogicalTrue, MappedGrid::mapping(), MappingInformation::mappingList, CompositeGrid::maximumHoleCuttingDistance, CompositeGrid::mayCutHoles, CompositeGrid::mayInterpolate, CompositeGrid::multigridCoarseningRatio, CompositeGrid::multigridLevel, CompositeGrid::multigridProlongationWidth, CompositeGrid::multigridRestrictionWidth, myid, NULL, nullRange, GenericGridCollection::numberOfBaseGrids(), CompositeGrid::numberOfCompleteMultigridLevels(), GenericGridCollection::numberOfComponentGrids(), CompositeGrid::numberOfInterpolationPoints, GenericGridCollection::numberOfMultigridLevels(), printF(), CompositeGrid::rcData, REAL_MAX, TrivialArray< Type, Dim >::redim(), MappedGrid::reference(), MappedGrid::setNumberOfGhostPoints(), MappedGrid::setSharedBoundaryTolerance(), CompositeGrid::sharedSidesMayCutHoles, CompositeGrid::specifyProcesses(), SQRT, CompositeGrid::THEinterpolationCoordinates, CompositeGrid::THEinterpolationPoint, CompositeGrid::THEinterpoleeGrid, CompositeGrid::THEinterpoleeLocation, GenericGridCollection::THEmultigridLevel, CompositeGrid::update(), and useAnOldGrid.

Referenced by main(), plot3dToOverture(), and showFileFromDataFile().

int Ogen::buildBounds ( CompositeGrid cg)
protected
int Ogen::buildCutout ( CompositeGrid cg,
MappingInformation cutMapInfo 
)
protected
bool Ogen::canDiscretize ( MappedGrid g,
const int  iv[3],
bool  checkOneSidedAtBoundaries = true 
)
static
bool Ogen::canInterpolate ( CompositeGrid cg,
const Integer k10,
const Integer k20,
const RealArray r,
const LogicalArray ok,
const LogicalArray useBackupRules,
const Logical  checkForOneSided 
)
protected
int Ogen::changeParameters ( CompositeGrid cg,
MappingInformation mapInfo = NULL 
)

Change Ogen parameters. (input) : pointer to the list of mappings (used to define explicit hole cutters)

References ListOfMappingRC::addElement(), DialogData::addInfoLabel(), allowBackupRules, GenericGraphicsInterface::appendToTheDefaultPrompt(), assert, aString, MappedGrid::boundaryCondition(), buff, GenericGraphicsInterface::buildCascadingMenu(), GUIState::buildPopup(), c, CompositeGrid::changeToAllCellCentered(), CompositeGrid::changeToAllVertexCentered(), checkParallelGhostWidth(), chooseASide(), classifyHolesForHybrid, debug, MappedGrid::dimension(), MappedGrid::discretizationWidth(), display(), displayCompositeGridParameters(), CompositeGrid::domain, domainName, GenericGridCollection::domainNumber, End, extendedGridIndexRange(), geometryNeedsUpdating, GenericGraphicsInterface::getAnswer(), getBoundaryIndex(), GenericGridCollection::getDomainName(), ListOfMappingRC::getLength(), GenericGraphicsInterface::getMenuItem(), MappingRC::getName(), MappedGrid::getName(), MappedGrid::gridIndexRange(), gridIndexRange, holeCutters, holeCuttingOption, improveQualityOfInterpolation, GenericGraphicsInterface::inputString(), interpolateMixedBoundary(), CompositeGrid::interpolationIsImplicit, CompositeGrid::interpolationWidth, manualHole, manualSharedBoundary, manualSharedBoundaryValue, MappedGrid::mapping(), MappingInformation::mappingList, Mapping::mappingName, max(), maximumAngleDifferenceForNormalsOnSharedBoundaries, CompositeGrid::maximumHoleCuttingDistance, maximumNumberOfPointsToInvertAtOneTime, CompositeGrid::mayCutHoles, CompositeGrid::mayInterpolate, min(), minimizeTheOverlap, mixedBoundary, mixedBoundaryValue, MappedGridData::mixedPhysicalInterpolationBoundary, myid, nonCuttingBoundaryPoints, NULL, GenericGridCollection::numberOfBaseGrids(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), MappedGrid::numberOfDimensions(), GenericGridCollectionData::numberOfDomains, GenericGridCollection::numberOfDomains(), numberOfManualHoles, numberOfManualSharedBoundaries, numberOfMixedBoundaries, GenericGridCollection::numberOfMultigridLevels(), numberOfNonCuttingBoundaries, numberOfSharedBoundaryTolerances, GenericGraphicsInterface::outputString(), OV_ABORT, plot(), GenericGraphicsInterface::popGUI(), preInterpolate, printF(), ps, GenericGraphicsInterface::pushGUI(), qualityBound, R, REAL_EPSILON, REAL_MAX, RI, MappedGrid::setBoundaryCondition(), MappedGrid::setBoundaryFlag(), GenericGridCollection::setDomainName(), DialogData::setExitCommand(), DialogData::setPushButtons(), DialogData::setWindowTitle(), share, sharedBoundaryTolerances, sharedBoundaryTolerancesValue, CompositeGrid::sharedSidesMayCutHoles, sPrintF(), sScanF(), Start, GenericGraphicsInterface::stopReadingCommandFile(), GenericGridCollection::THEdomain, twoPi, GenericGraphicsInterface::unAppendTheDefaultPrompt(), CompositeGrid::update(), updateGeometry(), updateParameters(), useBoundaryAdjustment, useLocalBoundingBoxes, and MappingRC::useRobustInverse().

int Ogen::checkBoundaryAdjustment ( CompositeGrid cg,
const int  grid,
const int  grid2,
const int  ks1,
const int  kd1,
BoundaryAdjustment bA,
int  numberOfDirectionsAdjusted,
Range &  R,
IntegerArray ia,
IntegerArray ok,
RealArray r,
RealArray r2,
RealArray r3,
RealArray rOk,
RealArray xx,
RealArray x2,
RealArray x3 
)
protected

Check the boundary adjustment for debugging purposes.

References axis1, axis2, axis3, BoundaryAdjustment::boundaryAdjustment(), debug, fabs(), max(), min(), GridCollection::numberOfDimensions(), plogFile, and r.

Referenced by updateBoundaryAdjustment().

int Ogen::checkCanInterpolate ( CompositeGrid cg,
int  grid,
int  donor,
int  numberToCheck,
RealArray r,
IntegerArray interpolates,
IntegerArray useBackupRules 
)
static
int Ogen::checkCanInterpolate ( CompositeGrid cg,
int  grid,
int  donor,
RealArray r,
IntegerArray interpolates,
IntegerArray useBackupRules 
)
static

References checkCanInterpolate().

int Ogen::checkCrossings ( CompositeGrid cg,
const int &  numToCheck,
const IntegerArray ia,
intArray &  mask,
realArray x,
realArray vertex,
IntegerArray crossings,
const Range &  Rx,
const int &  usedPoint 
)
protected
int Ogen::checkForBoundaryAdjustments ( CompositeGrid cg,
int  k1,
int  k2,
IntegerArray sidesShare,
bool &  needAdjustment,
int  manualSharedBoundaryNumber[2][3] 
)
protected
int Ogen::checkForOrphanPointsOnBoundaries ( CompositeGrid cg)
protected
int Ogen::checkHoleCutting ( CompositeGrid cg)
protected
int Ogen::checkInterpolationOnBoundaries ( CompositeGrid cg)
protected

References Overture::abort(), axis1, axis2, axis3, MappedGrid::boundaryCondition(), boundaryEps, MappedGrid::boundingBox(), boundingBox, buff, canInterpolate(), MappedGrid::center(), center, checkArrayIDs(), Overture::checkMemoryUsage(), GenericGridCollection::COMPUTEnothing, debug, delta, displayMask(), End, estimateSharedBoundaryTolerance(), extendedGridIndexRange(), MappedGrid::extendedIndexRange(), fabs(), FOR_3D, fPrintF(), GET_LOCAL, getBoundaryIndex(), getCPU(), ParallelUtility::getLocalArrayBounds(), getLocalArrayWithGhostBoundaries(), MappingRC::getMapping(), ParallelUtility::getMaxValue(), MappingRC::getName(), Mapping::getName(), MappedGrid::getName(), getNormal(), MappedGrid::getRectangularGridParameters(), Mapping::getSignForJacobian(), Mapping::getTypeOfCoordinateSingularity(), MappedGrid::gridIndexRange(), MappedGrid::gridSpacing(), i2, ia, info, interpolateMixedBoundary(), CompositeGrid::interpolationCoordinates, CompositeGrid::interpolationPoint, CompositeGrid::interpoleeGrid, Mapping::intersects(), CompositeGrid::inverseCoordinates, CompositeGrid::inverseGrid, Mapping::inverseMap(), Mapping::inverseMapS(), ip, ip1, MappedGrid::isAllCellCentered(), MappedGrid::isAllVertexCentered(), MappedGrid::ISinteriorBoundaryPoint, MappedGrid::ISinterpolationPoint, isNew, ISnonCuttingBoundaryPoint, MappedGrid::isPeriodic(), MappedGrid::isRectangular(), logFile, manualSharedBoundary, Mapping::map(), MappedGrid::mapping(), Mapping::mappingName, Mapping::mapS(), mask, MappedGrid::mask(), max(), maximumAngleDifferenceForNormalsOnSharedBoundaries, CompositeGrid::mayCutHoles, CompositeGrid::mayInterpolate, mixedBoundary, normal, nullRange, Overture::nullRealArray(), Overture::nullRealDistributedArray(), GenericGridCollection::numberOfBaseGrids(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), MappedGrid::numberOfDimensions(), CompositeGrid::numberOfInterpolationPoints, numberOfManualSharedBoundaries, numberOfMixedBoundaries, plogFile, Mapping::polarSingularity, preInterpolateGrids(), printF(), r, R, rBound, rBound2, MappedGrid::sharedBoundaryFlag(), MappedGrid::sharedBoundaryTolerance(), sPrintF(), Start, CompositeGrid::THEinterpolationCoordinates, CompositeGrid::THEinterpolationPoint, CompositeGrid::THEinterpoleeGrid, CompositeGrid::THEinterpoleeLocation, timeInterpolateBoundaries, timePreInterpolate, totalTime, CompositeGrid::update(), updateBoundaryAdjustment(), useBoundaryAdjustment, MappedGrid::vertex(), MappedGrid::vertexBoundaryNormal(), MappedGrid::vertexBoundaryNormalArray(), warnForSharedSides, x, XC, XV, XV0, XV1, and XV2.

Referenced by computeOverlap().

int Ogen::checkParallelGhostWidth ( CompositeGrid cg)
static

Check that there are enough parallel ghost lines for ogen.

For implicit interpolation we need (iw-1)/2 ghost lines. For explicit interpolation we need (iw+dw-2)/2 ghost lines.

References discretizationWidth, MappedGrid::getMinimumNumberOfDistributedGhostLines(), CompositeGrid::interpolationIsImplicit, CompositeGrid::interpolationWidth, max(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), OV_ABORT, and printF().

Referenced by changeParameters(), and computeOverlap().

int Ogen::checkRefinementInterpolation ( CompositeGrid cg)
protected
int Ogen::checkRefinementInterpolationNew ( CompositeGrid cg)
protected
int Ogen::checkUpdateRefinement ( GridCollection gc)
static
int Ogen::chooseASide ( MappedGrid mg,
int &  side,
int &  axis 
)
protected
int Ogen::classifyPoints ( CompositeGrid cg,
realSerialArray invalidPoint,
int &  numberOfInvalidPoints,
const int &  level,
CompositeGrid cg0 
)
protected

References Overture::abort(), adjustBoundary(), adjustForNearbyBoundaries(), allowHangingInterpolation, assert, axis1, axis2, axis3, backupValues, backupValuesUsed, bb, MappedGrid::boundaryCondition(), MappedGrid::boundaryFlag(), buff, c, CompositeGridData::canInterpolate(), MappedGrid::center(), center, checkCanInterpolate(), checkForOneSided, Overture::checkMemoryUsage(), checkOverlappingGrid(), classifyHolesForHybrid, classifyRedundantPoints(), debug, MappedGrid::dimension(), MappedGrid::discretizationWidth(), display(), displayMask(), End, MappedGrid::extendedIndexRange(), MappedGrid::extendedRange(), FALSE, findBestGuess(), generateInterpolationArrays(), GET_LOCAL, Mapping::getBoundingBox(), getCPU(), getGhostIndex(), getIndex(), ParallelUtility::getLocalArrayBounds(), getLocalArrayWithGhostBoundaries(), MappingRC::getMapping(), ParallelUtility::getMaxValue(), ParallelUtility::getMinValue(), ParallelUtility::getMinValues(), MappingRC::getName(), MappedGrid::getRectangularGridParameters(), ParallelUtility::getSum(), MappedGrid::gridIndexRange(), GenericGridCollection::gridNumber, i2, ia, improveQuality(), improveQualityOfInterpolation, info, interpolateAll(), interpolateMixedBoundary(), CompositeGrid::interpolationIsImplicit, CompositeGrid::interpolationStartEndIndex, Mapping::intersects(), CompositeGrid::inverseCoordinates, CompositeGrid::inverseGrid, Mapping::inverseMap(), Mapping::inverseMapS(), MappedGrid::isAllCellCentered(), MappedGrid::ISdiscretizationPoint, MappedGrid::ISinteriorBoundaryPoint, MappedGrid::ISinterpolationPoint, isNew, MappedGrid::isRectangular(), lastChanceInterpolation(), logFile, makeAdjustmentsForNearbyBoundaries, MappedGrid::mapping(), Mapping::mappingName, markMaskAtGhost(), markPointsNeededForInterpolation(), mask, MappedGrid::mask(), max(), CompositeGrid::mayInterpolate, min(), minimizeTheOverlap, MappedGrid::mixedPhysicalInterpolationBoundary, myid, NULL, Overture::nullIntArray(), nullRange, Overture::nullRealArray(), GenericGridCollection::numberOfBaseGrids(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), MappedGrid::numberOfGhostPoints(), GenericGridCollection::numberOfGrids(), CompositeGrid::numberOfInterpolationPoints, numberOfMixedBoundaries, intMappedGridFunction::periodicUpdate(), plogFile, plot(), printF(), Overture::printMemoryUsage(), ps, r, R, rBound, CompositeGrid::rcData, sPrintF(), Start, MappedGrid::THEcenter, MappedGrid::THEvertex, timeAllInterpolation, timeImproperInterpolation, timeImproveQuality, timeProperInterpolation, timeRemoveRedundant, totalTime, TRUE, unmarkBoundaryInterpolationPoints(), unmarkInterpolationPoints(), CompositeGrid::update(), updateCanInterpolate(), useBoundaryAdjustment, MappedGrid::USESbackupRules, x, and XC.

Referenced by computeOverlap().

int Ogen::classifyRedundantPoints ( CompositeGrid cg,
const int &  grid,
const int &  level,
CompositeGrid cg0 
)
protected
real Ogen::computeInterpolationQuality ( CompositeGrid cg,
const int &  grid,
const int &  i1,
const int &  i2,
const int &  i3,
real qForward,
real qReverse 
)
protected
int Ogen::computeInterpolationStencil ( CompositeGrid cg,
const int &  grid,
const int &  gridI,
const real  r[3],
int  stencil[3][2],
bool  useOneSidedAtBoundaries = true,
bool  useOddInterpolationWidth = false 
)
protected
int Ogen::computeOverlap ( CompositeGrid cg,
CompositeGrid cgOld,
const int &  level = 0,
const bool &  movingGrids = FALSE,
const IntegerArray hasMoved = Overture::nullIntArray() 
)
protected

References Overture::abort(), abortOnAlgorithmFailure, abs(), assert, aString, checkFile, checkInterpolationOnBoundaries(), Overture::checkMemoryUsage(), checkOverlappingGrid(), checkParallelGhostWidth(), classifyPoints(), cutHoles(), cutHolesNew(), cutHolesNewer(), debug, dim, doubleCheckInterpolation, extendedGridRange(), FOR_3D, fPrintF(), generateInterpolationArrays(), GET_LOCAL_CONST, getCPU(), Overture::getCurrentMemoryUsage(), getIndex(), ParallelUtility::getLocalArrayBounds(), Overture::getMaximumMemoryUsage(), ParallelUtility::getMaxValue(), ParallelUtility::getMinValue(), ParallelUtility::getSum(), GI_PLOT_INTERPOLATION_POINTS, MappingInformation::graphXInterface, holeCuttingOption, i2, incrementalHoleSweep, info, isMovingGridProblem, isNew, logFile, Mapping::mappingName, mask, MASK, max(), CompositeGrid::multigridLevel, NULL, GenericGridCollection::numberOfBaseGrids(), GenericGridCollection::numberOfComponentGrids(), numberOfHolePoints, CompositeGrid::numberOfInterpolationPoints, GenericGridCollection::numberOfMultigridLevels(), numberOfOrphanPoints, CompositeGrid::numberOfPossibleMultigridLevels(), orphanPoint, outputGridOnFailure, plot(), plotHolePoints, printF(), Overture::printMemoryUsage(), ps, psp, removeExteriorPointsNew(), resetGrid(), saveGridToAFile(), GraphicsParameters::set(), SQR, GenericGraphicsInterface::stopReadingCommandFile(), sweepOutHolePoints(), timeAllInterpolation, timeCutHoles, timeImproperInterpolation, timeImproveQuality, timeInterpolateBoundaries, timeProperInterpolation, timeRemoveExteriorPoints, timeRemoveRedundant, timeUpdateGeometry, totalTime, TRUE, updateOverlap(), and GridCollection::USESbackupRules.

Referenced by updateOverlap().

int Ogen::conformToCmpgrd ( CompositeGrid cg)
protected
int Ogen::countCrossingsWithRealBoundary ( CompositeGrid cg,
const realArray x,
IntegerArray crossings 
)
protected
int Ogen::cutHoles ( CompositeGrid cg)
protected

References abs(), adjustBoundary(), Mapping::approximateGlobalInverse, assert, axis1, axis2, axis3, ApproximateGlobalInverse::binarySearchOverBoundary(), Mapping::bogus, MappedGrid::boundaryCondition(), boundaryEps, MappedGrid::boundaryFlag(), boundingBox, MappedGrid::center(), center, checkHoleCutting(), debug, delta, MappedGrid::dimension(), display(), dr, dx, End, extendedGridIndexRange(), MappedGrid::extendedIndexRange(), extendedIndexRange2, fabs(), FALSE, FOR_3D, Mapping::functionPeriodic, getBoundaryIndex(), Mapping::getBoundingBox(), getCPU(), getIndex(), MappingRC::getMapping(), MappingRC::getName(), MappedGrid::getName(), MappedGrid::getRectangularGridParameters(), Mapping::getTopology(), Mapping::getTypeOfCoordinateSingularity(), MappedGrid::gridIndexRange(), MappedGrid::gridSpacing(), holeMarker, holeOffset, holePoint, i2, ia, MappedGrid::indexRange(), indexRange2, info, Mapping::intersects(), CompositeGrid::inverseCoordinates, CompositeGrid::inverseGrid, Mapping::inverseMap(), Mapping::inverseMapC(), MappedGrid::isAllCellCentered(), MappedGrid::ISinterpolationPoint, isNew, ISnonCuttingBoundaryPoint, MappedGrid::isPeriodic(), MappedGrid::isRectangular(), logFile, manualHole, Mapping::mapC(), MappedGrid::mapping(), Mapping::mappingName, mask, MappedGrid::mask(), mask2, max(), CompositeGrid::maximumHoleCuttingDistance, CompositeGrid::mayCutHoles, CompositeGrid::mayInterpolate, min(), MappedGrid::mixedPhysicalInterpolationBoundary, nonCuttingBoundaryPoints, normal, GenericGridCollection::numberOfBaseGrids(), GridCollection::numberOfDimensions(), MappedGrid::numberOfDimensions(), numberOfHolePoints, numberOfManualHoles, numberOfNonCuttingBoundaries, numberOfOrphanPoints, orphanPoint, intMappedGridFunction::periodicUpdate(), plotOrphanPoints, Mapping::polarSingularity, printF(), projectToBoundary(), r, R, rBound, REAL_MAX, REAL_MIN, share, MappedGrid::sharedBoundaryFlag(), CompositeGrid::sharedSidesMayCutHoles, SQR, SQRT, Start, timeCutHoles, Mapping::topologyIsPartiallyPeriodic, Mapping::topologyMask(), totalTime, TRUE, useBoundaryAdjustment, MappedGrid::vertex(), MappedGrid::vertexBoundaryNormal(), MappedGrid::vertexDerivative(), x, XC, XC2, XR, xr, and XV.

Referenced by computeOverlap().

int Ogen::cutHolesNew ( CompositeGrid cg)
protected

References Overture::abort(), abs(), adjustBoundary(), Mapping::approximateGlobalInverse, assert, axis1, axis2, axis3, ApproximateGlobalInverse::binarySearchOverBoundary(), Mapping::bogus, MappedGrid::boundaryCondition(), boundaryEps, MappedGrid::boundaryFlag(), boundingBox, MappedGrid::center(), center, checkHoleCutting(), Overture::checkMemoryUsage(), debug, delta, MappedGrid::dimension(), display(), dr, dx, End, explicitHoleCutting(), extendedGridIndexRange(), MappedGrid::extendedIndexRange(), extendedIndexRange2, fabs(), FALSE, FOR_3, FOR_3D, Mapping::functionPeriodic, GET_LOCAL, GET_LOCAL_CONST, getBoundaryIndex(), Mapping::getBoundingBox(), getCPU(), getHoleWidth(), getIndex(), ListOfMappingRC::getLength(), ParallelUtility::getLocalArrayBounds(), getLocalArrayWithGhostBoundaries(), MappingRC::getMapping(), MappingRC::getName(), MappedGrid::getName(), MappedGrid::getRectangularGridParameters(), Mapping::getTopology(), Mapping::getTypeOfCoordinateSingularity(), MappedGrid::gridIndexRange(), MappedGrid::gridSpacing(), gridSpacing2, holeCutters, holeMarker, holePoint, i2, ia, MappedGrid::indexRange(), indexRange2, info, Mapping::intersects(), CompositeGrid::inverseCoordinates, CompositeGrid::inverseGrid, Mapping::inverseMap(), Mapping::inverseMapC(), Mapping::inverseMapS(), MappedGrid::isAllCellCentered(), MappedGrid::ISinterpolationPoint, isNew, ISnonCuttingBoundaryPoint, MappedGrid::isPeriodic(), MappedGrid::isRectangular(), localIndexBounds2, manualHole, Mapping::mapC(), Mapping::mapGrid(), Mapping::mapGridS(), MappedGrid::mapping(), Mapping::mappingName, Mapping::mapS(), mask, MappedGrid::mask(), mask2, max(), CompositeGrid::maximumHoleCuttingDistance, CompositeGrid::mayCutHoles, CompositeGrid::mayInterpolate, min(), MappedGrid::mixedPhysicalInterpolationBoundary, myid, nonCuttingBoundaryPoints, normal, NULL, Overture::nullIntArray(), Overture::nullRealArray(), GenericGridCollection::numberOfBaseGrids(), GridCollection::numberOfDimensions(), MappedGrid::numberOfDimensions(), numberOfHolePoints, numberOfManualHoles, numberOfNonCuttingBoundaries, numberOfOrphanPoints, orphanPoint, intMappedGridFunction::periodicUpdate(), plogFile, plotOrphanPoints, Mapping::polarSingularity, printF(), pxBoundary, r, R, RB, rBound, REAL_MAX, REAL_MIN, share, MappedGrid::sharedBoundaryFlag(), CompositeGrid::sharedSidesMayCutHoles, SQR, SQRT, Start, timeCheckHoleCutting, timeCutHoles, Mapping::topologyIsPartiallyPeriodic, Mapping::topologyMask(), totalTime, TRUE, useBoundaryAdjustment, MappedGrid::vertex(), MappedGrid::vertexBoundaryNormal(), MappedGrid::vertexBoundaryNormalArray(), MappedGrid::vertexDerivative(), x, xBoundary, XC, XC2, XR, xr, and XV.

Referenced by computeOverlap().

int Ogen::cutHolesNewer ( CompositeGrid cg)
protected

References Overture::abort(), abs(), adjustBoundary(), Mapping::approximateGlobalInverse, assert, axis1, axis2, axis3, ApproximateGlobalInverse::binarySearchOverBoundary(), Mapping::bogus, MappedGrid::boundaryCondition(), boundaryEps, MappedGrid::boundaryFlag(), boundingBox, MappedGrid::center(), center, checkHoleCutting(), Overture::checkMemoryUsage(), debug, delta, MappedGrid::dimension(), display(), displayMask(), dr, dx, End, extendedGridIndexRange(), MappedGrid::extendedIndexRange(), extendedIndexRange2, fabs(), FALSE, fmod(), FOR_3, FOR_3D, Mapping::functionPeriodic, GET_LOCAL, GET_LOCAL_CONST, getBoundaryIndex(), getCPU(), getHoleWidth(), getIndex(), ParallelUtility::getLocalArrayBounds(), getLocalArrayWithGhostBoundaries(), MappingRC::getMapping(), MappingRC::getName(), MappedGrid::getName(), MappedGrid::getRectangularGridParameters(), Mapping::getTopology(), Mapping::getTypeOfCoordinateSingularity(), MappedGrid::gridIndexRange(), MappedGrid::gridSpacing(), gridSpacing2, holeMarker, holePoint, i2, ia, MappedGrid::indexRange(), indexRange2, info, Mapping::intersects(), CompositeGrid::inverseCoordinates, CompositeGrid::inverseGrid, Mapping::inverseMap(), Mapping::inverseMapC(), Mapping::inverseMapS(), MappedGrid::isAllCellCentered(), MappedGrid::ISinterpolationPoint, isNew, ISnonCuttingBoundaryPoint, isPeriodic, MappedGrid::isPeriodic(), MappedGrid::isRectangular(), l2Norm(), MappedGrid::localBoundingBox(), localIndexBounds2, logFile, manualHole, Mapping::mapC(), Mapping::mapGrid(), Mapping::mapGridS(), MappedGrid::mapping(), Mapping::mappingName, Mapping::mapS(), mask, MappedGrid::mask(), mask2, max(), CompositeGrid::maximumHoleCuttingDistance, CompositeGrid::mayCutHoles, CompositeGrid::mayInterpolate, min(), MappedGrid::mixedPhysicalInterpolationBoundary, myid, nonCuttingBoundaryPoints, normal, NULL, Overture::nullIntArray(), Overture::nullRealArray(), GenericGridCollection::numberOfBaseGrids(), GridCollection::numberOfDimensions(), MappedGrid::numberOfDimensions(), numberOfHolePoints, numberOfManualHoles, numberOfNonCuttingBoundaries, numberOfOrphanPoints, orphanPoint, intMappedGridFunction::periodicUpdate(), plogFile, plotOrphanPoints, Mapping::polarSingularity, printF(), pxBoundary, r, R, RB, rBound, REAL_MAX, REAL_MIN, share, MappedGrid::sharedBoundaryFlag(), CompositeGrid::sharedSidesMayCutHoles, sPrintF(), SQR, SQRT, Start, timeCheckHoleCutting, timeCutHoles, Mapping::topologyIsPartiallyPeriodic, Mapping::topologyMask(), totalTime, TRUE, useBoundaryAdjustment, Mapping::usesDistributedInverse(), MappedGrid::vertex(), MappedGrid::vertexBoundaryNormal(), MappedGrid::vertexBoundaryNormalArray(), MappedGrid::vertexDerivative(), x, xBoundary, XC, XC2, XR, xr, and XV.

Referenced by computeOverlap().

int Ogen::determineBoundaryPointsToAdjust ( CompositeGrid cg,
const int  grid,
const int  grid2,
IntegerArray sidesShare,
const int  ks1,
const int  kd1,
const int  ks2,
const int  kd2,
BoundaryAdjustment bA,
bool &  first,
bool &  needAdjustment,
int  numberOfDirectionsAdjusted,
bool &  directionAdjusted,
bool &  wasAdjusted,
Range &  R,
IntegerArray ia,
IntegerArray ok,
const int  it,
real  shareTol[3][2],
RealArray r,
RealArray r2,
RealArray r3,
RealArray rOk,
RealArray xx,
RealArray x2,
RealArray x3 
)
protected
int Ogen::determineMinimalIndexRange ( CompositeGrid cg)
protected
int Ogen::displayCompositeGridParameters ( CompositeGrid cg,
FILE *  file = stdout 
)
static
int Ogen::estimateSharedBoundaryTolerance ( CompositeGrid cg)
protected
int Ogen::explicitHoleCutting ( CompositeGrid cg)
protected
int Ogen::findBestGuess ( CompositeGrid cg,
const int &  grid,
const int &  numberToCheck,
intSerialArray &  ia,
realSerialArray x,
realSerialArray r,
realSerialArray rI,
intSerialArray &  inverseGrid,
const realSerialArray center 
)
protected
int Ogen::findClosestBoundaryPoint ( MappedGrid mg,
real x,
int *  iv,
int *  ivb,
int &  sideb,
int &  axisb 
)
protected
int Ogen::findTrueBoundary ( CompositeGrid cg)
protected
int Ogen::generateInterpolationArrays ( CompositeGrid cg,
const IntegerArray numberOfInterpolationPoints,
intSerialArray *  iInterp 
)
protected

References Overture::abort(), abs(), adjustSizeMacro, assert, aString, backupValues, backupValuesUsed, MappedGrid::boundaryCondition(), buff, c, GenericGridCollectionData::computedGeometry, GenericGridCollection::COMPUTEnothing, display(), End, MappedGrid::extendedIndexRange(), MappedGrid::extendedRange(), GET_LOCAL, getIndex(), ParallelUtility::getLocalArrayBounds(), ParallelUtility::getMaxValues(), ParallelUtility::getSum(), MappedGrid::gridSpacing(), i2, ia, MappedGrid::indexRange(), info, CompositeGrid::interpolationCoordinates, interpolationCoordinates, CompositeGridData::interpolationCoordinatesLocal, CompositeGrid::interpolationIsImplicit, CompositeGrid::interpolationPoint, CompositeGridData::interpolationPointLocal, CompositeGrid::interpolationStartEndIndex, CompositeGrid::interpolationWidth, CompositeGrid::interpoleeGrid, interpoleeGrid, CompositeGridData::interpoleeGridLocal, CompositeGrid::interpoleeLocation, interpoleeLocation, CompositeGridData::interpoleeLocationLocal, CompositeGrid::inverseCoordinates, CompositeGrid::inverseGrid, MappedGrid::isCellCentered(), MappedGrid::ISinterpolationPoint, MappedGrid::isPeriodic(), CompositeGridData::localInterpolationDataForAll, CompositeGridData::localInterpolationDataState, mask, MappedGrid::mask(), GenericGridCollection::numberOfBaseGrids(), GridCollection::numberOfDimensions(), GenericGridCollection::numberOfGrids(), CompositeGrid::numberOfInterpolationPoints, CompositeGridData::numberOfInterpolationPointsLocal, printF(), R, saveGridToAFile(), sPrintF(), Start, CompositeGrid::THEinterpolationCoordinates, CompositeGrid::THEinterpolationPoint, CompositeGrid::THEinterpoleeGrid, CompositeGrid::THEinterpoleeLocation, GridCollection::THEmask, CompositeGrid::update(), MappedGrid::USESbackupRules, CompositeGrid::variableInterpolationWidth, variableInterpolationWidth, and CompositeGridData::variableInterpolationWidthLocal.

Referenced by classifyPoints(), computeOverlap(), movingUpdate(), movingUpdateNew(), and queryAPoint().

int Ogen::getAdjustmentVectors ( CompositeGrid cg,
BoundaryAdjustment bA,
int  grid,
int  grid2,
bool &  needAdjustment,
int  numberOfPoints,
int  it,
int  ks1,
int  kd1,
int  ks2,
int  kd2,
Index  Iv[3],
RealArray x1 
)
protected
int Ogen::getHoleWidth ( CompositeGrid cg,
MappedGrid g2,
int  pHoleMarker[3],
IntegerArray holeCenter,
IntegerArray holeMask,
IntegerArray holeWidth,
RealArray r,
RealArray x,
const int *  pIndexRange2,
const int *  pExtendedIndexRange2,
const int *  plocalIndexBounds2,
int  iv[3],
int  jv[3],
int  jpv[3],
bool  isPeriodic2[3],
bool  isPeriodic2p[3],
const Index  Iv[3],
const int &  grid,
const int &  grid2,
int &  ib,
int &  ib2,
int &  skipThisPoint,
int &  initialPoint,
const int &  numberOfDimensions,
const int &  axisp1,
const int &  axisp2,
const real cellCenterOffset,
const int &  maximumHoleWidth,
int &  numberOfHoleWidthWarnings 
)
protected
int Ogen::getNormal ( const int &  numberOfDimensions,
const int &  side,
const int &  axis,
const RealArray xr,
real  signForJacobian,
RealArray normal 
)
protected
void Ogen::getSharedBoundaryTolerances ( CompositeGrid cg,
int  grid1,
int  side1,
int  dir1,
int  grid2,
int  side2,
int  dir2,
real rTol,
real xTol,
real nTol 
) const
protected

References REAL_MAX.

Referenced by determineBoundaryPointsToAdjust().

int Ogen::improveQuality ( CompositeGrid cg,
const int &  grid,
RealArray removedPointBound 
)
protected
int Ogen::initialize ( )
protected
int Ogen::interpolateAll ( CompositeGrid cg,
IntegerArray numberOfInterpolationPoints,
CompositeGrid cg0 
)
protected

References adjustBoundary(), axis1, axis2, axis3, MappedGrid::boundaryFlag(), GridCollection::boundingBox, boundingBox, c, CompositeGridData::canInterpolate(), MappedGrid::center(), center, checkCanInterpolate(), checkForOneSided, Overture::checkMemoryUsage(), debug, display(), End, MappedGrid::extendedIndexRange(), FALSE, GET_LOCAL, getIndex(), ParallelUtility::getLocalArrayBounds(), getLocalArrayWithGhostBoundaries(), MappingRC::getMapping(), ParallelUtility::getMaxValue(), MappingRC::getName(), Mapping::getName(), MappedGrid::getName(), MappedGrid::getRectangularGridParameters(), ParallelUtility::getSum(), Mapping::getTypeOfCoordinateSingularity(), MappedGrid::gridIndexRange(), GenericGridCollection::gridNumber, i2, ia, improveQualityOfInterpolation, info, CompositeGrid::inverseCoordinates, CompositeGrid::inverseGrid, Mapping::inverseMap(), Mapping::inverseMapS(), MappedGrid::isAllCellCentered(), MappedGrid::isAllVertexCentered(), MappedGrid::ISdiscretizationPoint, MappedGrid::ISinteriorBoundaryPoint, MappedGrid::ISinterpolationPoint, isNew, MappedGrid::isPeriodic(), MappedGrid::isRectangular(), MappedGrid::mapping(), Mapping::mappingName, mask, MappedGrid::mask(), max(), maximumNumberOfPointsToInvertAtOneTime, CompositeGrid::mayInterpolate, min(), MappedGrid::mixedPhysicalInterpolationBoundary, Overture::nullIntArray(), Overture::nullRealArray(), GenericGridCollection::numberOfBaseGrids(), GridCollection::numberOfDimensions(), OV_ABORT, intMappedGridFunction::periodicUpdate(), plogFile, Mapping::polarSingularity, printF(), r, R, R0, CompositeGrid::rcData, S, sPrintF(), Start, TRUE, useBoundaryAdjustment, x, XC, XC0, XC1, and XC2.

Referenced by classifyPoints().

bool Ogen::interpolateAPoint ( CompositeGrid cg,
int  grid,
int  iv[3],
bool  interpolatePoint,
bool  checkInterpolationCoords,
bool  checkBoundaryPoint,
int  infoLevel 
)
protected

Try to interpolate a point If interpolatePoint==true then attempt to interpolate the point. Return true if the point was interpolated.

Parameters
cg(input) : CompositeGrid
grid(input) : point to interpolate is on this grid.
iv[3](input) : index of the point to interpolate.
interpolatePoint(input) : if true and the point (grid,iv) can interpolate from another donor grid then adjust the mask, inverseGrid and inverseCoordinates to indicate this.
checkInterpolationCoords(input) :
checkBoundaryPoint(input) : if true then project the point (grid,iv) onto the nearest boundary before attempting to interpolate. Also check the normals between the interpolation point and donor.
infoLevel(input) : bit flag, infoLevel = 0 + 1 + 2 to output additional information.

References adjustBoundary(), Mapping::approximateGlobalInverse, assert, axis1, axis2, axis3, CompositeGridData::canInterpolate(), MappedGrid::center(), center, checkCanInterpolate(), checkForOneSided, debug, Mapping::debug, MappedGrid::dimension(), dr, dx, fabs(), findClosestBoundaryPoint(), Mapping::findNearestGridPoint(), MappingRC::getMapping(), Mapping::getName(), MappedGrid::getName(), MappedGrid::getRectangularGridParameters(), MappedGrid::gridIndexRange(), GenericGridCollection::gridNumber, MappedGrid::gridSpacing(), i2, ia, CompositeGrid::interpolationWidth, Mapping::intersects(), CompositeGrid::inverseCoordinates, CompositeGrid::inverseGrid, Mapping::inverseMapS(), MappedGrid::isAllCellCentered(), MappedGrid::ISinterpolationPoint, MappedGrid::isRectangular(), MappedGrid::mapping(), Mapping::mappingName, Mapping::mapS(), MappedGrid::mask(), mask2, max(), CompositeGrid::mayInterpolate, myid, normal, NULL, GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), MappedGrid::numberOfDimensions(), OV_GET_SERIAL_ARRAY, OV_GET_SERIAL_ARRAY_CONDITIONAL, OV_GET_SERIAL_ARRAY_CONST, printF(), r, CompositeGrid::rcData, REAL_EPSILON, REAL_MAX, rx, SQR, useBoundaryAdjustment, MappedGrid::vertex(), MappedGrid::vertexBoundaryNormal(), x, XC, and XC2.

Referenced by checkHoleCutting(), and queryAPoint().

int Ogen::interpolateMixedBoundary ( CompositeGrid cg,
int  mixedBoundaryNumber 
)
protected
int Ogen::interpolateMixedBoundary ( CompositeGrid cg,
int  mixedBoundaryNumber,
int  side,
int  axis,
int  grid,
MappedGrid g,
int  grid2,
MappedGrid g2,
int  offset[3],
real  rScale[3],
real  rOffset[3] 
)
protected
int Ogen::interpolatePoints ( CompositeGrid cg,
int  grid,
int  numberToInterpolate,
const IntegerArray ia,
IntegerArray interpolates 
)
protected
bool Ogen::isNeededForDiscretization ( MappedGrid g,
const int  iv[3] 
)
protected
bool Ogen::isNeededForMultigridRestriction ( CompositeGrid c,
const int &  grid,
const int &  l,
const int  iv[3] 
)
protected
bool Ogen::isOnInterpolationBoundary ( MappedGrid g,
const int  iv[3],
const int &  width = 1 
)
protected
int Ogen::lastChanceInterpolation ( CompositeGrid cg,
CompositeGrid cg0,
const int &  grid,
const IntegerArray ia,
const IntegerArray ok,
intSerialArray &  interpolates,
int &  numberOfInvalidPoints,
realSerialArray invalidPoint,
const int &  printDiagnosticMessages = false,
const bool &  tryBackupRules = false,
const bool  saveInvalidPoints = true,
int  lastChanceOption = 0 
)
protected

This routine is called for points that could not be interpolated when perhaps they should be able to.

This routine will make several attempts to fix the situation including turning the point into a discretization point, reducing the width of interpolation or changing explicit interpolation into implicit interpolation.

Parameters
grid(input) : interpolation points lie on this grid
ia(i,0:nd-1): a list of points to be checked. In parallel, each processor will have a different list.
ok(i)(output) : ??
interpolates(i)(output) : return true for points that could be fixed.
numberOfInvalidPoints(output) : number of points that could not be fixed.
invalidPoint(i,0:nd-1)(output) : coordinates of the invalid points (for plotting?)
printDiagnosticMessages(input) : bit flag for diagnostic output.
lastChanceOption(input) : 0=default, -1: do not remove un-needed points at the start

References adjustBoundary(), allowBackupRules, assert, aString, axis1, axis2, axis3, backupValues, backupValuesUsed, MappedGrid::boundaryCondition(), c, canDiscretize(), CompositeGridData::canInterpolate(), MappedGrid::center(), center, checkCanInterpolate(), checkForOneSided, computeInterpolationStencil(), debug, MappedGrid::dimension(), MappedGrid::discretizationWidth(), End, extendedGridIndexRange(), MappedGrid::extendedIndexRange(), fabs(), FALSE, GET_LOCAL, getLocalArrayWithGhostBoundaries(), MappingRC::getMapping(), MappingRC::getName(), Mapping::getName(), MappedGrid::getName(), MappedGrid::getRectangularGridParameters(), ParallelUtility::getSum(), MappedGrid::gridIndexRange(), GenericGridCollection::gridNumber, MappedGrid::gridSpacing(), MappedGrid::indexRange(), CompositeGrid::interpolationIsImplicit, CompositeGrid::interpolationOverlap, CompositeGrid::interpolationWidth, Mapping::intersects(), CompositeGrid::inverseCoordinates, CompositeGrid::inverseGrid, Mapping::inverseMap(), Mapping::inverseMapS(), MappedGrid::isAllCellCentered(), MappedGrid::ISdiscretizationPoint, MappedGrid::ISinteriorBoundaryPoint, MappedGrid::ISinterpolationPoint, MappedGrid::isRectangular(), MappedGrid::mapping(), Mapping::mappingName, Mapping::mapS(), mask, MappedGrid::mask(), mask2, max(), CompositeGrid::mayCutHoles, CompositeGrid::mayInterpolate, min(), myid, GenericGridCollection::numberOfBaseGrids(), GridCollection::numberOfDimensions(), MappedGrid::numberOfDimensions(), OV_ABORT, plogFile, printF(), r, R, CompositeGrid::rcData, REAL_EPSILON, MappedGrid::sharedBoundaryTolerance(), Start, TRUE, useBoundaryAdjustment, MappedGrid::USESbackupRules, x, XC, and XVC.

Referenced by classifyPoints().

int Ogen::markMaskAtGhost ( CompositeGrid cg)
protected
int Ogen::markOffAxisRefinementMask ( int  numberOfDimensions,
Index  Ivr[3],
Index  Ivb[3],
int  rf[3],
intSerialArray &  mask,
const intSerialArray &  maskb 
)
protected

1) there must be a valid point on a face in each direction:

References axis1, axis2, axis3, evaluate(), FOR_3BR, FOR_3R, MASK, MASKB, min(), setRefinementMaskFace(), and Start.

Referenced by updateRefinement(), updateRefinementNew(), and updateRefinementNewer().

int Ogen::markPointsNeededForInterpolation ( CompositeGrid cg,
const int &  grid,
const int &  lowerOrUpper = -1 
)
protected
int Ogen::markPointsNeededForInterpolationNew ( CompositeGrid cg,
const int &  grid,
const int &  lowerOrUpper = -1 
)
protected
int Ogen::markPointsReallyNeededForInterpolation ( CompositeGrid cg)
protected
int Ogen::movingUpdate ( CompositeGrid cg,
CompositeGrid cgOld,
const LogicalArray hasMoved,
const MovingGridOption option = useOptimalAlgorithm 
)
protected

References adjustBoundary(), assert, aString, axis1, axis2, axis3, backupValues, backupValuesUsed, CompositeGridData::boundaryAdjustment, boundaryCondition, MappedGrid::boundaryCondition(), c, canDiscretize(), CompositeGridData::canInterpolate(), MappedGrid::center(), center, checkForOneSided, checkOverlappingGrid(), GenericGridData::computedGeometry, GenericGridCollectionData::computedGeometry, GenericGridCollection::computedGeometry(), computeInterpolationStencil(), GenericGridCollection::COMPUTEnothing, debug, MappedGrid::dimension(), display(), displayMask(), End, ENDFORJP, ENDFORJP_STENCIL, MappedGrid::extendedIndexRange(), MappedGrid::extendedRange(), FALSE, FORJP, FORJP_STENCIL, generateInterpolationArrays(), TrivialArray< Type, Dim >::getBase(), TrivialArray< Type, Dim >::getBound(), getCPU(), MappingRC::getMapping(), MappedGrid::getRectangularGridParameters(), GI_COLOUR_INTERPOLATION_POINTS, GI_PLOT_INTERPOLATION_POINTS, MappedGrid::gridIndexRange(), MappedGrid::gridSpacing(), i2, ia, MappedGrid::indexRange(), info, CompositeGrid::interpolationCoordinates, interpolationCoordinates, CompositeGrid::interpolationOverlap, CompositeGrid::interpolationPoint, CompositeGrid::interpolationStartEndIndex, CompositeGrid::interpolationWidth, CompositeGrid::interpoleeGrid, interpoleeGrid, CompositeGrid::interpoleeLocation, interpoleeLocation, CompositeGrid::inverseCoordinates, CompositeGrid::inverseGrid, Mapping::inverseMap(), ip, MappedGrid::isAllCellCentered(), MappedGrid::isCellCentered(), MappedGrid::ISdiscretizationPoint, MappedGrid::ISinterpolationPoint, isMovingGridProblem, isNew, MappedGrid::isPeriodic(), MappedGrid::isRectangular(), MappedGrid::mapping(), markMaskAtGhost(), mask, MappedGrid::mask(), mask2, max(), min(), movingUpdateNew(), NULL, GenericGridCollection::numberOfBaseGrids(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), MappedGrid::numberOfDimensions(), CompositeGrid::numberOfInterpolationPoints, numberOfOrphanPoints, orphanPoint, outputMovingGrids(), plot(), plotOrphanPoints, psp, r, R, CompositeGrid::rcData, TrivialArray< Type, Dim >::redim(), GraphicsParameters::set(), Start, MappedGrid::THEcenter, CompositeGrid::THEinterpolationCoordinates, CompositeGrid::THEinterpolationPoint, CompositeGrid::THEinterpoleeGrid, CompositeGrid::THEinterpoleeLocation, CompositeGrid::THEinverseMap, GridCollection::THEmask, GenericGridCollection::THErefinementLevel, MappedGrid::THEvertex, timeUpdateGeometry, totalTime, TRUE, CompositeGrid::update(), MappedGrid::update(), updateBoundaryAdjustment(), updateOverlap(), useBoundaryAdjustment, MappedGrid::USESbackupRules, CompositeGrid::variableInterpolationWidth, x, and XC.

Referenced by updateOverlap().

int Ogen::movingUpdateNew ( CompositeGrid cg,
CompositeGrid cgOld,
const LogicalArray hasMoved,
const MovingGridOption option = useOptimalAlgorithm 
)
protected

The new moving grid generator (parallel version)

References Overture::abort(), adjustBoundary(), adjustSizeMacro, assert, aString, axis1, axis2, axis3, backupValues, backupValuesUsed, CompositeGridData::boundaryAdjustment, boundaryCondition, MappedGrid::boundaryCondition(), c, canDiscretize(), CompositeGridData::canInterpolate(), MappedGrid::center(), center, checkCanInterpolate(), checkForOneSided, checkOverlappingGrid(), GenericGridData::computedGeometry, GenericGridCollectionData::computedGeometry, GenericGridCollection::computedGeometry(), computeInterpolationStencil(), GenericGridCollection::COMPUTEnothing, debug, MappedGrid::dimension(), display(), displayMask(), End, ENDFORJP, ENDFORJP_STENCIL, MappedGrid::extendedIndexRange(), MappedGrid::extendedRange(), FORJP, FORJP_STENCIL, generateInterpolationArrays(), GET_LOCAL, TrivialArray< Type, Dim >::getBase(), TrivialArray< Type, Dim >::getBound(), getCPU(), ListOfIntSerialArray::getLength(), MappingRC::getMapping(), MappedGrid::getRectangularGridParameters(), GI_COLOUR_INTERPOLATION_POINTS, GI_PLOT_INTERPOLATION_POINTS, MappedGrid::gridIndexRange(), MappedGrid::gridSpacing(), i2, ia, MappedGrid::indexRange(), info, CompositeGrid::interpolationCoordinates, interpolationCoordinates, CompositeGridData::interpolationCoordinatesLocal, CompositeGrid::interpolationOverlap, CompositeGridData::interpolationPoint, CompositeGrid::interpolationPoint, CompositeGridData::interpolationPointLocal, CompositeGrid::interpolationStartEndIndex, CompositeGrid::interpolationWidth, CompositeGrid::interpoleeGrid, interpoleeGrid, CompositeGridData::interpoleeGridLocal, CompositeGrid::interpoleeLocation, interpoleeLocation, CompositeGridData::interpoleeLocationLocal, CompositeGrid::inverseCoordinates, CompositeGrid::inverseGrid, Mapping::inverseMap(), Mapping::inverseMapS(), ip, MappedGrid::isAllCellCentered(), MappedGrid::isCellCentered(), MappedGrid::ISdiscretizationPoint, MappedGrid::ISinterpolationPoint, isMovingGridProblem, isNew, MappedGrid::isPeriodic(), MappedGrid::isRectangular(), CompositeGridData::localInterpolationDataForAll, CompositeGridData::localInterpolationDataState, MappedGrid::mapping(), markMaskAtGhost(), mask, MappedGrid::mask(), mask2, max(), min(), myid, CompositeGridData::noLocalInterpolationData, NULL, GenericGridCollection::numberOfBaseGrids(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), MappedGrid::numberOfDimensions(), GenericGridCollection::numberOfGrids(), CompositeGrid::numberOfInterpolationPoints, CompositeGridData::numberOfInterpolationPointsLocal, numberOfOrphanPoints, orphanPoint, OV_GET_SERIAL_ARRAY_CONDITIONAL, plot(), plotOrphanPoints, printF(), psp, r, R, CompositeGrid::rcData, TrivialArray< Type, Dim >::redim(), GraphicsParameters::set(), sPrintF(), Start, MappedGrid::THEcenter, CompositeGrid::THEinterpolationCoordinates, CompositeGrid::THEinterpolationPoint, CompositeGrid::THEinterpoleeGrid, CompositeGrid::THEinterpoleeLocation, CompositeGrid::THEinverseMap, GridCollection::THEmask, GenericGridCollection::THErefinementLevel, MappedGrid::THEvertex, timeUpdateGeometry, totalTime, CompositeGrid::update(), MappedGrid::update(), updateBoundaryAdjustment(), updateOverlap(), useBoundaryAdjustment, MappedGrid::USESbackupRules, CompositeGrid::variableInterpolationWidth, CompositeGridData::variableInterpolationWidthLocal, x, and XC.

Referenced by movingUpdate().

int Ogen::oppositeBoundaryIndex ( MappedGrid g,
const int &  ks,
const int &  kd 
)
protected
int Ogen::plot ( const aString title,
CompositeGrid cg,
const int &  queryForChanges = TRUE 
)
protected

References abs(), DialogData::addInfoLabel(), GenericGraphicsInterface::appendToTheDefaultPrompt(), assert, aString, buff, GUIState::buildPopup(), cutMapInfo, debug, displayMask(), GenericGraphicsInterface::erase(), fabs(), GraphicsParameters::get(), GenericGraphicsInterface::getAnswer(), GenericGraphicsInterface::getColourName(), ListOfMappingRC::getLength(), GenericGraphicsInterface::getLineWidthScaleFactor(), ParallelUtility::getMaxValue(), GenericGraphicsInterface::getMenuItem(), ParallelUtility::getSum(), DialogData::getTextValue(), DialogData::getToggleValue(), GI_COLOUR_INTERPOLATION_POINTS, GI_PLOT_BLOCK_BOUNDARIES, GI_PLOT_GRID_LINES, GI_PLOT_INTERPOLATION_POINTS, GI_PLOT_SHADED_SURFACE_GRIDS, GI_PLOT_THE_OBJECT_AND_EXIT, GI_POINT_COLOUR, GI_POINT_SIZE, GI_TOP_LABEL, GI_USE_PLOT_BOUNDS, holeCutters, holePoint, ia, incrementalHoleSweep, info, GenericGraphicsInterface::inputString(), MappingInformation::mappingList, mask, max(), myid, NULL, Overture::nullRealArray(), GenericGridCollection::numberOfBaseGrids(), GenericGraphicsInterface::numberOfColourNames, GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), numberOfHolePoints, numberOfOrphanPoints, orphanPoint, PlotIt::plot(), plotExplicitHoleCutters, plotHolePoints, plotOrphanPoints, GenericGraphicsInterface::plotPoints(), plotTitles, points(), pointSize, GenericGraphicsInterface::popGUI(), printF(), printOrphanPoints(), ps, psp, GenericGraphicsInterface::pushGUI(), queryAPoint(), R, resetTheGrid, saveGridToAFile(), GraphicsParameters::set(), DialogData::setExitCommand(), DialogData::setPushButtons(), DialogData::setTextBoxes(), DialogData::setToggleButtons(), DialogData::setWindowTitle(), sPrintF(), sScanF(), GenericGraphicsInterface::stopReadingCommandFile(), GenericGraphicsInterface::unAppendTheDefaultPrompt(), and GridCollection::USESbackupRules.

Referenced by changeParameters(), classifyPoints(), computeOverlap(), movingUpdate(), movingUpdateNew(), and queryAPoint().

int Ogen::preInterpolateGrids ( CompositeGrid cg)
protected
int Ogen::printOrphanPoints ( CompositeGrid cg)
int Ogen::projectToBoundary ( CompositeGrid cg,
const int &  grid,
const realArray r,
const int  iv[3],
const int  ivp[3],
real  rv[3] 
)
protected
int Ogen::projectToParameterBoundary ( const real  rv0[3],
const real  rv1[3],
real  rv[3],
const int  numberOfDimensions,
const int  grid 
)
protected

References End, fabs(), min(), rBound, REAL_EPSILON, s, and Start.

Referenced by getHoleWidth().

int Ogen::queryAPoint ( CompositeGrid cg)
protected

References Overture::abort(), DialogData::addRadioBox(), GenericGraphicsInterface::appendToTheDefaultPrompt(), Mapping::approximateGlobalInverse, assert, aString, buff, c, MappedGrid::center(), center, debug, Mapping::debug, dim, MappedGrid::dimension(), MappedGrid::discretizationWidth(), GenericGraphicsInterface::erase(), fabs(), findClosestBoundaryPoint(), ApproximateGlobalInverse::findNearestGridPoint(), generateInterpolationArrays(), GraphicsParameters::get(), GenericGraphicsInterface::getAnswer(), GenericGraphicsInterface::getLineWidthScaleFactor(), MappingRC::getMapping(), MappedGrid::getName(), DialogData::getRadioBox(), GI_PLOT_THE_OBJECT_AND_EXIT, GI_POINT_COLOUR, GI_POINT_SIZE, MappedGrid::gridIndexRange(), MappedGrid::gridSpacing(), i2, interpolateAPoint(), Mapping::inverseMap(), Mapping::inverseMapS(), MappedGrid::mapping(), mask, MappedGrid::mask(), myid, SelectionInfo::nSelect, NULL, GenericGridCollection::numberOfBaseGrids(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), MappedGrid::numberOfDimensions(), numberOfOrphanPoints, orphanPoint, OV_GET_SERIAL_ARRAY_CONST, PlotIt::plot(), plot(), GenericGraphicsInterface::plotPoints(), pointSize, GenericGraphicsInterface::popGUI(), printF(), printOrphanPoints(), ps, psp, GenericGraphicsInterface::pushGUI(), r, R, SelectionInfo::selection, GraphicsParameters::set(), RadioBox::setCurrentChoice(), DialogData::setExitCommand(), DialogData::setPushButtons(), DialogData::setTextBoxes(), DialogData::setTextLabel(), DialogData::setToggleButtons(), DialogData::setToggleState(), DialogData::setWindowTitle(), sPrintF(), sScanF(), GenericGraphicsInterface::stopReadingCommandFile(), MappedGrid::THEcenter, MappedGrid::THEmask, MappedGrid::THEvertex, GenericGraphicsInterface::unAppendTheDefaultPrompt(), MappedGrid::update(), MappedGrid::vertex(), SelectionInfo::x, and x.

Referenced by plot().

int Ogen::removeExteriorPoints ( CompositeGrid cg,
const bool  boundariesHaveCutHoles = FALSE 
)
protected
int Ogen::removeExteriorPointsNew ( CompositeGrid cg,
const bool  boundariesHaveCutHoles = FALSE 
)
protected
int Ogen::resetGrid ( CompositeGrid cg)
int Ogen::saveGridToAFile ( CompositeGrid cg,
aString gridFileName,
aString gridName 
)
static
void Ogen::set ( const OgenParameterEnum  option,
const bool  value 
)
void Ogen::set ( const OgenParameterEnum  option,
const int  value 
)
void Ogen::set ( const OgenParameterEnum  option,
const real  value 
)
int Ogen::setGridParameters ( CompositeGrid cg)
protected
int Ogen::setRefinementMaskFace ( intSerialArray &  mask,
int  side,
int  axis,
int  numberOfDimensions,
int  rf[3],
Index &  I1r,
Index &  I2r,
Index &  I3r,
const intSerialArray &  mask00,
const intSerialArray &  mask10,
const intSerialArray &  mask01,
const intSerialArray &  mask11 
)
protected

References assert.

Referenced by markOffAxisRefinementMask().

bool Ogen::sidesShareBoundary ( CompositeGrid cg,
int  grid1,
int  side1,
int  dir1,
int  grid2,
int  side2,
int  dir2 
) const
inlineprotected

return true if grid1 face=(side1,dir1) shares a boundary with grid2 face=(side2,dir2)

References manualSharedBoundary, and numberOfManualSharedBoundaries.

int Ogen::sweepOutHolePoints ( CompositeGrid cg)
protected
void Ogen::turnOffHybridHoleCutting ( )
inline

References classifyHolesForHybrid, and FALSE.

void Ogen::turnOnHybridHoleCutting ( )
inline

References classifyHolesForHybrid, and TRUE.

Referenced by ogen().

int Ogen::unmarkBoundaryInterpolationPoints ( CompositeGrid cg,
const int &  grid 
)
protected
int Ogen::unmarkInterpolationPoints ( CompositeGrid cg,
const bool &  unMarkAll = FALSE 
)
protected
int Ogen::updateBoundaryAdjustment ( CompositeGrid cg,
const int &  grid,
const int &  grid2,
intSerialArray *  iag,
realSerialArray rg,
realSerialArray xg,
IntegerArray sidesShare 
)
protected

References Overture::abort(), abs(), adjustBoundary(), assert, axis1, axis2, axis3, GenericGridCollection::baseGridNumber, BoundaryAdjustment::boundaryAdjustment(), CompositeGridData::boundaryAdjustment, boundaryEps, MappedGrid::boundingBox(), boundingBox, checkBoundaryAdjustment(), checkForBoundaryAdjustments(), Overture::checkMemoryUsage(), BoundaryAdjustment::computedGeometry, GenericGridCollectionData::computedGeometry, debug, delta, BoundaryAdjustment::destroy(), determineBoundaryPointsToAdjust(), dim, MappedGrid::dimension(), BoundaryAdjustment::doNotShare, End, fabs(), FALSE, FOR_3D, GET_LOCAL_CONST, getAdjustmentVectors(), TrivialArray< Type, Dim >::getBase(), TrivialArray< Type, Dim >::getBound(), getBoundaryIndex(), ParallelUtility::getLocalArrayBounds(), getLocalArrayWithGhostBoundaries(), MappingRC::getMapping(), MappedGrid::getName(), TrivialArray< Type, Dim >::getNumberOfElements(), MappedGrid::getRectangularGridParameters(), MappedGrid::gridIndexRange(), BoundaryAdjustment::hasSharedSides(), i2, ia, info, Mapping::inverseMapC(), Mapping::inverseMapCS(), MappedGrid::isAllCellCentered(), MappedGrid::isAllVertexCentered(), isNew, MappedGrid::isRectangular(), manualSharedBoundary, MappedGrid::mapping(), MappedGrid::mask(), mask1, max(), Overture::nullIntArray(), Overture::nullRealArray(), GenericGridCollection::numberOfBaseGrids(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), MappedGrid::numberOfDimensions(), numberOfManualSharedBoundaries, plogFile, printF(), r, R, CompositeGrid::rcData, TrivialArray< Type, Dim >::redim(), BoundaryAdjustment::share, BoundaryAdjustment::shareButNoAdjustmentNeeded, BoundaryAdjustment::sidesShare(), sPrintF(), Start, THEinverseMap, THEmask, useBoundaryAdjustment, MappedGrid::vertex(), MappedGrid::vertexBoundaryNormal(), MappedGrid::vertexBoundaryNormalArray(), BoundaryAdjustment::wasCreated(), and XV1.

Referenced by checkInterpolationOnBoundaries(), movingUpdate(), and movingUpdateNew().

int Ogen::updateCanInterpolate ( CompositeGrid cg,
CompositeGrid cg0,
RealArray removedPointBound 
)
protected
int Ogen::updateGeometry ( CompositeGrid cg,
CompositeGrid cgOld,
const bool &  movingGrids = FALSE,
const IntegerArray hasMoved = Overture::nullIntArray() 
)
protected
int Ogen::updateOverlap ( CompositeGrid cg,
MappingInformation mapInfo 
)
int Ogen::updateOverlap ( CompositeGrid cg)

References assert, aString, GenericGridCollection::baseGridNumber, GraphicsParameters::colourByGrid, GenericGridCollection::componentGridNumber, GenericGridCollectionData::computedGeometry, GenericGridCollection::COMPUTEnothing, computeOverlap(), debug, determineMinimalIndexRange(), FALSE, geometryNeedsUpdating, getCPU(), GenericGraphicsInterface::getMenuItem(), GI_BOUNDARY_COLOUR_OPTION, GI_COLOUR_INTERPOLATION_POINTS, GI_PLOT_BLOCK_BOUNDARIES, GI_PLOT_LINES_ON_GRID_BOUNDARIES, GI_PLOT_SHADED_SURFACE_GRIDS, GI_PLOT_THE_OBJECT_AND_EXIT, GenericGridCollection::gridNumber, info, CompositeGrid::interpolationCoordinates, CompositeGrid::interpolationPoint, CompositeGrid::interpoleeGrid, CompositeGrid::interpoleeLocation, isNew, maskRatio, CompositeGrid::multigridLevel, NULL, GenericGridCollection::numberOfBaseGrids(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), numberOfGridsHasChanged, numberOfHolePoints, CompositeGrid::numberOfInterpolationPoints, GenericGridCollection::numberOfMultigridLevels(), numberOfOrphanPoints, pow(), ps, psp, resetGrid(), resetTheGrid, GraphicsParameters::set(), setGridParameters(), GenericGraphicsInterface::stopReadingCommandFile(), CompositeGrid::THEinterpolationCoordinates, CompositeGrid::THEinterpolationPoint, CompositeGrid::THEinterpoleeGrid, CompositeGrid::THEinterpoleeLocation, GridCollection::THEmask, GenericGridCollection::THEmultigridLevel, timeUpdateGeometry, totalTime, TRUE, CompositeGrid::update(), updateGeometry(), and CompositeGrid::variableInterpolationWidth.

int Ogen::updateOverlap ( CompositeGrid cg,
CompositeGrid cgNew,
const LogicalArray hasMoved,
const MovingGridOption option = useOptimalAlgorithm 
)

References abs(), assert, GenericGridCollection::baseGridNumber, boundingBox, intMappedGridFunction::breakReference(), buildBounds(), GenericGridData::computedGeometry, GenericGridCollectionData::computedGeometry, computeGeometryForMovingGrids, GenericGridCollection::COMPUTEnothing, computeOverlap(), debug, End, MappedGrid::extendedIndexRange(), FALSE, GenericGrid::geometryHasChanged(), GET_NUMBER_OF_ARRAYS, getCPU(), GI_PLOT_THE_OBJECT_AND_EXIT, MappedGrid::gridIndexRange(), gridScale, MappedGrid::indexRange(), info, CompositeGrid::inverseCoordinates, CompositeGrid::inverseGrid, MappedGrid::ISdiscretizationPoint, isMovingGridProblem, MappedGrid::isRectangular(), MappedGridData::mask, MappedGrid::mask(), max(), movingUpdate(), NULL, numberOfArrays, GenericGridCollection::numberOfBaseGrids(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), numberOfGridsHasChanged, numberOfHolePoints, CompositeGrid::numberOfInterpolationPoints, numberOfOrphanPoints, printF(), psp, MappedGrid::rcData, GenericGridCollection::refinementLevelNumber, GraphicsParameters::set(), Start, MappedGrid::THEboundingBox, MappedGrid::THEcenter, CompositeGrid::THEinverseMap, GridCollection::THEmask, MappedGrid::THEmask, GenericGridCollection::THErefinementLevel, MappedGrid::THEvertex, MappedGrid::THEvertexBoundaryNormal, timeUpdateGeometry, totalTime, TRUE, CompositeGrid::update(), MappedGrid::update(), MappedGrid::updateReferences(), useNewMovingUpdate, useOptimalAlgorithm, and warnForSharedSides.

int Ogen::updateParameters ( CompositeGrid cg,
const int  level = -1,
const RealArray minimumOverlap = Overture::nullRealArray() 
)
int Ogen::updateRefinement ( CompositeGrid cg,
const int &  refinementLevel = -1 
)

References Overture::abort(), abs(), assert, axis1, axis2, axis3, GenericGridCollection::baseGridNumber, MappedGrid::boundaryCondition(), buff, CompositeGridData::canInterpolate(), canInterpolate(), checkForOneSided, checkRefinementInterpolation(), GenericGridData::computedGeometry, GenericGridCollectionData::computedGeometry, GenericGridCollection::COMPUTEnothing, debug, MappedGrid::dimension(), MappedGrid::discretizationWidth(), display(), displayMask(), dx, End, evaluate(), MappedGrid::extendedIndexRange(), FALSE, floorDiv(), fmod(), FOR_3BR, FOR_3D, FOR_3S, fPrintF(), Mapping::functionPeriodic, getBoundaryIndex(), getCPU(), getIndex(), MappedGrid::getRectangularGridParameters(), GIR, MappedGrid::gridIndexRange(), GenericGridCollection::gridNumber, MappedGrid::gridSpacing(), i2, ig, il, indexRange, MappedGrid::indexRange(), CompositeGrid::interpolationCoordinates, interpolationCoordinates, CompositeGrid::interpolationOverlap, CompositeGrid::interpolationPoint, interpolationPointBaseGrid, CompositeGrid::interpolationStartEndIndex, CompositeGrid::interpolationWidth, interpoleeBaseGrid, CompositeGrid::interpoleeGrid, interpoleeGrid, CompositeGrid::interpoleeLocation, interpoleeLocation, ip, IP, IPBG, MappedGrid::isAllCellCentered(), MappedGrid::isCellCentered(), MappedGrid::ISdiscretizationPoint, MappedGrid::ISghostPoint, MappedGrid::ISinterpolationPoint, isPeriodic, MappedGrid::isPeriodic(), MappedGrid::isRectangular(), l3, CompositeGridData::localInterpolationDataForAll, CompositeGridData::localInterpolationDataForAMR, CompositeGridData::localInterpolationDataState, logFile, markOffAxisRefinementMask(), mask, MASK, MappedGrid::mask(), MASKB, MASKR, max(), min(), GenericGridCollection::numberOfBaseGrids(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), MappedGrid::numberOfGhostPoints(), CompositeGrid::numberOfInterpolationPoints, numberOfPossibleInterpoleeBaseGrids, GenericGridCollection::numberOfRefinementLevels(), outputRefinementInfo(), intMappedGridFunction::periodicUpdate(), plogFile, r, R, CompositeGrid::rcData, GridCollection::refinementFactor, GridCollection::refinementLevel, GridCollection::setMaskAtRefinements(), sPrintF(), Start, MappedGrid::THEcenter, CompositeGrid::THEinterpolationCoordinates, CompositeGrid::THEinterpolationPoint, CompositeGrid::THEinterpoleeGrid, CompositeGrid::THEinterpoleeLocation, GridCollection::THEmask, MappedGrid::THEmask, MappedGrid::THEvertex, totalTime, TRUE, CompositeGrid::update(), updateParameters(), updateRefinementNewer(), CompositeGrid::variableInterpolationWidth, variableInterpolationWidth, MappedGrid::vertex(), VERTEX0, VERTEX1, and VERTEX2.

Referenced by main().

int Ogen::updateRefinementFillInterpolationData ( CompositeGrid cg,
UpdateRefinementData urd 
)

References Overture::abort(), assert, axis3, B, IndexBox::base(), GenericGridCollection::baseGridNumber, IndexBox::bound(), MappedGrid::boundaryCondition(), buff, canInterpolate(), CanInterpolate::cgCanInterpolate(), checkForOneSided, Overture::checkMemoryUsage(), ciLocal, computeInterpolationStencil(), CopyArray::copyCoarseToFine(), debug, display(), displayMask(), dx, End, MappedGrid::extendedIndexRange(), FALSE, floorDiv(), fmod(), fPrintF(), Mapping::functionPeriodic, getCPU(), getIndex(), getLocalArrayWithGhostBoundaries(), ParallelUtility::getMaxValues(), MappedGrid::getRectangularGridParameters(), GIR, MappedGrid::gridIndexRange(), GenericGridCollection::gridNumber, MappedGrid::gridSpacing(), i2, ia, ig, il, ilLocal, indexRange, MappedGrid::indexRange(), interpCoords, CompositeGrid::interpolationCoordinates, interpolationCoordinates, CompositeGridData::interpolationCoordinatesLocal, CompositeGrid::interpolationOverlap, CompositeGrid::interpolationPoint, interpolationPointBaseGrid, CompositeGridData::interpolationPointLocal, CompositeGrid::interpolationStartEndIndex, CompositeGrid::interpolationWidth, interpoleeBaseGrid, CompositeGrid::interpoleeGrid, interpoleeGrid, CompositeGridData::interpoleeGridLocal, interpoleeLocation, CompositeGridData::interpoleeLocationLocal, IndexBox::intersect(), ip, IP, IPBG, MappedGrid::isCellCentered(), IndexBox::isEmpty(), MappedGrid::ISinterpolationPoint, isPeriodic, MappedGrid::isPeriodic(), MappedGrid::isRectangular(), l3, logFile, mask, MappedGrid::mask(), MASKB, max(), min(), myid, Overture::nullRealArray(), GenericGridCollection::numberOfBaseGrids(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), CompositeGrid::numberOfInterpolationPoints, CompositeGridData::numberOfInterpolationPointsLocal, numberOfPossibleInterpoleeBaseGrids, GenericGridCollection::numberOfRefinementLevels(), outputRefinementInfoNew(), plogFile, pow(), printF(), IndexBox::processor, ParallelUtility::redistribute(), GridCollection::refinementFactor, GridCollection::refinementLevel, IndexBox::setBounds(), sPrintF(), Start, UpdateRefinementData::timeForCopyInterpPoints, UpdateRefinementData::timeForInterpData, variableInterpolationWidth, CompositeGridData::variableInterpolationWidthLocal, MappedGrid::vertex(), VERTEX0, VERTEX1, and VERTEX2.

Referenced by updateRefinementNewer().

int Ogen::updateRefinementFillInterpolationDataNew ( CompositeGrid cg,
UpdateRefinementData urd 
)

References Overture::abort(), assert, axis3, B, GenericGridCollection::baseGridNumber, MappedGrid::boundaryCondition(), buff, CanInterpolate::canInterpolate(), canInterpolate(), checkForOneSided, ciLocal, CopyArray::copyCoarseToFine(), debug, display(), displayMask(), CanInterpolate::CanInterpolateQueryData::donor, dx, End, MappedGrid::extendedIndexRange(), FALSE, floorDiv(), fmod(), fPrintF(), Mapping::functionPeriodic, getCPU(), getIndex(), getLocalArrayWithGhostBoundaries(), ParallelUtility::getMaxValue(), MappedGrid::getRectangularGridParameters(), GIR, CanInterpolate::CanInterpolateQueryData::grid, MappedGrid::gridIndexRange(), GenericGridCollection::gridNumber, MappedGrid::gridSpacing(), CanInterpolate::CanInterpolateQueryData::i, i2, CanInterpolate::CanInterpolateQueryData::id, ig, CanInterpolate::CanInterpolateResultData::il, il, indexRange, MappedGrid::indexRange(), interpCoords, CompositeGrid::interpolationCoordinates, interpolationCoordinates, CompositeGridData::interpolationCoordinatesLocal, CompositeGrid::interpolationIsImplicit, CompositeGrid::interpolationPoint, interpolationPointBaseGrid, CompositeGridData::interpolationPointLocal, CompositeGrid::interpolationStartEndIndex, CompositeGrid::interpolationWidth, interpoleeBaseGrid, CompositeGrid::interpoleeGrid, interpoleeGrid, CompositeGridData::interpoleeGridLocal, interpoleeLocation, CompositeGridData::interpoleeLocationLocal, ip, IP, IPBG, ir, MappedGrid::isCellCentered(), MappedGrid::ISinterpolationPoint, isPeriodic, MappedGrid::isPeriodic(), MappedGrid::isRectangular(), l3, logFile, MappedGrid::mask(), MASKB, max(), min(), myid, NULL, Overture::nullRealArray(), GenericGridCollection::numberOfBaseGrids(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), CompositeGridData::numberOfInterpolationPointsLocal, numberOfPossibleInterpoleeBaseGrids, GenericGridCollection::numberOfRefinementLevels(), outputRefinementInfoNew(), OV_ABORT, plogFile, printF(), ParallelUtility::redistribute(), GridCollection::refinementFactor, GridCollection::refinementLevel, GenericGridCollection::refinementLevelNumber, CanInterpolate::CanInterpolateQueryData::rv, sPrintF(), Start, UpdateRefinementData::timeForCopyInterpPoints, UpdateRefinementData::timeForInterpData, CanInterpolate::transferInterpDataForAMR(), variableInterpolationWidth, CompositeGridData::variableInterpolationWidthLocal, MappedGrid::vertex(), VERTEX0, VERTEX1, VERTEX2, and CanInterpolate::CanInterpolateResultData::width.

Referenced by updateRefinementNewer().

int Ogen::updateRefinementNew ( CompositeGrid cg,
const int &  refinementLevel = -1 
)

References Overture::abort(), abs(), ListOfFloatSerialArray::addElement(), ListOfIntSerialArray::addElement(), assert, axis1, axis2, axis3, B, GenericGridCollection::baseGridNumber, MappedGrid::boundaryCondition(), buff, canInterpolate(), CanInterpolate::cgCanInterpolate(), checkForOneSided, checkRefinementInterpolation(), GenericGridCollectionData::computedGeometry, GenericGridCollection::COMPUTEnothing, CopyArray::copyCoarseToFine(), debug, ListOfIntSerialArray::deleteElement(), ListOfFloatSerialArray::deleteElement(), MappedGrid::dimension(), MappedGrid::discretizationWidth(), display(), displayMask(), dx, End, MappedGrid::extendedIndexRange(), FALSE, floorDiv(), fmod(), FOR_3BR, FOR_3D, FOR_3IJD, FOR_3S, Mapping::functionPeriodic, CopyArray::getAggregateArray(), getBoundaryIndex(), getCPU(), getIndex(), ListOfFloatSerialArray::getLength(), ListOfIntSerialArray::getLength(), ParallelUtility::getLocalArrayBounds(), getLocalArrayWithGhostBoundaries(), ParallelUtility::getMaxValue(), MappedGrid::getRectangularGridParameters(), GIR, MappedGrid::gridIndexRange(), GenericGridCollection::gridNumber, MappedGrid::gridSpacing(), i2, ig, il, indexRange, MappedGrid::indexRange(), interpCoords, CompositeGrid::interpolationCoordinates, interpolationCoordinates, CompositeGridData::interpolationCoordinatesLocal, CompositeGrid::interpolationOverlap, CompositeGrid::interpolationPoint, interpolationPointBaseGrid, CompositeGridData::interpolationPointLocal, CompositeGrid::interpolationStartEndIndex, CompositeGrid::interpolationWidth, interpoleeBaseGrid, CompositeGrid::interpoleeGrid, interpoleeGrid, CompositeGridData::interpoleeGridLocal, interpoleeLocation, CompositeGridData::interpoleeLocationLocal, ip, IP, IPBG, MappedGrid::isCellCentered(), MappedGrid::ISdiscretizationPoint, MappedGrid::ISghostPoint, MappedGrid::ISinterpolationPoint, isPeriodic, MappedGrid::isPeriodic(), MappedGrid::isRectangular(), l3, logFile, markOffAxisRefinementMask(), mask, MASK, MappedGrid::mask(), MASKB, MASKR, max(), min(), myid, NULL, Overture::nullRealArray(), GenericGridCollection::numberOfBaseGrids(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), MappedGrid::numberOfGhostPoints(), GenericGridCollection::numberOfGrids(), CompositeGrid::numberOfInterpolationPoints, CompositeGridData::numberOfInterpolationPointsLocal, numberOfPossibleInterpoleeBaseGrids, GenericGridCollection::numberOfRefinementLevels(), outputRefinementInfoNew(), plogFile, r, R, redistribute(), GridCollection::refinementFactor, GridCollection::refinementLevel, GridCollection::setMaskAtRefinements(), sPrintF(), Start, MappedGrid::THEcenter, CompositeGrid::THEinterpolationCoordinates, CompositeGrid::THEinterpolationPoint, CompositeGrid::THEinterpoleeGrid, CompositeGrid::THEinterpoleeLocation, GridCollection::THEmask, MappedGrid::THEmask, MappedGrid::THEvertex, totalTime, TRUE, CompositeGrid::update(), updateParameters(), variableInterpolationWidth, CompositeGridData::variableInterpolationWidthLocal, MappedGrid::vertex(), VERTEX0, VERTEX1, and VERTEX2.

int Ogen::updateRefinementNewer ( CompositeGrid cg,
const int &  refinementLevel = -1 
)

References Overture::abort(), abs(), ListOfIntSerialArray::addElement(), ListOfFloatSerialArray::addElement(), assert, axis1, axis2, axis3, GenericGridCollection::baseGridNumber, buff, checkForOneSided, Overture::checkMemoryUsage(), checkRefinementInterpolation(), GenericGridCollectionData::computedGeometry, GenericGridCollection::COMPUTEnothing, CopyArray::copyCoarseToFine(), debug, ListOfIntSerialArray::deleteElement(), ListOfFloatSerialArray::deleteElement(), MappedGrid::dimension(), MappedGrid::discretizationWidth(), displayMask(), End, MappedGrid::extendedIndexRange(), FALSE, floorDiv(), FOR_3BR, FOR_3D, FOR_3IJD, FOR_3S, fPrintF(), CopyArray::getAggregateArray(), getBoundaryIndex(), getCPU(), getIndex(), ListOfIntSerialArray::getLength(), ListOfFloatSerialArray::getLength(), ParallelUtility::getLocalArrayBounds(), getLocalArrayWithGhostBoundaries(), ParallelUtility::getMaxValue(), MappedGrid::gridIndexRange(), GenericGridCollection::gridNumber, i2, MappedGrid::indexRange(), CompositeGridData::interpolationCoordinatesLocal, CompositeGridData::interpolationPointLocal, CompositeGridData::interpoleeGridLocal, CompositeGridData::interpoleeLocationLocal, ip, IP, MappedGrid::ISdiscretizationPoint, MappedGrid::ISghostPoint, MappedGrid::ISinterpolationPoint, l3, logFile, markOffAxisRefinementMask(), mask, MASK, MappedGrid::mask(), MASKB, MASKR, max(), min(), myid, NULL, GenericGridCollection::numberOfBaseGrids(), GenericGridCollection::numberOfComponentGrids(), GridCollection::numberOfDimensions(), MappedGrid::numberOfGhostPoints(), GenericGridCollection::numberOfGrids(), CompositeGrid::numberOfInterpolationPoints, CompositeGridData::numberOfInterpolationPointsLocal, GenericGridCollection::numberOfRefinementLevels(), outputRefinementInfoNew(), plogFile, r, R, GridCollection::refinementFactor, GridCollection::refinementLevel, GridCollection::setMaskAtRefinements(), sPrintF(), Start, MappedGrid::THEcenter, CompositeGrid::THEinterpolationCoordinates, CompositeGrid::THEinterpolationPoint, CompositeGrid::THEinterpoleeGrid, CompositeGrid::THEinterpoleeLocation, GridCollection::THEmask, MappedGrid::THEmask, MappedGrid::THEvertex, UpdateRefinementData::timeForCopyInterpPoints, UpdateRefinementData::timeForInterpData, totalTime, TRUE, CompositeGrid::update(), updateParameters(), updateRefinementFillInterpolationData(), updateRefinementFillInterpolationDataNew(), and CompositeGridData::variableInterpolationWidthLocal.

Referenced by updateRefinement().

Member Data Documentation

bool Ogen::abortOnAlgorithmFailure
protected

Referenced by computeOverlap(), initialize(), and set().

bool Ogen::allowBackupRules
protected
bool Ogen::allowHangingInterpolation
protected
intSerialArray* Ogen::backupValues
protected
IntegerArray Ogen::backupValuesUsed
protected
real Ogen::boundaryEps
protected
char Ogen::buff[200]
protected
FILE* Ogen::checkFile
protected

Referenced by computeOverlap(), initialize(), and ~Ogen().

bool Ogen::checkForOneSided
protected
bool Ogen::classifyHolesForHybrid
protected
int Ogen::computeGeometryForMovingGrids
protected
MappingInformation Ogen::cutMapInfo
protected

Referenced by plot().

int Ogen::debug
int Ogen::defaultInterpolationIsImplicit

Referenced by buildACompositeGrid(), and initialize().

int Ogen::defaultNumberOfGhostPoints

Referenced by buildACompositeGrid(), and initialize().

bool Ogen::doubleCheckInterpolation

Referenced by computeOverlap(), and initialize().

IntegerArray Ogen::geometryNeedsUpdating
protected
RealArray Ogen::gridScale
protected
ListOfMappingRC* Ogen::holeCutters
protected
int Ogen::holeCuttingOption
protected
RealArray Ogen::holePoint
protected
bool Ogen::improveQualityOfInterpolation
protected
int Ogen::incrementalHoleSweep
protected
int Ogen::info
int Ogen::isMovingGridProblem
IntegerArray Ogen::isNew
protected
bool Ogen::loadBalanceGrids
FILE* Ogen::logFile
protected
bool Ogen::makeAdjustmentsForNearbyBoundaries
protected

Referenced by classifyPoints(), and initialize().

IntegerArray Ogen::manualHole
protected
RealArray Ogen::manualHoleValue
protected
IntegerArray Ogen::manualSharedBoundary
protected
RealArray Ogen::manualSharedBoundaryValue
protected

Referenced by changeParameters().

int Ogen::maskRatio[3]
protected
real Ogen::maximumAngleDifferenceForNormalsOnSharedBoundaries
protected
int Ogen::maximumNumberOfPointsToInvertAtOneTime
protected
bool Ogen::minimizeTheOverlap
protected
IntegerArray Ogen::mixedBoundary
protected
RealArray Ogen::mixedBoundaryValue
protected
int Ogen::myid
IntegerArray Ogen::nonCuttingBoundaryPoints
protected
int Ogen::numberOfArrays
protected

Referenced by initialize(), and updateOverlap().

bool Ogen::numberOfGridsHasChanged
protected

Referenced by updateGeometry(), and updateOverlap().

int Ogen::numberOfHolePoints
protected
int Ogen::numberOfManualHoles
protected
int Ogen::numberOfManualSharedBoundaries
protected
int Ogen::numberOfMixedBoundaries
protected
int Ogen::numberOfNonCuttingBoundaries
protected
int Ogen::numberOfOrphanPoints
protected
int Ogen::numberOfSharedBoundaryTolerances
protected

Referenced by changeParameters(), and initialize().

RealArray Ogen::orphanPoint
protected
bool Ogen::outputGridOnFailure
protected

Referenced by computeOverlap(), initialize(), and set().

FILE * Ogen::plogFile
protected
bool Ogen::plotExplicitHoleCutters
protected

Referenced by initialize(), and plot().

IntegerArray Ogen::plotHolePoints
protected

Referenced by computeOverlap(), and plot().

IntegerArray Ogen::plotOrphanPoints
protected
bool Ogen::plotTitles
protected

Referenced by initialize(), and plot().

IntegerArray Ogen::preInterpolate
protected
GenericGraphicsInterface* Ogen::ps
protected
GraphicsParameters Ogen::psp
protected
real Ogen::qualityBound
protected
RealArray Ogen::rBound
protected
IntegerArray Ogen::sharedBoundaryTolerances
protected

Referenced by changeParameters().

RealArray Ogen::sharedBoundaryTolerancesValue
protected

Referenced by changeParameters().

real Ogen::timeAllInterpolation
protected
real Ogen::timeCheckHoleCutting
protected
real Ogen::timeCutHoles
protected
real Ogen::timeFindTrueBoundary
protected

Referenced by findTrueBoundary(), and initialize().

real Ogen::timeImproperInterpolation
protected
real Ogen::timeImproveQuality
protected
real Ogen::timeInterpolateBoundaries
protected
real Ogen::timePreInterpolate
protected
real Ogen::timeProperInterpolation
protected
real Ogen::timeRemoveExteriorPoints
protected
real Ogen::timeRemoveRedundant
protected
real Ogen::timeUpdateGeometry
protected
real Ogen::totalTime
protected
bool Ogen::useAnOldGrid
protected

Referenced by buildACompositeGrid(), and resetGrid().

bool Ogen::useBoundaryAdjustment
protected
bool Ogen::useLocalBoundingBoxes
protected

Referenced by changeParameters(), and initialize().

bool Ogen::useNewMovingUpdate

Referenced by initialize(), and updateOverlap().

IntegerArray Ogen::warnForSharedSides
protected

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