Skip to content
Snippets Groups Projects
Commit d8f39a93 authored by mattijs's avatar mattijs
Browse files

improved error message

parent ee033487
Branches
Tags
No related merge requests found
...@@ -157,14 +157,14 @@ void testSortedEdgeFaces(const triSurface& surf) ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment