From 3ad8456ec70886669ff8ce41c893e2b089459b3c Mon Sep 17 00:00:00 2001 From: sergio Date: Mon, 21 Jan 2013 17:10:51 +0000 Subject: [PATCH] Fixing return types in localAxesRotation.C --- .../coordinateRotation/localAxesRotation.C | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.C b/src/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.C index 0c78cc9043..181a471091 100644 --- a/src/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.C +++ b/src/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.C @@ -117,7 +117,7 @@ Foam::vector Foam::localAxesRotation::transform(const vector& st) const "vector Foam::localAxesRotation:: " "transform(const vector& st) const" ); - return vector(vector::zero); + return vector::zero; } @@ -128,7 +128,7 @@ Foam::vector Foam::localAxesRotation::invTransform(const vector& st) const "vector Foam::localAxesRotation:: " "transform(const vector& st) const" ); - return vector(vector::zero); + return vector::zero; } @@ -185,7 +185,7 @@ Foam::tensor Foam::localAxesRotation::transformTensor ( "tensor localAxesRotation::transformTensor() const" ); - return tensor(tensor::zero); + return tensor::zero; } @@ -250,7 +250,7 @@ Foam::symmTensor Foam::localAxesRotation::transformVector ( "tensor localAxesRotation::transformVector(const vector&) const" ); - return symmTensor(symmTensor::zero); + return symmTensor::zero; } @@ -266,7 +266,7 @@ void Foam::localAxesRotation::init forAll(mesh.cellCentres(), cellI) { vector dir = mesh.cellCentres()[cellI] - origin_; - dir /= mag(dir); + dir /= mag(dir) + VSMALL; Rptr_()[cellI] = axesRotation(e3_, dir).R(); }