mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: enable user to control re-writing of function object output file headers. See #1556
This commit is contained in:
committed by
Andrew Heather
parent
d44babcc78
commit
1b45599b26
@ -543,9 +543,9 @@ bool Foam::functionObjects::fieldValues::surfaceFieldValue::update()
|
||||
void Foam::functionObjects::fieldValues::surfaceFieldValue::writeFileHeader
|
||||
(
|
||||
Ostream& os
|
||||
) const
|
||||
)
|
||||
{
|
||||
if (operation_ != opNone)
|
||||
if (canWriteHeader() && (operation_ != opNone))
|
||||
{
|
||||
writeCommented(os, "Region type : ");
|
||||
os << regionTypeNames_[regionType_] << " " << regionName_ << endl;
|
||||
@ -575,6 +575,8 @@ void Foam::functionObjects::fieldValues::surfaceFieldValue::writeFileHeader
|
||||
|
||||
os << endl;
|
||||
}
|
||||
|
||||
writtenHeader_ = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user