Commit 632170f0 authored by Henry's avatar Henry
Browse files

Added return when position_ == endPosition

May resolve bug-report http://www.openfoam.org/mantisbt/view.php?id=1459
parent 46bf38d5
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -506,14 +506,13 @@ Foam::scalar Foam::particle::trackToFace
if (lambdaMin <= 1.0)
{
trackFraction += lambdaMin*(1 - trackFraction);
position_ += lambdaMin*(endPosition - position_);
}
else
{
trackFraction = 1.0;
position_ = endPosition;
return 1.0;
}
}
else
......
Supports Markdown
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