Skip to content
Snippets Groups Projects
Commit 1320397d authored by laurence's avatar laurence
Browse files

BUG: foamyHexMesh: Check for hit

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