From 15192e732b61b2832e2a025140c4d19c45e6f852 Mon Sep 17 00:00:00 2001 From: Prashant Date: Thu, 19 May 2016 18:00:58 +0530 Subject: [PATCH] BUG: -case argument support and nFrames > 1 warning for static mode --- .../graphics/runTimePostProcessing/scene.C | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C index c96e36566c..86e577a47a 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C @@ -111,6 +111,12 @@ void Foam::scene::readCamera(const dictionary& dict) ); const vector up(coeffs.lookup("up")); cameraUp_.reset(new Constant("up", up)); + if (nFrameTotal_ > 1) + { + WarningInFunction + << "Static mode with nFrames > 1 - please check your setup" + << endl; + } break; } case mtFlightPath: @@ -375,7 +381,12 @@ void Foam::scene::saveImage(vtkRenderWindow* renderWindow) const return; } - fileName prefix("postProcessing"/name_/obr_.time().timeName()); + const Time& runTime = obr_.time(); + + fileName prefix(Pstream::parRun() + ? runTime.path()/".."/"postProcessing"/name_/obr_.time().timeName() + : runTime.path()/"postProcessing"/name_/obr_.time().timeName()); + mkDir(prefix); renderWindow->Render();