From 7e7d486bf0bd909a0432606fab06dbcaa4499605 Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 24 Feb 2011 17:30:02 +0000 Subject: [PATCH] BUG: Use Foam::mag for vector --- .../meshes/primitiveShapes/tetrahedron/tetrahedronI.H | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/OpenFOAM/meshes/primitiveShapes/tetrahedron/tetrahedronI.H b/src/OpenFOAM/meshes/primitiveShapes/tetrahedron/tetrahedronI.H index 16479d6271..0051951e6b 100644 --- a/src/OpenFOAM/meshes/primitiveShapes/tetrahedron/tetrahedronI.H +++ b/src/OpenFOAM/meshes/primitiveShapes/tetrahedron/tetrahedronI.H @@ -405,7 +405,7 @@ bool Foam::tetrahedron::inside(const point& pt) const const point& basePt = b_; n = Sa(); - n /= (mag(n) + VSMALL); + n /= (Foam::mag(n) + VSMALL); if (((pt - basePt) & n) > SMALL) { @@ -418,7 +418,7 @@ bool Foam::tetrahedron::inside(const point& pt) const const point& basePt = c_; n = Sb(); - n /= (mag(n) + VSMALL); + n /= (Foam::mag(n) + VSMALL); if (((pt - basePt) & n) > SMALL) { @@ -431,7 +431,7 @@ bool Foam::tetrahedron::inside(const point& pt) const const point& basePt = b_; n = Sc(); - n /= (mag(n) + VSMALL); + n /= (Foam::mag(n) + VSMALL); if (((pt - basePt) & n) > SMALL) { @@ -444,7 +444,7 @@ bool Foam::tetrahedron::inside(const point& pt) const const point& basePt = b_; n = Sd(); - n /= (mag(n) + VSMALL); + n /= (Foam::mag(n) + VSMALL); if (((pt - basePt) & n) > SMALL) {