mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: more consistent use of dimensioned Zero, scalar decimal points
- use scalar(0) instead of scalar(0.0) etc
This commit is contained in:
@ -112,7 +112,7 @@ int main(int argc, char *argv[])
|
||||
),
|
||||
mesh.C()/magSqr(mesh.C())
|
||||
);
|
||||
radialDirection.replace(vector::Z, scalar(0.0));
|
||||
radialDirection.replace(vector::Z, scalar(0));
|
||||
radialDirection /= sqrt(magSqr(radialDirection));
|
||||
radialDirection.write();
|
||||
|
||||
@ -135,7 +135,7 @@ int main(int argc, char *argv[])
|
||||
),
|
||||
transform2Tangencial & mesh.C()
|
||||
);
|
||||
angularDirection.replace(vector::Z, scalar(0.0));
|
||||
angularDirection.replace(vector::Z, scalar(0));
|
||||
angularDirection /= sqrt(magSqr(angularDirection));
|
||||
angularDirection.write();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user