Better debug messages
This commit is contained in:
parent
7c5c19cb3f
commit
6b3a796412
1 changed files with 21 additions and 10 deletions
|
@ -93,7 +93,10 @@ void Foam::slidingInterface::checkDefinition() const
|
||||||
FatalErrorIn
|
FatalErrorIn
|
||||||
(
|
(
|
||||||
"void slidingInterface::checkDefinition()"
|
"void slidingInterface::checkDefinition()"
|
||||||
) << "Not all zones and patches needed in the definition "
|
) << "Sliding interface object " << name() << " :" << nl
|
||||||
|
<< " master face zone: " << masterFaceZoneID_.index() << nl
|
||||||
|
<< " slave face zone: " << slaveFaceZoneID_.index() << nl
|
||||||
|
<< "Not all zones and patches needed in the definition "
|
||||||
<< "have been found. Please check your mesh definition." << nl
|
<< "have been found. Please check your mesh definition." << nl
|
||||||
<< "Error code: "
|
<< "Error code: "
|
||||||
<< masterFaceZoneID_.active() << slaveFaceZoneID_.active()
|
<< masterFaceZoneID_.active() << slaveFaceZoneID_.active()
|
||||||
|
@ -110,7 +113,10 @@ void Foam::slidingInterface::checkDefinition() const
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
FatalErrorIn("void slidingInterface::checkDefinition()")
|
FatalErrorIn("void slidingInterface::checkDefinition()")
|
||||||
<< "Master or slave face zone contain no faces. "
|
<< "Sliding interface object " << name() << " :" << nl
|
||||||
|
<< " master face zone: " << masterFaceZoneID_.index() << nl
|
||||||
|
<< " slave face zone: " << slaveFaceZoneID_.index() << nl
|
||||||
|
<< "Master or slave face zone contain no faces "
|
||||||
<< "Please check your mesh definition."
|
<< "Please check your mesh definition."
|
||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
|
@ -146,8 +152,13 @@ void Foam::slidingInterface::checkDefinition() const
|
||||||
if (nSharedPoints > 0)
|
if (nSharedPoints > 0)
|
||||||
{
|
{
|
||||||
FatalErrorIn("void slidingInterface::checkDefinition()")
|
FatalErrorIn("void slidingInterface::checkDefinition()")
|
||||||
|
<< "Sliding interface object " << name() << " :" << nl
|
||||||
|
<< " master face zone: "
|
||||||
|
<< masterFaceZoneID_.index() << nl
|
||||||
|
<< " slave face zone: "
|
||||||
|
<< slaveFaceZoneID_.index() << nl
|
||||||
<< "Master and slave face zone share " << nSharedPoints
|
<< "Master and slave face zone share " << nSharedPoints
|
||||||
<< " point. This is not allowed." << nl
|
<< " point. This is not allowed." << nl
|
||||||
<< "Please check mesh for topological errors."
|
<< "Please check mesh for topological errors."
|
||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
|
@ -474,7 +485,7 @@ void Foam::slidingInterface::setRefinement(polyTopoChange& ref) const
|
||||||
}
|
}
|
||||||
|
|
||||||
coupleInterface(ref);
|
coupleInterface(ref);
|
||||||
|
|
||||||
trigger_ = false;
|
trigger_ = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -484,7 +495,7 @@ void Foam::slidingInterface::modifyMotionPoints(pointField& motionPoints) const
|
||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
Pout<< "void slidingInterface::modifyMotionPoints("
|
Pout<< "void slidingInterface::modifyMotionPoints("
|
||||||
<< "pointField& motionPoints) const for object " << name() << " : "
|
<< "pointField& motionPoints) const for object " << name() << " : "
|
||||||
<< "Adjusting motion points." << endl;
|
<< "Adjusting motion points." << endl;
|
||||||
}
|
}
|
||||||
|
@ -539,7 +550,7 @@ void Foam::slidingInterface::modifyMotionPoints(pointField& motionPoints) const
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// A cut point is not a projected slave point. Therefore, it
|
// A cut point is not a projected slave point. Therefore, it
|
||||||
// must be an edge-to-edge intersection.
|
// must be an edge-to-edge intersection. HJ, 24/Jul/2003
|
||||||
|
|
||||||
Map<Pair<edge> >::const_iterator cpepmIter =
|
Map<Pair<edge> >::const_iterator cpepmIter =
|
||||||
cpepm.find(cutPoints[pointI]);
|
cpepm.find(cutPoints[pointI]);
|
||||||
|
@ -553,7 +564,7 @@ void Foam::slidingInterface::modifyMotionPoints(pointField& motionPoints) const
|
||||||
// slidingInterface::coupleInterface. This is done for
|
// slidingInterface::coupleInterface. This is done for
|
||||||
// efficiency reasons and avoids multiple creation of
|
// efficiency reasons and avoids multiple creation of
|
||||||
// cutting planes. Please update both simultaneously.
|
// cutting planes. Please update both simultaneously.
|
||||||
//
|
// HJ, 28/Jul/2003
|
||||||
const edge& globalMasterEdge = cpepmIter().first();
|
const edge& globalMasterEdge = cpepmIter().first();
|
||||||
|
|
||||||
const label curMasterEdgeIndex =
|
const label curMasterEdgeIndex =
|
||||||
|
@ -636,7 +647,7 @@ void Foam::slidingInterface::modifyMotionPoints(pointField& motionPoints) const
|
||||||
if (slaveCut.hit())
|
if (slaveCut.hit())
|
||||||
{
|
{
|
||||||
// Strict checking of slave cut to avoid capturing
|
// Strict checking of slave cut to avoid capturing
|
||||||
// end points.
|
// end points. HJ, 15/Oct/2004
|
||||||
scalar cutOnSlave =
|
scalar cutOnSlave =
|
||||||
(
|
(
|
||||||
(
|
(
|
||||||
|
@ -669,7 +680,7 @@ void Foam::slidingInterface::modifyMotionPoints(pointField& motionPoints) const
|
||||||
<< cme.line(masterLocalPoints)
|
<< cme.line(masterLocalPoints)
|
||||||
<< " slave edge: " << curSlaveLine
|
<< " slave edge: " << curSlaveLine
|
||||||
<< " point: " << masterCutPoint
|
<< " point: " << masterCutPoint
|
||||||
<< " weight: " <<
|
<< " weight: " <<
|
||||||
(
|
(
|
||||||
(
|
(
|
||||||
slaveCut.missPoint()
|
slaveCut.missPoint()
|
||||||
|
@ -711,7 +722,7 @@ void Foam::slidingInterface::updateMesh(const mapPolyMesh& m)
|
||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
Pout<< "void slidingInterface::updateMesh(const mapPolyMesh& m)"
|
Pout<< "void slidingInterface::updateMesh(const mapPolyMesh& m)"
|
||||||
<< " const for object " << name() << " : "
|
<< " const for object " << name() << " : "
|
||||||
<< "Updating topology." << endl;
|
<< "Updating topology." << endl;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue