functionObjects::volFieldValue: corrected parallel operation of writeFields = true
Resolves bug-report https://bugs.openfoam.org/view.php?id=3552
This commit is contained in:
@ -191,6 +191,13 @@ bool Foam::functionObjects::fieldValues::volFieldValue::writeValues
|
|||||||
// Add to result dictionary, over-writing any previous entry
|
// Add to result dictionary, over-writing any previous entry
|
||||||
resultDict_.add(fieldName, result, true);
|
resultDict_.add(fieldName, result, true);
|
||||||
|
|
||||||
|
file()<< tab << result;
|
||||||
|
|
||||||
|
Log << " " << operationTypeNames_[operation_]
|
||||||
|
<< "(" << volRegion::regionName_ << ") of " << fieldName
|
||||||
|
<< " = " << result << endl;
|
||||||
|
}
|
||||||
|
|
||||||
if (writeFields_)
|
if (writeFields_)
|
||||||
{
|
{
|
||||||
IOField<Type>
|
IOField<Type>
|
||||||
@ -207,14 +214,6 @@ bool Foam::functionObjects::fieldValues::volFieldValue::writeValues
|
|||||||
(weightField*values).ref()
|
(weightField*values).ref()
|
||||||
).write();
|
).write();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
file()<< tab << result;
|
|
||||||
|
|
||||||
Log << " " << operationTypeNames_[operation_]
|
|
||||||
<< "(" << volRegion::regionName_ << ") of " << fieldName
|
|
||||||
<< " = " << result << endl;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ok;
|
return ok;
|
||||||
|
|||||||
Reference in New Issue
Block a user