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:
Henry Weller
2015-11-20 13:22:51 +00:00
parent 26a2c1778a
commit f900abd83b
13 changed files with 30 additions and 15 deletions

View File

@ -223,8 +223,9 @@ void Foam::forceCoeffs::write()
scalar Clf = Cl/2.0 + Cm;
scalar Clr = Cl/2.0 - Cm;
writeTime(file(0));
file(0)
<< obr_.time().value() << tab << Cm << tab << Cd
<< tab << Cm << tab << Cd
<< tab << Cl << tab << Clf << tab << Clr << endl;
if (log_) Info<< type() << " " << name_ << " output:" << nl
@ -246,7 +247,7 @@ void Foam::forceCoeffs::write()
}
}
file(1)<< obr_.time().value();
writeTime(file(1));
forAll(coeffs[0], i)
{