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

This commit is contained in:
mattijs
2018-11-21 11:12:25 +00:00
parent 6c568c61bf
commit ba86d90ffc
7 changed files with 11 additions and 11 deletions

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation \\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -146,7 +146,7 @@ bool Foam::RBD::restraints::linearAxialAngularSpring::read
refQ_ = coeffs_.lookupOrDefault<tensor>("referenceOrientation", I); refQ_ = coeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9) if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL)
{ {
FatalErrorInFunction FatalErrorInFunction
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. " << "referenceOrientation " << refQ_ << " is not a rotation tensor. "

View File

@ -164,7 +164,7 @@ bool Foam::RBD::restraints::prescribedRotation::read
refQ_ = coeffs_.lookupOrDefault<tensor>("referenceOrientation", I); refQ_ = coeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9) if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL)
{ {
FatalErrorInFunction FatalErrorInFunction
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. " << "referenceOrientation " << refQ_ << " is not a rotation tensor. "

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -150,7 +150,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::linearAxialAngularSpring::read
refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I); refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9) if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL)
{ {
FatalErrorInFunction FatalErrorInFunction
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. " << "referenceOrientation " << refQ_ << " is not a rotation tensor. "

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -124,7 +124,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::sphericalAngularSpring::read
refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I); refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9) if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL)
{ {
FatalErrorInFunction FatalErrorInFunction
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. " << "referenceOrientation " << refQ_ << " is not a rotation tensor. "

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -151,7 +151,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::tabulatedAxialAngularSpring::read
refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I); refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9) if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL)
{ {
FatalErrorInFunction FatalErrorInFunction
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. " << "referenceOrientation " << refQ_ << " is not a rotation tensor. "

View File

@ -196,7 +196,7 @@ castellatedMeshControls
// section reachable from the locationInMesh is kept. // section reachable from the locationInMesh is kept.
// NOTE: This point should never be on a face, always inside a cell, even // NOTE: This point should never be on a face, always inside a cell, even
// after refinement. // after refinement.
locationInMesh (3 0.28 0.43); locationInMesh (3.12 0.2833 0.4322);
// Whether any faceZones (as specified in the refinementSurfaces) // Whether any faceZones (as specified in the refinementSurfaces)

View File

@ -257,7 +257,7 @@ castellatedMeshControls
// section reachable from the locationInMesh is kept. // section reachable from the locationInMesh is kept.
// NOTE: This point should never be on a face, always inside a cell, even // NOTE: This point should never be on a face, always inside a cell, even
// after refinement. // after refinement.
locationInMesh (3 0.28 0.43); locationInMesh (3.12 0.2833 0.4322);
// Whether any faceZones (as specified in the refinementSurfaces) // Whether any faceZones (as specified in the refinementSurfaces)