functionObjects::yPlus: Call read() in constructor to set base-class controls

Patch contributed by Bruno Santos
Resolves bug-report http://bugs.openfoam.org/view.php?id=2320
This commit is contained in:
Henry Weller 2016-11-06 10:33:18 +00:00
parent c4b8d5e443
commit acc2a7707e

View file

@ -150,6 +150,7 @@ Foam::functionObjects::yPlus::yPlus
mesh.objectRegistry::store(yPlusPtr);
read(dict);
resetName(typeName);
}
@ -235,7 +236,7 @@ bool Foam::functionObjects::yPlus::write()
writeTime(file());
file()
<< token::TAB << patch.name()
<< token::TAB << patch.name()
<< token::TAB << minYplus
<< token::TAB << maxYplus
<< token::TAB << avgYplus