mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated xxx::zero->Zero
This commit is contained in:
@ -88,7 +88,7 @@ tmp<vectorField> calcVertexNormals(const triSurface& surf)
|
||||
// Weight = fA / (mag(e0)^2 * mag(e1)^2);
|
||||
tmp<vectorField> tpointNormals
|
||||
(
|
||||
new pointField(surf.nPoints(), vector::zero)
|
||||
new pointField(surf.nPoints(), Zero)
|
||||
);
|
||||
vectorField& pointNormals = tpointNormals.ref();
|
||||
|
||||
@ -151,7 +151,7 @@ tmp<vectorField> calcPointNormals
|
||||
{
|
||||
if (!isFeaturePoint[e[i]])
|
||||
{
|
||||
pointNormals[e[i]] = vector::zero;
|
||||
pointNormals[e[i]] = Zero;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -164,7 +164,7 @@ tmp<vectorField> calcPointNormals
|
||||
const labelList& eFaces = edgeFaces[edgeI];
|
||||
|
||||
// Get average edge normal
|
||||
vector n = vector::zero;
|
||||
vector n = Zero;
|
||||
forAll(eFaces, i)
|
||||
{
|
||||
n += s.faceNormals()[eFaces[i]];
|
||||
@ -483,7 +483,7 @@ void lloydsSmoothing
|
||||
{
|
||||
const labelList& pFaces = pointFaces[pointI];
|
||||
|
||||
point avg = point::zero;
|
||||
point avg(Zero);
|
||||
forAll(pFaces, pFaceI)
|
||||
{
|
||||
avg += faceCentres[pFaces[pFaceI]];
|
||||
@ -498,7 +498,7 @@ void lloydsSmoothing
|
||||
|
||||
const pointField& points = s.points();
|
||||
|
||||
vectorField pointSum(s.nPoints(), vector::zero);
|
||||
vectorField pointSum(s.nPoints(), Zero);
|
||||
labelList nPointSum(s.nPoints(), 0);
|
||||
|
||||
forAll(edges, edgeI)
|
||||
|
||||
Reference in New Issue
Block a user