BUG: foamyHexMesh: Check for hit

This commit is contained in:
laurence
2013-06-20 11:28:20 +01:00
parent 1f609ab0a9
commit 1320397db9

View File

@ -429,18 +429,21 @@ void Foam::searchableSurfaceControl::initialVertices
pointAlignment.set(new triad(normals[0])); pointAlignment.set(new triad(normals[0]));
// Limit cell size if (infoList[0].hit())
const vector vN = {
infoList[0].hitPoint() // Limit cell size
- 2.0*normals[0]*defaultCellSize_; const vector vN =
infoList[0].hitPoint()
- 2.0*normals[0]*defaultCellSize_;
List<pointIndexHit> intersectionList; List<pointIndexHit> intersectionList;
searchableSurface_.findLineAny searchableSurface_.findLineAny
( (
ptField, ptField,
pointField(1, vN), pointField(1, vN),
intersectionList intersectionList
); );
}
// if (intersectionList[0].hit()) // if (intersectionList[0].hit())
// { // {
@ -455,12 +458,13 @@ void Foam::searchableSurfaceControl::initialVertices
label priority = -1; label priority = -1;
if (!cellSize(pts[pI], sizes[pI], priority)) if (!cellSize(pts[pI], sizes[pI], priority))
{ {
FatalErrorIn sizes[pI] = defaultCellSize_;
( // FatalErrorIn
"Foam::searchableSurfaceControl::initialVertices" // (
"(pointField&, scalarField&, tensorField&)" // "Foam::searchableSurfaceControl::initialVertices"
) << "Could not calculate cell size" // "(pointField&, scalarField&, tensorField&)"
<< abort(FatalError); // ) << "Could not calculate cell size"
// << abort(FatalError);
} }
sizes[pI] = min(limitedCellSize, sizes[pI]); sizes[pI] = min(limitedCellSize, sizes[pI]);