blockMesh: Avoid test failure for lambda == 1

This commit is contained in:
Henry Weller
2015-08-28 20:26:23 +01:00
parent ffedbafee1
commit 87532b27b0
2 changed files with 6 additions and 4 deletions

View File

@ -2,7 +2,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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -133,7 +133,7 @@ Foam::arcEdge::arcEdge(const pointField& points, Istream& is)
Foam::point Foam::arcEdge::position(const scalar lambda) const Foam::point Foam::arcEdge::position(const scalar lambda) const
{ {
if (lambda < 0 || lambda > 1) if (lambda < -SMALL || lambda > 1 + SMALL)
{ {
FatalErrorIn("arcEdge::position(const scalar lambda) const") FatalErrorIn("arcEdge::position(const scalar lambda) const")
<< "Parameter out of range, lambda = " << lambda << "Parameter out of range, lambda = " << lambda

View File

@ -2,7 +2,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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -54,16 +54,18 @@ Foam::lineEdge::lineEdge(const pointField& points, Istream& is)
curvedEdge(points, is) curvedEdge(points, is)
{} {}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * * //
Foam::lineEdge::~lineEdge() Foam::lineEdge::~lineEdge()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::point Foam::lineEdge::position(const scalar lambda) const Foam::point Foam::lineEdge::position(const scalar lambda) const
{ {
if (lambda < 0 || lambda > 1) if (lambda < -SMALL || lambda > 1+SMALL)
{ {
FatalErrorIn("lineEdge::position(const scalar)") FatalErrorIn("lineEdge::position(const scalar)")
<< "Parameter out of range, lambda = " << lambda << "Parameter out of range, lambda = " << lambda