mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
improved error message
This commit is contained in:
@ -157,14 +157,14 @@ void testSortedEdgeFaces(const triSurface& surf)
|
|||||||
{
|
{
|
||||||
if (findIndex(sortMyFaces, myFaces[i]) == -1)
|
if (findIndex(sortMyFaces, myFaces[i]) == -1)
|
||||||
{
|
{
|
||||||
FatalErrorIn("testSortedEdgeFaces") << abort(FatalError);
|
FatalErrorIn("testSortedEdgeFaces(..)") << abort(FatalError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
forAll(sortMyFaces, i)
|
forAll(sortMyFaces, i)
|
||||||
{
|
{
|
||||||
if (findIndex(myFaces, sortMyFaces[i]) == -1)
|
if (findIndex(myFaces, sortMyFaces[i]) == -1)
|
||||||
{
|
{
|
||||||
FatalErrorIn("testSortedEdgeFaces") << abort(FatalError);
|
FatalErrorIn("testSortedEdgeFaces(..)") << abort(FatalError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -304,7 +304,7 @@ label findEdge
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
FatalErrorIn("findEdge") << "Cannot find edge with labels " << v0
|
FatalErrorIn("findEdge(..)") << "Cannot find edge with labels " << v0
|
||||||
<< ' ' << v1 << " in candidates " << edgeLabels
|
<< ' ' << v1 << " in candidates " << edgeLabels
|
||||||
<< " with vertices:" << UIndirectList<edge>(surf.edges(), edgeLabels)()
|
<< " with vertices:" << UIndirectList<edge>(surf.edges(), edgeLabels)()
|
||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
@ -343,7 +343,7 @@ label otherEdge
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FatalErrorIn("otherEdge") << "Cannot find other edge on face " << faceI
|
FatalErrorIn("otherEdge(..)") << "Cannot find other edge on face " << faceI
|
||||||
<< " verts:" << surf.localPoints()[faceI]
|
<< " verts:" << surf.localPoints()[faceI]
|
||||||
<< " connected to point " << pointI
|
<< " connected to point " << pointI
|
||||||
<< " faceEdges:" << UIndirectList<edge>(surf.edges(), fEdges)()
|
<< " faceEdges:" << UIndirectList<edge>(surf.edges(), fEdges)()
|
||||||
@ -409,7 +409,9 @@ void walkSplitLine
|
|||||||
|
|
||||||
if (eFaces.size() != 2)
|
if (eFaces.size() != 2)
|
||||||
{
|
{
|
||||||
FatalErrorIn("walkSplitPoint") << abort(FatalError);
|
FatalErrorIn("walkSplitPoint(..)")
|
||||||
|
<< "Can only handle edges with 2 or 4 edges for now."
|
||||||
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (eFaces[0] == faceI)
|
if (eFaces[0] == faceI)
|
||||||
@ -422,7 +424,7 @@ void walkSplitLine
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FatalErrorIn("walkSplitPoint") << abort(FatalError);
|
FatalErrorIn("walkSplitPoint(..)") << abort(FatalError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (true);
|
while (true);
|
||||||
@ -547,7 +549,7 @@ void calcPointVecs
|
|||||||
|
|
||||||
surf.write("errorSurf.ftr");
|
surf.write("errorSurf.ftr");
|
||||||
|
|
||||||
FatalErrorIn("calcPointVecs")
|
FatalErrorIn("calcPointVecs(..)")
|
||||||
<< "Cannot find two faces using border edge " << edgeI
|
<< "Cannot find two faces using border edge " << edgeI
|
||||||
<< " verts:" << edges[edgeI]
|
<< " verts:" << edges[edgeI]
|
||||||
<< " eFaces:" << eFaces << endl
|
<< " eFaces:" << eFaces << endl
|
||||||
|
|||||||
Reference in New Issue
Block a user