functionObjects::streamLine: Reinstated default "U"

This commit is contained in:
Henry Weller
2017-02-03 14:25:02 +00:00
parent 3b671f5681
commit 473cc6687e
2 changed files with 2 additions and 2 deletions

View File

@ -311,7 +311,7 @@ bool Foam::functionObjects::streamLine::read(const dictionary& dict)
Info<< type() << " " << name() << ":" << nl;
dict.lookup("fields") >> fields_;
dict.lookup("U") >> UName_;
UName_ = dict.lookupOrDefault("U", word("U"));
if (findIndex(fields_, UName_) == -1)
{