BUG: -case argument support and nFrames > 1 warning for static mode

This commit is contained in:
Prashant
2016-05-19 18:00:58 +05:30
parent c91712fbc3
commit 15192e732b

View File

@ -111,6 +111,12 @@ void Foam::scene::readCamera(const dictionary& dict)
); );
const vector up(coeffs.lookup("up")); const vector up(coeffs.lookup("up"));
cameraUp_.reset(new Constant<point>("up", up)); cameraUp_.reset(new Constant<point>("up", up));
if (nFrameTotal_ > 1)
{
WarningInFunction
<< "Static mode with nFrames > 1 - please check your setup"
<< endl;
}
break; break;
} }
case mtFlightPath: case mtFlightPath:
@ -375,7 +381,12 @@ void Foam::scene::saveImage(vtkRenderWindow* renderWindow) const
return; 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); mkDir(prefix);
renderWindow->Render(); renderWindow->Render();