functionObjects::forces: Corrected file names when using the 'binData' option

Resolves bug-report http://bugs.openfoam.org/view.php?id=2214
This commit is contained in:
Henry Weller
2016-08-24 11:24:27 +01:00
parent 655fb3841a
commit c6f9ed748a

View File

@ -53,6 +53,7 @@ Foam::wordList Foam::functionObjects::forces::createFileNames
DynamicList<word> names(1); DynamicList<word> names(1);
const word forceType(dict.lookup("type")); const word forceType(dict.lookup("type"));
names.append(forceType);
if (dict.found("binData")) if (dict.found("binData"))
{ {
@ -64,8 +65,6 @@ Foam::wordList Foam::functionObjects::forces::createFileNames
} }
} }
names.append(forceType);
return names; return names;
} }