Skip to content
Snippets Groups Projects
Commit 7ead72b0 authored by andy's avatar andy
Browse files

Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev

parents 9539e7d3 8e04e92f
No related merge requests found
...@@ -429,18 +429,21 @@ void Foam::searchableSurfaceControl::initialVertices ...@@ -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 ...@@ -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]);
......
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