Commit e9355df1 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: [surface|vol]FieldValue - added name of weight field to output file header if used

parent 2271bd4c
......@@ -560,6 +560,11 @@ void Foam::functionObjects::fieldValues::surfaceFieldValue::writeFileHeader
writeHeaderValue(os, "Area", totalArea_);
writeHeaderValue(os, "Scale factor", scaleFactor_);
if (weightFieldName_ != "none")
{
writeHeaderValue(os, "Weight field", weightFieldName_);
}
writeCommented(os, "Time");
if (writeArea_)
{
......
......@@ -93,6 +93,10 @@ void Foam::functionObjects::fieldValues::volFieldValue::writeFileHeader
) const
{
volRegion::writeFileHeader(*this, os);
if (weightFieldName_ != "none")
{
writeHeaderValue(os, "Weight field", weightFieldName_);
}
writeCommented(os, "Time");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment