ENH: fieldExpression - added verbose flag to foundObject

This commit is contained in:
Andrew Heather
2016-12-18 21:44:25 +00:00
parent 03e1f9c433
commit 519248d3f4
8 changed files with 24 additions and 20 deletions

View File

@ -33,11 +33,11 @@ bool Foam::functionObjects::randomise::calcRandomised()
{
typedef GeometricField<Type, fvPatchField, volMesh> VolFieldType;
if (foundObject<VolFieldType>(fieldName_))
if (foundObject<VolFieldType>(fieldName_, false))
{
const VolFieldType& field = lookupObject<VolFieldType>(fieldName_);
resultName_ = fieldName_ + "Random";
resultName_ = fieldName_ & "Random";
tmp<VolFieldType> rfieldt(new VolFieldType(field));
VolFieldType& rfield = rfieldt.ref();