STYLE: use dictionary checking methods in runTimePostProcessing
- make parallelProjection default (was previously mandatory)
This commit is contained in:
committed by
Andrew Heather
parent
7e29e165d7
commit
3de7cd5207
@ -303,7 +303,7 @@ bool Foam::functionObjects::runTimePostProcessing::read(const dictionary& dict)
|
||||
fvMeshFunctionObject::read(dict);
|
||||
|
||||
#ifdef FOAM_USING_VTK_MPI
|
||||
parallel_ = (Pstream::parRun() && dict.lookupOrDefault("parallel", true));
|
||||
parallel_ = (Pstream::parRun() && dict.getOrDefault("parallel", true));
|
||||
#else
|
||||
parallel_ = false;
|
||||
#endif
|
||||
@ -311,7 +311,7 @@ bool Foam::functionObjects::runTimePostProcessing::read(const dictionary& dict)
|
||||
Info<< type() << " " << name() << ": reading post-processing data ("
|
||||
<< (parallel_ ? "parallel" : "serial") << " rendering)" << endl;
|
||||
|
||||
if (dict.lookupOrDefault("debug", false))
|
||||
if (dict.getOrDefault("debug", false))
|
||||
{
|
||||
runTimePostPro::geometryBase::debug = 1;
|
||||
Info<< " debugging on" << endl;
|
||||
|
||||
Reference in New Issue
Block a user