diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C index 3ceace96954a4870573436c3f51821d7b8353481..54b6257d829ba4bf981302079ea7eaa83b1f848d 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C @@ -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_) {