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

This commit is contained in:
Andrew Heather
2016-04-21 15:04:43 +01:00
parent 9b3009e25f
commit 810e847265

View File

@ -348,7 +348,14 @@ bool Foam::scene::loop(vtkRenderer* renderer)
currentFrameI_++; 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_) if (currentFrameI_ < nFrameTotal_)
{ {