Completed update ...ErrorIn -> ...ErrorInFunction
Avoids the clutter and maintenance effort associated with providing the function signature string.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -125,11 +125,8 @@ void Foam::slidingInterface::coupleInterface(polyTopoChange& ref) const
|
||||
)
|
||||
)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::coupleInterface("
|
||||
"polyTopoChange& ref) const"
|
||||
) << "Point projection addressing not available."
|
||||
FatalErrorInFunction
|
||||
<< "Point projection addressing not available."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
@ -398,11 +395,8 @@ void Foam::slidingInterface::coupleInterface(polyTopoChange& ref) const
|
||||
|
||||
if (!cutPointEdgePairMapPtr_)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::coupleInterface("
|
||||
"polyTopoChange& ref) const"
|
||||
) << "Cut point edge pair map pointer not set."
|
||||
FatalErrorInFunction
|
||||
<< "Cut point edge pair map pointer not set."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
@ -1045,11 +1039,8 @@ void Foam::slidingInterface::coupleInterface(polyTopoChange& ref) const
|
||||
}
|
||||
else
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::coupleInterface("
|
||||
"polyTopoChange& ref) const"
|
||||
) << "Face " << faceI << " in cut faces has neither a master "
|
||||
FatalErrorInFunction
|
||||
<< "Face " << faceI << " in cut faces has neither a master "
|
||||
<< "nor a slave. Error in the cutting algorithm on modify."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -1173,11 +1164,8 @@ void Foam::slidingInterface::coupleInterface(polyTopoChange& ref) const
|
||||
}
|
||||
else
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::coupleInterface("
|
||||
"polyTopoChange& ref) const"
|
||||
) << "Face " << faceI << " in cut faces has neither a master "
|
||||
FatalErrorInFunction
|
||||
<< "Face " << faceI << " in cut faces has neither a master "
|
||||
<< "nor a slave. Error in the cutting algorithm on add."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -1414,12 +1402,8 @@ void Foam::slidingInterface::coupleInterface(polyTopoChange& ref) const
|
||||
|| max(edgePointWeights) > 1
|
||||
)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::"
|
||||
"coupleInterface("
|
||||
"polyTopoChange& ref) const"
|
||||
) << "Error in master stick-out edge "
|
||||
FatalErrorInFunction
|
||||
<< "Error in master stick-out edge "
|
||||
<< "point collection."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -1474,11 +1458,8 @@ void Foam::slidingInterface::coupleInterface(polyTopoChange& ref) const
|
||||
{
|
||||
if (newFaceLabels.size() < 3)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::coupleInterface("
|
||||
"polyTopoChange& ref) const"
|
||||
) << "Face " << curFaceID << " reduced to less than "
|
||||
FatalErrorInFunction
|
||||
<< "Face " << curFaceID << " reduced to less than "
|
||||
<< "3 points. Topological/cutting error A." << nl
|
||||
<< "Old face: " << oldFace << " new face: " << newFaceLabels
|
||||
<< abort(FatalError);
|
||||
@ -1728,12 +1709,8 @@ void Foam::slidingInterface::coupleInterface(polyTopoChange& ref) const
|
||||
|| max(edgePointWeights) > 1
|
||||
)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::"
|
||||
"coupleInterface("
|
||||
"polyTopoChange& ref) const"
|
||||
) << "Error in slave stick-out edge "
|
||||
FatalErrorInFunction
|
||||
<< "Error in slave stick-out edge "
|
||||
<< "point collection."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -1788,11 +1765,8 @@ void Foam::slidingInterface::coupleInterface(polyTopoChange& ref) const
|
||||
{
|
||||
if (newFaceLabels.size() < 3)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::coupleInterface("
|
||||
"polyTopoChange& ref) const"
|
||||
) << "Face " << curFaceID << " reduced to less than "
|
||||
FatalErrorInFunction
|
||||
<< "Face " << curFaceID << " reduced to less than "
|
||||
<< "3 points. Topological/cutting error B." << nl
|
||||
<< "Old face: " << oldFace << " new face: " << newFaceLabels
|
||||
<< abort(FatalError);
|
||||
@ -1866,11 +1840,8 @@ void Foam::slidingInterface::coupleInterface(polyTopoChange& ref) const
|
||||
|
||||
if (!retiredPointMapPtr_)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::coupleInterface("
|
||||
"polyTopoChange& ref) const"
|
||||
) << "Retired point map pointer not set."
|
||||
FatalErrorInFunction
|
||||
<< "Retired point map pointer not set."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -211,11 +211,8 @@ void Foam::slidingInterface::decoupleInterface
|
||||
{
|
||||
if (newFaceLabels.size() < 3)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::decoupleInterface("
|
||||
"polyTopoChange& ref) const"
|
||||
) << "Face " << curFaceID << " reduced to less than "
|
||||
FatalErrorInFunction
|
||||
<< "Face " << curFaceID << " reduced to less than "
|
||||
<< "3 points. Topological/cutting error." << nl
|
||||
<< "Old face: " << oldFace << " new face: " << newFaceLabels
|
||||
<< abort(FatalError);
|
||||
@ -341,11 +338,8 @@ void Foam::slidingInterface::decoupleInterface
|
||||
{
|
||||
if (newFaceLabels.size() < 3)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::decoupleInterface("
|
||||
"polyTopoChange& ref) const"
|
||||
) << "Face " << curFaceID << " reduced to less than "
|
||||
FatalErrorInFunction
|
||||
<< "Face " << curFaceID << " reduced to less than "
|
||||
<< "3 points. Topological/cutting error." << nl
|
||||
<< "Old face: " << oldFace << " new face: " << newFaceLabels
|
||||
<< abort(FatalError);
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -42,7 +42,7 @@ void Foam::enrichedPatch::calcMeshPoints() const
|
||||
{
|
||||
if (meshPointsPtr_)
|
||||
{
|
||||
FatalErrorIn("void enrichedPatch::calcMeshPoints() const")
|
||||
FatalErrorInFunction
|
||||
<< "Mesh points already calculated."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -58,7 +58,7 @@ void Foam::enrichedPatch::calcLocalFaces() const
|
||||
{
|
||||
if (localFacesPtr_)
|
||||
{
|
||||
FatalErrorIn("void enrichedPatch::calcLocalFaces() const")
|
||||
FatalErrorInFunction
|
||||
<< "Local faces already calculated."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -98,7 +98,7 @@ void Foam::enrichedPatch::calcLocalPoints() const
|
||||
{
|
||||
if (localPointsPtr_)
|
||||
{
|
||||
FatalErrorIn("void enrichedPatch::calcLocalPoints() const")
|
||||
FatalErrorInFunction
|
||||
<< "Local points already calculated."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -233,7 +233,7 @@ bool Foam::enrichedPatch::checkSupport() const
|
||||
{
|
||||
if (!pointMap().found(curFace[pointI]))
|
||||
{
|
||||
WarningIn("void enrichedPatch::checkSupport()")
|
||||
WarningInFunction
|
||||
<< "Point " << pointI << " of face " << faceI
|
||||
<< " global point index: " << curFace[pointI]
|
||||
<< " not supported in point map. This is not allowed."
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -51,7 +51,7 @@ void Foam::enrichedPatch::calcCutFaces() const
|
||||
{
|
||||
if (cutFacesPtr_ || cutFaceMasterPtr_ || cutFaceSlavePtr_)
|
||||
{
|
||||
FatalErrorIn("void enrichedPatch::calcCutFaces() const")
|
||||
FatalErrorInFunction
|
||||
<< "Cut faces addressing already calculated."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -256,11 +256,7 @@ void Foam::enrichedPatch::calcCutFaces() const
|
||||
|
||||
if (magNewDir < SMALL)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void enrichedPatch::"
|
||||
"calcCutFaces() const"
|
||||
) << "Zero length edge detected. Probable "
|
||||
FatalErrorInFunction
|
||||
<< "projection error: slave patch probably "
|
||||
<< "does not project onto master. "
|
||||
<< "Please switch on "
|
||||
@ -617,11 +613,8 @@ void Foam::enrichedPatch::calcCutFaces() const
|
||||
[faceI - slavePatch_.size()];
|
||||
}
|
||||
|
||||
FatalErrorIn
|
||||
(
|
||||
"void enrichedPatch::"
|
||||
"calcCutFaces() const"
|
||||
) << "Duplicate point found in cut face. "
|
||||
FatalErrorInFunction
|
||||
<< "Duplicate point found in cut face. "
|
||||
<< "Error in the face cutting "
|
||||
<< "algorithm for global face "
|
||||
<< origFace << " local face "
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -42,15 +42,8 @@ void Foam::enrichedPatch::calcEnrichedFaces
|
||||
{
|
||||
if (enrichedFacesPtr_)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void enrichedPatch::calcEnrichedFaces\n"
|
||||
"(\n"
|
||||
" const labelListList& pointsIntoMasterEdges,\n"
|
||||
" const labelListList& pointsIntoSlaveEdges,\n"
|
||||
" const pointField& projectedSlavePoints\n"
|
||||
")"
|
||||
) << "Enriched faces already calculated."
|
||||
FatalErrorInFunction
|
||||
<< "Enriched faces already calculated."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
@ -155,15 +148,8 @@ void Foam::enrichedPatch::calcEnrichedFaces
|
||||
}
|
||||
else
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void enrichedPatch::calcEnrichedFaces\n"
|
||||
"(\n"
|
||||
" const labelListList& pointsIntoMasterEdges,\n"
|
||||
" const labelListList& pointsIntoSlaveEdges,\n"
|
||||
" const pointField& projectedSlavePoints\n"
|
||||
")"
|
||||
) << "Zero length edge in slave patch for face " << i
|
||||
FatalErrorInFunction
|
||||
<< "Zero length edge in slave patch for face " << i
|
||||
<< ". This is not allowed."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -184,15 +170,7 @@ void Foam::enrichedPatch::calcEnrichedFaces
|
||||
// Check weights: all new points should be on the edge
|
||||
if (min(edgePointWeights) < 0 || max(edgePointWeights) > 1)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void enrichedPatch::calcEnrichedFaces\n"
|
||||
"(\n"
|
||||
" const labelListList& pointsIntoMasterEdges,\n"
|
||||
" const labelListList& pointsIntoSlaveEdges,\n"
|
||||
" const pointField& projectedSlavePoints\n"
|
||||
")"
|
||||
) << "Invalid point edge weights. Some of points are"
|
||||
FatalErrorInFunction
|
||||
<< " not on the edge for edge " << curEdges[i]
|
||||
<< " of face " << faceI << " in slave patch." << nl
|
||||
<< "Min weight: " << min(edgePointWeights)
|
||||
@ -306,15 +284,8 @@ void Foam::enrichedPatch::calcEnrichedFaces
|
||||
}
|
||||
else
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void enrichedPatch::calcEnrichedFaces\n"
|
||||
"(\n"
|
||||
" const labelListList& pointsIntoMasterEdges,\n"
|
||||
" const labelListList& pointsIntoSlaveEdges,\n"
|
||||
" const pointField& projectedSlavePoints\n"
|
||||
")"
|
||||
) << "Zero length edge in master patch for face " << i
|
||||
FatalErrorInFunction
|
||||
<< "Zero length edge in master patch for face " << i
|
||||
<< ". This is not allowed."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -335,15 +306,7 @@ void Foam::enrichedPatch::calcEnrichedFaces
|
||||
// Check weights: all new points should be on the edge
|
||||
if (min(edgePointWeights) < 0 || max(edgePointWeights) > 1)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void enrichedPatch::calcEnrichedFaces\n"
|
||||
"(\n"
|
||||
" const labelListList& pointsIntoMasterEdges,\n"
|
||||
" const labelListList& pointsIntoSlaveEdges,\n"
|
||||
" const pointField& projectedSlavePoints\n"
|
||||
")"
|
||||
) << "Invalid point edge weights. Some of points are"
|
||||
FatalErrorInFunction
|
||||
<< " not on the edge for edge " << curEdges[i]
|
||||
<< " of face " << faceI << " in master patch." << nl
|
||||
<< "Min weight: " << min(edgePointWeights)
|
||||
@ -403,15 +366,8 @@ void Foam::enrichedPatch::calcEnrichedFaces
|
||||
}
|
||||
else
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void enrichedPatch::calcEnrichedFaces\n"
|
||||
"(\n"
|
||||
" const labelListList& pointsIntoMasterEdges,\n"
|
||||
" const labelListList& pointsIntoSlaveEdges,\n"
|
||||
" const pointField& projectedSlavePoints\n"
|
||||
")"
|
||||
) << "Error in enriched patch support"
|
||||
FatalErrorInFunction
|
||||
<< "Error in enriched patch support"
|
||||
<< abort(FatalError);
|
||||
}
|
||||
}
|
||||
@ -424,8 +380,7 @@ const Foam::faceList& Foam::enrichedPatch::enrichedFaces() const
|
||||
{
|
||||
if (!enrichedFacesPtr_)
|
||||
{
|
||||
FatalErrorIn("const faceList& enrichedPatch::enrichedFaces() const")
|
||||
<< "Enriched faces not available yet. Please use "
|
||||
FatalErrorInFunction
|
||||
<< "void enrichedPatch::calcEnrichedFaces\n"
|
||||
<< "(\n"
|
||||
<< " const labelListList& pointsIntoMasterEdges,\n"
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -38,7 +38,7 @@ void Foam::enrichedPatch::calcMasterPointFaces() const
|
||||
{
|
||||
if (masterPointFacesPtr_)
|
||||
{
|
||||
FatalErrorIn("void enrichedPatch::calcMasterPointFaces() const")
|
||||
FatalErrorInFunction
|
||||
<< "Master point face addressing already calculated."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -31,7 +31,7 @@ void Foam::enrichedPatch::completePointMap() const
|
||||
{
|
||||
if (pointMapComplete_)
|
||||
{
|
||||
FatalErrorIn("void enrichedPatch::completePointMap() const")
|
||||
FatalErrorInFunction
|
||||
<< "Point map already completed"
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
@ -37,7 +37,7 @@ void Foam::enrichedPatch::calcPointPoints() const
|
||||
// Calculate point-point addressing
|
||||
if (pointPointsPtr_)
|
||||
{
|
||||
FatalErrorIn("void enrichedPatch::calcPointPoints() const")
|
||||
FatalErrorInFunction
|
||||
<< "Point-point addressing already calculated."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -79,10 +79,8 @@ void Foam::slidingInterface::checkDefinition()
|
||||
|| !slavePatchID_.active()
|
||||
)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::checkDefinition()"
|
||||
) << "Not all zones and patches needed in the definition "
|
||||
FatalErrorInFunction
|
||||
<< "Not all zones and patches needed in the definition "
|
||||
<< "have been found. Please check your mesh definition."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -94,8 +92,7 @@ void Foam::slidingInterface::checkDefinition()
|
||||
|| mesh.faceZones()[slaveFaceZoneID_.index()].empty()
|
||||
)
|
||||
{
|
||||
FatalErrorIn("void slidingInterface::checkDefinition()")
|
||||
<< "Master or slave face zone contain no faces. "
|
||||
FatalErrorInFunction
|
||||
<< "Please check your mesh definition."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -199,23 +196,8 @@ Foam::slidingInterface::slidingInterface
|
||||
|
||||
if (attached_)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"Foam::slidingInterface::slidingInterface\n"
|
||||
"(\n"
|
||||
" const word& name,\n"
|
||||
" const label index,\n"
|
||||
" const polyTopoChanger& mme,\n"
|
||||
" const word& masterFaceZoneName,\n"
|
||||
" const word& slaveFaceZoneName,\n"
|
||||
" const word& cutFaceZoneName,\n"
|
||||
" const word& cutPointZoneName,\n"
|
||||
" const word& masterPatchName,\n"
|
||||
" const word& slavePatchName,\n"
|
||||
" const typeOfMatch tom,\n"
|
||||
" const bool coupleDecouple\n"
|
||||
")"
|
||||
) << "Creation of a sliding interface from components "
|
||||
FatalErrorInFunction
|
||||
<< "Creation of a sliding interface from components "
|
||||
<< "in attached state not supported."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -644,11 +626,8 @@ void Foam::slidingInterface::modifyMotionPoints(pointField& motionPoints) const
|
||||
}
|
||||
else
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::modifyMotionPoints"
|
||||
"(pointField&) const"
|
||||
) << "Cut point " << cutPoints[pointI]
|
||||
FatalErrorInFunction
|
||||
<< "Cut point " << cutPoints[pointI]
|
||||
<< " not recognised as either the projected "
|
||||
<< "or as intersection point. Error in point "
|
||||
<< "projection or data mapping"
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -132,11 +132,7 @@ void Foam::slidingInterface::calcAttachedAddressing() const
|
||||
}
|
||||
}
|
||||
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::calcAttachedAddressing()"
|
||||
"const"
|
||||
) << "Error is zone face-cell addressing. Probable error in "
|
||||
FatalErrorInFunction
|
||||
<< "decoupled mesh or sliding interface definition."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -221,10 +217,7 @@ void Foam::slidingInterface::calcAttachedAddressing() const
|
||||
}
|
||||
else
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::calcAttachedAddressing() const"
|
||||
) << "The interface is attached. The zone face-cell addressing "
|
||||
FatalErrorInFunction
|
||||
<< "cannot be assembled for object " << name()
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -304,11 +297,8 @@ void Foam::slidingInterface::renumberAttachedAddressing
|
||||
// Check if all the mapped cells are live
|
||||
if (min(newMfc) < 0 || min(newSfc) < 0)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::renumberAttachedAddressing("
|
||||
"const mapPolyMesh& m) const"
|
||||
) << "Error in cell renumbering for object " << name()
|
||||
FatalErrorInFunction
|
||||
<< "Error in cell renumbering for object " << name()
|
||||
<< ". Some of master cells next "
|
||||
<< "to the interface have been removed."
|
||||
<< abort(FatalError);
|
||||
@ -356,11 +346,8 @@ void Foam::slidingInterface::renumberAttachedAddressing
|
||||
// Check if all the mapped cells are live
|
||||
if (min(newMsof) < 0 || min(newSsof) < 0)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::renumberAttachedAddressing("
|
||||
"const mapPolyMesh& m) const"
|
||||
) << "Error in face renumbering for object " << name()
|
||||
FatalErrorInFunction
|
||||
<< "Error in face renumbering for object " << name()
|
||||
<< ". Some of stick-out next "
|
||||
<< "to the interface have been removed."
|
||||
<< abort(FatalError);
|
||||
@ -391,11 +378,8 @@ void Foam::slidingInterface::renumberAttachedAddressing
|
||||
// Check if all the mapped cells are live
|
||||
if (key < 0 || value < 0)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::renumberAttachedAddressing("
|
||||
"const mapPolyMesh& m) const"
|
||||
) << "Error in retired point numbering for object "
|
||||
FatalErrorInFunction
|
||||
<< "Error in retired point numbering for object "
|
||||
<< name() << ". Some of master "
|
||||
<< "points have been removed."
|
||||
<< abort(FatalError);
|
||||
@ -431,11 +415,8 @@ void Foam::slidingInterface::renumberAttachedAddressing
|
||||
// Check if all the mapped cells are live
|
||||
if (key < 0 || ms < 0 || me < 0 || ss < 0 || se < 0)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::renumberAttachedAddressing("
|
||||
"const mapPolyMesh& m) const"
|
||||
) << "Error in cut point edge pair map numbering for object "
|
||||
FatalErrorInFunction
|
||||
<< "Error in cut point edge pair map numbering for object "
|
||||
<< name() << ". Some of master points have been removed."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -446,11 +427,8 @@ void Foam::slidingInterface::renumberAttachedAddressing
|
||||
|
||||
if (!projectedSlavePointsPtr_)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void slidingInterface::renumberAttachedAddressing("
|
||||
"const mapPolyMesh& m) const"
|
||||
) << "Error in projected point numbering for object " << name()
|
||||
FatalErrorInFunction
|
||||
<< "Error in projected point numbering for object " << name()
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
@ -496,10 +474,8 @@ const Foam::labelList& Foam::slidingInterface::masterFaceCells() const
|
||||
{
|
||||
if (!masterFaceCellsPtr_)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"const labelList& slidingInterface::masterFaceCells() const"
|
||||
) << "Master zone face-cell addressing not available for object "
|
||||
FatalErrorInFunction
|
||||
<< "Master zone face-cell addressing not available for object "
|
||||
<< name()
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -512,10 +488,8 @@ const Foam::labelList& Foam::slidingInterface::slaveFaceCells() const
|
||||
{
|
||||
if (!slaveFaceCellsPtr_)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"const labelList& slidingInterface::slaveFaceCells() const"
|
||||
) << "Slave zone face-cell addressing not available for object "
|
||||
FatalErrorInFunction
|
||||
<< "Slave zone face-cell addressing not available for object "
|
||||
<< name()
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -528,10 +502,8 @@ const Foam::labelList& Foam::slidingInterface::masterStickOutFaces() const
|
||||
{
|
||||
if (!masterStickOutFacesPtr_)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"const labelList& slidingInterface::masterStickOutFaces() const"
|
||||
) << "Master zone stick-out face addressing not available for object "
|
||||
FatalErrorInFunction
|
||||
<< "Master zone stick-out face addressing not available for object "
|
||||
<< name()
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -544,10 +516,8 @@ const Foam::labelList& Foam::slidingInterface::slaveStickOutFaces() const
|
||||
{
|
||||
if (!slaveStickOutFacesPtr_)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"const labelList& slidingInterface::slaveStickOutFaces() const"
|
||||
) << "Slave zone stick-out face addressing not available for object "
|
||||
FatalErrorInFunction
|
||||
<< "Slave zone stick-out face addressing not available for object "
|
||||
<< name()
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -560,10 +530,8 @@ const Foam::Map<Foam::label>& Foam::slidingInterface::retiredPointMap() const
|
||||
{
|
||||
if (!retiredPointMapPtr_)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"const Map<label>& slidingInterface::retiredPointMap() const"
|
||||
) << "Retired point map not available for object " << name()
|
||||
FatalErrorInFunction
|
||||
<< "Retired point map not available for object " << name()
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
@ -576,11 +544,8 @@ Foam::slidingInterface::cutPointEdgePairMap() const
|
||||
{
|
||||
if (!cutPointEdgePairMapPtr_)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"const Map<Pair<edge> >& slidingInterface::"
|
||||
"cutPointEdgePairMap() const"
|
||||
) << "Retired point map not available for object " << name()
|
||||
FatalErrorInFunction
|
||||
<< "Retired point map not available for object " << name()
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -368,10 +368,7 @@ bool Foam::slidingInterface::projectPoints() const
|
||||
}
|
||||
else
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"bool slidingInterface::projectPoints() const"
|
||||
) << "Problem in point projection. Unknown sliding match type "
|
||||
FatalErrorInFunction
|
||||
<< " for object " << name()
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -404,10 +401,7 @@ bool Foam::slidingInterface::projectPoints() const
|
||||
|
||||
if (nShortEdges > 0)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"bool slidingInterface::projectPoints() const"
|
||||
) << "Problem in point projection. " << nShortEdges
|
||||
FatalErrorInFunction
|
||||
<< " short projected edges "
|
||||
<< "after adjustment for object " << name()
|
||||
<< abort(FatalError);
|
||||
@ -522,10 +516,7 @@ bool Foam::slidingInterface::projectPoints() const
|
||||
|
||||
if (minEdgeLength < SMALL)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"bool slidingInterface::projectPoints() const"
|
||||
) << "Problem in point projection. Short projected edge "
|
||||
FatalErrorInFunction
|
||||
<< " after point merge for object " << name()
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -687,10 +678,7 @@ bool Foam::slidingInterface::projectPoints() const
|
||||
|
||||
if (minEdgeLength < SMALL)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"bool slidingInterface::projectPoints() const"
|
||||
) << "Problem in point projection. Short projected edge "
|
||||
FatalErrorInFunction
|
||||
<< " after correction for object " << name()
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user