Skip to content
Snippets Groups Projects
Commit ba86d90f authored by mattijs's avatar mattijs
Browse files

ENH: single precision: various small fixes. See #1086.

parent 6c568c61
No related merge requests found
......@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -146,7 +146,7 @@ bool Foam::RBD::restraints::linearAxialAngularSpring::read
refQ_ = coeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9)
if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL)
{
FatalErrorInFunction
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. "
......
......@@ -164,7 +164,7 @@ bool Foam::RBD::restraints::prescribedRotation::read
refQ_ = coeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9)
if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL)
{
FatalErrorInFunction
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. "
......
......@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -150,7 +150,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::linearAxialAngularSpring::read
refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9)
if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL)
{
FatalErrorInFunction
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. "
......
......@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -124,7 +124,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::sphericalAngularSpring::read
refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9)
if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL)
{
FatalErrorInFunction
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. "
......
......@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -151,7 +151,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::tabulatedAxialAngularSpring::read
refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9)
if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL)
{
FatalErrorInFunction
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. "
......
......@@ -196,7 +196,7 @@ castellatedMeshControls
// section reachable from the locationInMesh is kept.
// NOTE: This point should never be on a face, always inside a cell, even
// after refinement.
locationInMesh (3 0.28 0.43);
locationInMesh (3.12 0.2833 0.4322);
// Whether any faceZones (as specified in the refinementSurfaces)
......
......@@ -257,7 +257,7 @@ castellatedMeshControls
// section reachable from the locationInMesh is kept.
// NOTE: This point should never be on a face, always inside a cell, even
// after refinement.
locationInMesh (3 0.28 0.43);
locationInMesh (3.12 0.2833 0.4322);
// Whether any faceZones (as specified in the refinementSurfaces)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment