Fixing return types in localAxesRotation.C

This commit is contained in:
sergio
2013-01-21 17:10:51 +00:00
parent 01c4970dd6
commit 3ad8456ec7

View File

@ -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();
}