ENH: Field function objects using fieldExpression - tidied outpu. See #359

This commit is contained in:
Andrew Heather
2016-12-22 10:09:12 +00:00
parent 33f2559a98
commit 40e0fb2eac
3 changed files with 3 additions and 4 deletions

View File

@ -83,7 +83,7 @@ bool Foam::functionObjects::CourantNo::calc()
) )
); );
if (foundObject<volScalarField>(resultName_)) if (foundObject<volScalarField>(resultName_, false))
{ {
volScalarField& Co volScalarField& Co
( (

View File

@ -171,8 +171,7 @@ bool Foam::functionObjects::blendingFactor::write()
reduce(nCellsScheme2, sumOp<label>()); reduce(nCellsScheme2, sumOp<label>());
reduce(nCellsBlended, sumOp<label>()); reduce(nCellsBlended, sumOp<label>());
Log << type() << " " << name() << " write:" << nl Log << " scheme 1 cells : " << nCellsScheme1 << nl
<< " scheme 1 cells : " << nCellsScheme1 << nl
<< " scheme 2 cells : " << nCellsScheme2 << nl << " scheme 2 cells : " << nCellsScheme2 << nl
<< " blended cells : " << nCellsBlended << nl << " blended cells : " << nCellsBlended << nl
<< endl; << endl;

View File

@ -40,7 +40,7 @@ bool Foam::functionObjects::fieldExpression::foundObject
} }
else else
{ {
if (verbose) if (debug || verbose)
{ {
Warning Warning
<< " functionObjects::" << type() << " " << this->name() << " functionObjects::" << type() << " " << this->name()