mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
blockMesh: Avoid test failure for lambda == 1
This commit is contained in:
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user