From c2a8e6f6ce955e5ced234904aace85881446f5a7 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Wed, 20 Oct 2010 20:57:08 +0100 Subject: [PATCH] Checks and updates on global static primitive constants --- src/OpenFOAM/primitives/DiagTensor/DiagTensorI.H | 2 +- .../primitives/DiagTensor/diagTensor/diagTensor.H | 1 - .../labelSphericalTensor/labelSphericalTensor.H | 2 +- .../sphericalTensor/sphericalTensor.H | 9 ++++----- .../sphericalTensor2D/sphericalTensor2D.H | 4 ++-- .../primitives/Vector/complexVector/complexVector.H | 12 ++++++++++-- .../primitives/Vector/complexVector/complexVectorI.H | 6 +++++- .../primitives/Vector/labelVector/labelVector.H | 1 - src/OpenFOAM/primitives/Vector/vector/vector.C | 1 + src/OpenFOAM/primitives/Vector/vector/vector.H | 1 - src/OpenFOAM/primitives/Vector2D/vector2D/vector2D.H | 1 - 11 files changed, 24 insertions(+), 16 deletions(-) diff --git a/src/OpenFOAM/primitives/DiagTensor/DiagTensorI.H b/src/OpenFOAM/primitives/DiagTensor/DiagTensorI.H index 58ebf382c..6922173a9 100644 --- a/src/OpenFOAM/primitives/DiagTensor/DiagTensorI.H +++ b/src/OpenFOAM/primitives/DiagTensor/DiagTensorI.H @@ -299,7 +299,7 @@ inline Cmpt det(const DiagTensor& t) template inline DiagTensor inv(const DiagTensor& dt) { - return DiagTensor(1.0/dt.xx(), 1.0/dt.yy(), 1.0/dt.zz()); + return DiagTensor(1.0/dt.xx(), 1.0/dt.yy(), 1.0/dt.zz()); } diff --git a/src/OpenFOAM/primitives/DiagTensor/diagTensor/diagTensor.H b/src/OpenFOAM/primitives/DiagTensor/diagTensor/diagTensor.H index 471a264d5..9f662b8ef 100644 --- a/src/OpenFOAM/primitives/DiagTensor/diagTensor/diagTensor.H +++ b/src/OpenFOAM/primitives/DiagTensor/diagTensor/diagTensor.H @@ -48,7 +48,6 @@ namespace Foam typedef DiagTensor diagTensor; - //- Data associated with diagTensor type are contiguous template<> inline bool contiguous() {return true;} diff --git a/src/OpenFOAM/primitives/SphericalTensor/labelSphericalTensor/labelSphericalTensor.H b/src/OpenFOAM/primitives/SphericalTensor/labelSphericalTensor/labelSphericalTensor.H index 945737fb0..17660ec03 100644 --- a/src/OpenFOAM/primitives/SphericalTensor/labelSphericalTensor/labelSphericalTensor.H +++ b/src/OpenFOAM/primitives/SphericalTensor/labelSphericalTensor/labelSphericalTensor.H @@ -48,7 +48,7 @@ namespace Foam typedef SphericalTensor