mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: cvMesh: assign points before sizes
This commit is contained in:
@ -275,6 +275,8 @@ void Foam::controlMeshRefinement::initialMeshPopulation
|
|||||||
// Clip the minimum size
|
// Clip the minimum size
|
||||||
for (label vI = 0; vI < pts.size(); ++vI)
|
for (label vI = 0; vI < pts.size(); ++vI)
|
||||||
{
|
{
|
||||||
|
vertices[vI] = Vb(pts[vI], Vb::vtInternalNearBoundary);
|
||||||
|
|
||||||
label maxPriority = -1;
|
label maxPriority = -1;
|
||||||
scalar size = sizeControls_.cellSize(pts[vI], maxPriority);
|
scalar size = sizeControls_.cellSize(pts[vI], maxPriority);
|
||||||
|
|
||||||
@ -303,7 +305,6 @@ void Foam::controlMeshRefinement::initialMeshPopulation
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
vertices[vI] = Vb(pts[vI], Vb::vtInternalNearBoundary);
|
|
||||||
vertices[vI].alignment() = alignments[vI];
|
vertices[vI].alignment() = alignments[vI];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user