functionObjects: Improved handling of multi-file indexing and code style

Patch contributed by Bruno Santos
Resolves bug-report http://bugs.openfoam.org/view.php?id=2216
This commit is contained in:
Henry Weller
2016-08-24 19:34:00 +01:00
parent fc44390db3
commit e476f80e7a
6 changed files with 169 additions and 143 deletions

View File

@ -96,11 +96,11 @@ void Foam::functionObjects::fieldValues::volFieldValue::writeFileHeader
writeCommented(file(), "Time");
forAll(fields_, i)
forAll(fields_, fieldi)
{
file()
<< tab << operationTypeNames_[operation_]
<< "(" << fields_[i] << ")";
<< "(" << fields_[fieldi] << ")";
}
file() << endl;