ENH: streamLineBase - set tracking velocity field name to U by default

This commit is contained in:
Andrew Heather
2016-10-27 16:15:43 +01:00
parent 99c62425a9
commit 91459881a3

View File

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