BUG: cvMesh: Reset the initial value of keepSurfacePoint within the loop

This commit is contained in:
laurence
2012-02-09 14:44:28 +00:00
parent c3d77467e1
commit be42c48cb6

View File

@ -2212,13 +2212,13 @@ void Foam::conformalVoronoiMesh::addSurfaceAndEdgeHits
DynamicList<Foam::point>& existingSurfacePtLocations DynamicList<Foam::point>& existingSurfacePtLocations
) const ) const
{ {
bool keepSurfacePoint = true;
const scalar cellSize = targetCellSize(vert); const scalar cellSize = targetCellSize(vert);
const scalar cellSizeSqr = sqr(cellSize); const scalar cellSizeSqr = sqr(cellSize);
forAll(surfHit, sI) forAll(surfHit, sI)
{ {
bool keepSurfacePoint = true;
pointIndexHit surfHitI = surfHit[sI]; pointIndexHit surfHitI = surfHit[sI];
label hitSurfaceI = hitSurface[sI]; label hitSurfaceI = hitSurface[sI];