BUG: cellSizeControl: start off with low priority so single control surface works

This commit is contained in:
mattijs
2012-05-24 19:02:06 +01:00
parent 5fe2004059
commit 63a9c592be
2 changed files with 4 additions and 3 deletions

View File

@ -96,8 +96,9 @@ bool Foam::cellSizeControlSurfaces::evalCellSizeFunctions
if (cellSizeFunctions_.size()) if (cellSizeFunctions_.size())
{ {
// Initialise to the last (lowest) priority // Maintain priority of current hit. Initialise so it always goes
label previousPriority = cellSizeFunctions_.last().priority(); // through at least once.
label previousPriority = -1;
forAll(cellSizeFunctions_, i) forAll(cellSizeFunctions_, i)
{ {

View File

@ -196,7 +196,7 @@ void Foam::conformalVoronoiMesh::buildSurfaceConformation
{ {
if (vit->internalPoint() && !vit->nearBoundary()) if (vit->internalPoint() && !vit->nearBoundary())
{ {
const Foam::point& pt = topoint(vit->point()); pointFromPoint pt = topoint(vit->point());
const scalar range = sqr(2.0*targetCellSize(pt)); const scalar range = sqr(2.0*targetCellSize(pt));
pointIndexHit pHit; pointIndexHit pHit;