mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
functionObjects: Format time according to the specification in controlDict
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1921
This commit is contained in:
@ -334,4 +334,10 @@ void Foam::functionObjectFile::writeHeader
|
||||
}
|
||||
|
||||
|
||||
void Foam::functionObjectFile::writeTime(Ostream& os) const
|
||||
{
|
||||
os << setw(charWidth()) << obr_.time().timeName();
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -180,6 +180,9 @@ public:
|
||||
const string& str
|
||||
) const;
|
||||
|
||||
//- Write the current time to stream
|
||||
void writeTime(Ostream& os) const;
|
||||
|
||||
//- Write a (commented) header property and value pair
|
||||
template<class Type>
|
||||
void writeHeaderValue
|
||||
|
||||
Reference in New Issue
Block a user