From 810e847265ce04803b88a7beb7c9bda01c6f4ae3 Mon Sep 17 00:00:00 2001 From: Andrew Heather Date: Thu, 21 Apr 2016 15:04:43 +0100 Subject: [PATCH] BUG: runTimePostProcessing - corrected handling of position in scene.C - fixes #99 --- .../graphics/runTimePostProcessing/scene.C | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C index 3ceace9695..54b6257d82 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_) {