本文整理汇总了C++中deleteDemandDrivenData函数的典型用法代码示例。如果您正苦于以下问题:C++ deleteDemandDrivenData函数的具体用法?C++ deleteDemandDrivenData怎么用?C++ deleteDemandDrivenData使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了deleteDemandDrivenData函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: deleteDemandDrivenData
void Foam::ggiPolyPatch::clearGeom()
{
deleteDemandDrivenData(patchToPatchPtr_);
deleteDemandDrivenData(zoneAddressingPtr_);
deleteDemandDrivenData(reconFaceCellCentresPtr_);
}
示例2: clearTopology
void
Foam::PrimitivePatch<Face, FaceList, PointField, PointType>::
clearTopology()
{
if (debug)
{
Info<< "PrimitivePatch<Face, FaceList, PointField, PointType>::"
<< "clearTopology() : clearing patch addressing"
<< endl;
}
// group created and destroyed together
if (edgesPtr_ && faceFacesPtr_ && edgeFacesPtr_ && faceEdgesPtr_)
{
delete edgesPtr_;
edgesPtr_ = NULL;
delete faceFacesPtr_;
faceFacesPtr_ = NULL;
delete edgeFacesPtr_;
edgeFacesPtr_ = NULL;
delete faceEdgesPtr_;
faceEdgesPtr_ = NULL;
}
deleteDemandDrivenData(boundaryPointsPtr_);
deleteDemandDrivenData(pointEdgesPtr_);
deleteDemandDrivenData(pointFacesPtr_);
deleteDemandDrivenData(edgeLoopsPtr_);
}
示例3: deleteDemandDrivenData
void Foam::sampledSurface::clearGeom() const
{
deleteDemandDrivenData(SfPtr_);
deleteDemandDrivenData(magSfPtr_);
deleteDemandDrivenData(CfPtr_);
area_ = -1;
}
示例4: deleteDemandDrivenData
void Foam::polyPatch::clearAddressing()
{
primitivePatch::clearTopology();
primitivePatch::clearPatchMeshAddr();
deleteDemandDrivenData(faceCellsPtr_);
deleteDemandDrivenData(mePtr_);
}
示例5: deleteDemandDrivenData
DimensionedField<scalar, volMesh>& fvMesh::setV0()
{
// Delete old volume and mesh motion fluxes. setV0() must be followed by
// another mesh motion. HJ, 25/Feb/2009
deleteDemandDrivenData(phiPtr_);
deleteDemandDrivenData(V0Ptr_);
if (debug)
{
InfoIn("DimensionedField<scalar, volMesh>& fvMesh::setV0()")
<< "Setting old cell volumes" << endl;
}
V0Ptr_ = new DimensionedField<scalar, volMesh>
(
IOobject
(
"V0",
time().timeName(),
*this,
IOobject::NO_READ,
IOobject::NO_WRITE
),
V()
);
return *V0Ptr_;
}
示例6: deleteDemandDrivenData
void tetCreatorOctree::clearOut()
{
sortedLeaves_.clear();
deleteDemandDrivenData(subNodeLabelsPtr_);
deleteDemandDrivenData(cubeLabelPtr_);
deleteDemandDrivenData(faceCentreLabelPtr_);
}
示例7: deleteDemandDrivenData
void voronoiMeshExtractor::clearOut()
{
deleteDemandDrivenData(pointEdgesPtr_);
deleteDemandDrivenData(edgesPtr_);
deleteDemandDrivenData(edgeTetsPtr_);
deleteDemandDrivenData(boundaryEdgePtr_);
}
示例8: deleteDemandDrivenData
void Foam::surfaceInterpolation::clearOut()
{
deleteDemandDrivenData(weights_);
deleteDemandDrivenData(deltaCoeffs_);
deleteDemandDrivenData(nonOrthDeltaCoeffs_);
deleteDemandDrivenData(nonOrthCorrectionVectors_);
}
示例9: deleteDemandDrivenData
void Foam::binaryTree<CompType, ThermoType>::deleteLeaf(chP*& phi0)
{
if (size_ == 1) // only one point is stored
{
deleteDemandDrivenData(phi0);
deleteDemandDrivenData(root_);
}
else if (size_ > 1)
{
bn* z = phi0->node();
bn* x;
chP* siblingPhi0 = chemPSibling(phi0);
if (siblingPhi0 != nullptr)// the sibling of phi0 is a chemPoint
{
// z was root (only two chemPoints in the tree)
if (z->parent() == nullptr)
{
root_ = new bn();
root_->leafLeft()=siblingPhi0;
siblingPhi0->node()=root_;
}
else if (z == z->parent()->nodeLeft())
{
z->parent()->leafLeft() = siblingPhi0;
z->parent()->nodeLeft() = nullptr;
siblingPhi0->node() = z->parent();
}
else if (z == z->parent()->nodeRight())
{
z->parent()->leafRight() = siblingPhi0;
z->parent()->nodeRight() = nullptr;
siblingPhi0->node() = z->parent();
}
else
{
FatalErrorInFunction
<< "wrong addressing of the initial leaf"
<< exit(FatalError);
}
}
else
{
x = nodeSibling(phi0);
if (x !=nullptr)
{
transplant(z, x);
}
else
{
FatalErrorInFunction
<< "inconsistent structure of the tree, no leaf and no node"
<< exit(FatalError);
}
}
deleteDemandDrivenData(phi0);
deleteDemandDrivenData(z);
}
size_--;
}
示例10: deleteDemandDrivenData
Foam::extendedLeastSquaresVectors::~extendedLeastSquaresVectors()
{
deleteDemandDrivenData(pVectorsPtr_);
deleteDemandDrivenData(nVectorsPtr_);
deleteDemandDrivenData(additionalCellsPtr_);
deleteDemandDrivenData(additionalVectorsPtr_);
}
示例11: deleteDemandDrivenData
BlockConstraint<Type>::~BlockConstraint()
{
deleteDemandDrivenData(upperCoeffsOwnerPtr_);
deleteDemandDrivenData(upperCoeffsNeighbourPtr_);
deleteDemandDrivenData(lowerCoeffsOwnerPtr_);
deleteDemandDrivenData(lowerCoeffsNeighbourPtr_);
}
示例12: deleteDemandDrivenData
bool Foam::readerDatabase::setRunTime
(
const fileName& rootDir,
const fileName& caseName,
const word& setName
)
{
bool newDatabase = false;
if (runTimePtr_)
{
if
(
(runTimePtr_->caseName() != caseName)
|| (runTimePtr_->rootPath() != rootDir)
|| (setName_ != setName)
)
{
if (debug_)
{
Info<< "Deleting old mesh since deleting old database" << endl;
}
deleteDemandDrivenData(meshPtr_);
if (debug_)
{
Info<< "Deleting old database for " << runTimePtr_->caseName()
<< endl;
}
deleteDemandDrivenData(runTimePtr_);
}
}
setName_ = setName;
if (!runTimePtr_)
{
if (debug_)
{
Info<< "Deleting old mesh since loading new Time" << endl;
}
deleteDemandDrivenData(meshPtr_);
if (debug_)
{
Info<< "Creating database for " << caseName << endl;
}
runTimePtr_ = new Time(Time::controlDictName, rootDir, caseName);
newDatabase = true;
}
return newDatabase;
}
示例13: deleteDemandDrivenData
void Foam::fvMesh::clearGeomNotOldVol()
{
deleteDemandDrivenData(VPtr_);
deleteDemandDrivenData(SfPtr_);
deleteDemandDrivenData(magSfPtr_);
deleteDemandDrivenData(CPtr_);
deleteDemandDrivenData(CfPtr_);
}
示例14: clearGeomNotOldVol
void Foam::fvMesh::clearGeom()
{
clearGeomNotOldVol();
deleteDemandDrivenData(V0Ptr_);
deleteDemandDrivenData(V00Ptr_);
// Mesh motion flux cannot be deleted here because the old-time flux
// needs to be saved.
}
示例15: deleteDemandDrivenData
Foam::lduAddressing::~lduAddressing()
{
deleteDemandDrivenData(losortPtr_);
deleteDemandDrivenData(ownerStartPtr_);
deleteDemandDrivenData(losortStartPtr_);
deleteDemandDrivenData(ownerSortAddrPtr_);
patchSortCells_.clear();
patchSortAddr_.clear();
patchSortStartAddr_.clear();
}