diff --git a/src/meshTools/indexedOctree/indexedOctree.C b/src/meshTools/indexedOctree/indexedOctree.C index 9b065c36ac..2131c3aaf6 100644 --- a/src/meshTools/indexedOctree/indexedOctree.C +++ b/src/meshTools/indexedOctree/indexedOctree.C @@ -824,8 +824,10 @@ Foam::direction Foam::indexedOctree::getFace } -// Traverse a node. If intersects a triangle return first intersection point. -// Else return the bounxing box face hit: +// Traverse a node. If intersects a triangle return first intersection point: +// hitInfo.index = index of shape +// hitInfo.point = point on shape +// Else return a miss and the bounding box face hit: // hitInfo.point = coordinate of intersection of ray with bounding box // faceID = index of bounding box face template @@ -918,10 +920,10 @@ void Foam::indexedOctree::traverseNode { faceID = 0; - WarningIn("indexedOctree::traverseNode") + FatalErrorIn("indexedOctree::traverseNode(..)") << "Did not hit side of box " << subBb << " with ray from " << start << " to " << end - << endl; + << abort(FatalError); } else { @@ -936,10 +938,10 @@ void Foam::indexedOctree::traverseNode { faceID = 0; - WarningIn("indexedOctree::traverseNode") + FatalErrorIn("indexedOctree::traverseNode(..)") << "Did not hit side of box " << subBb << " with ray from " << start << " to " << end - << endl; + << abort(FatalError); } else {