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 f64624924e
commit b37269d481
6 changed files with 169 additions and 143 deletions

View File

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