Commit 7120e9fc authored by Andrew Heather's avatar Andrew Heather
Browse files

BUG: runTimePostProcessing - corrected handling of position in scene.C - fixes #99

parent 768dae8c
......@@ -348,7 +348,14 @@ bool Foam::scene::loop(vtkRenderer* renderer)
currentFrameI_++;
position_ += currentFrameI_*dPosition_;
position_ += dPosition_;
if (position_ > (1 + 0.5*dPosition_))
{
WarningInFunction
<< "Current position exceeded 1 - please check your setup"
<< endl;
}
if (currentFrameI_ < nFrameTotal_)
{
......
Markdown is supported
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