STYLE: Updated FO output

This commit is contained in:
Andrew Heather
2019-06-19 20:53:24 +01:00
parent 32bd3800b1
commit 7354af5dff
2 changed files with 12 additions and 12 deletions

View File

@ -281,7 +281,7 @@ bool Foam::functionObjects::derivedFields::execute()
} }
} }
Log << nl; Log << nl << endl;
return true; return true;
} }

View File

@ -527,9 +527,9 @@ bool Foam::functionObjects::fieldValues::surfaceFieldValue::update()
totalArea_ = totalArea(); totalArea_ = totalArea();
Log Log << " total faces = " << nFaces_ << nl
<< " total faces = " << nFaces_ << nl << " total area = " << totalArea_ << nl
<< " total area = " << totalArea_ << nl; << endl;
writeFileHeader(file()); writeFileHeader(file());
@ -982,17 +982,17 @@ bool Foam::functionObjects::fieldValues::surfaceFieldValue::read
bool Foam::functionObjects::fieldValues::surfaceFieldValue::write() bool Foam::functionObjects::fieldValues::surfaceFieldValue::write()
{ {
if (needsUpdate_ || operation_ != opNone)
{
fieldValue::write();
}
update(); update();
if (operation_ != opNone) if (operation_ != opNone)
{
fieldValue::write();
if (Pstream::master())
{ {
writeTime(file()); writeTime(file());
} }
}
if (writeArea_) if (writeArea_)
{ {
@ -1080,12 +1080,12 @@ bool Foam::functionObjects::fieldValues::surfaceFieldValue::write()
writeAll(Sf, weightField, points, faces); writeAll(Sf, weightField, points, faces);
} }
if (operation_ != opNone && Pstream::master()) if (operation_ != opNone)
{ {
file() << endl; file() << endl;
Log << endl;
} }
Log << endl;
return true; return true;
} }