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:
@ -166,7 +166,7 @@ void Foam::fieldMinMax::write()
|
||||
{
|
||||
functionObjectFile::write();
|
||||
|
||||
if (!location_) file()<< obr_.time().value();
|
||||
if (!location_) writeTime(file());
|
||||
if (log_) Info<< type() << " " << name_ << " output:" << nl;
|
||||
|
||||
forAll(fieldSet_, fieldI)
|
||||
|
||||
@ -45,7 +45,7 @@ void Foam::fieldMinMax::output
|
||||
|
||||
if (location_)
|
||||
{
|
||||
file<< obr_.time().value();
|
||||
writeTime(file());
|
||||
|
||||
writeTabbed(file, fieldName);
|
||||
|
||||
|
||||
@ -234,7 +234,7 @@ void Foam::fieldValues::cellSource::write()
|
||||
{
|
||||
if (Pstream::master())
|
||||
{
|
||||
file() << obr_.time().value();
|
||||
writeTime(file());
|
||||
}
|
||||
|
||||
if (writeVolume_)
|
||||
|
||||
@ -675,7 +675,7 @@ void Foam::fieldValues::faceSource::write()
|
||||
|
||||
if (Pstream::master())
|
||||
{
|
||||
file() << obr_.time().value();
|
||||
writeTime(file());
|
||||
}
|
||||
|
||||
if (writeArea_)
|
||||
|
||||
@ -155,7 +155,7 @@ void Foam::fieldValues::fieldValueDelta::write()
|
||||
|
||||
if (Pstream::master())
|
||||
{
|
||||
file()<< obr_.time().value();
|
||||
writeTime(file());
|
||||
}
|
||||
|
||||
if (log_) Info<< type() << " " << name_ << " output:" << endl;
|
||||
|
||||
Reference in New Issue
Block a user