mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Moving calculations inside if statement - not necessary outside.
This commit is contained in:
@ -2155,17 +2155,17 @@ void Foam::conformalVoronoiMesh::move()
|
||||
|
||||
scalar alignmentDotProd = ((rAB/rABMag) & alignmentDir);
|
||||
|
||||
scalar targetCellSize =
|
||||
0.5*(vA->targetCellSize() + vB->targetCellSize());
|
||||
|
||||
scalar targetFaceArea = sqr(targetCellSize);
|
||||
|
||||
if
|
||||
(
|
||||
alignmentDotProd
|
||||
> cvMeshControls().cosAlignmentAcceptanceAngle()
|
||||
> cvMeshControls().cosAlignmentAcceptanceAngle()
|
||||
)
|
||||
{
|
||||
scalar targetCellSize =
|
||||
0.5*(vA->targetCellSize() + vB->targetCellSize());
|
||||
|
||||
scalar targetFaceArea = sqr(targetCellSize);
|
||||
|
||||
alignmentDir *= 0.5*targetCellSize;
|
||||
|
||||
vector delta = alignmentDir - 0.5*rAB;
|
||||
|
||||
Reference in New Issue
Block a user