ENH: Streamline function object - report velocity field being employed - see #323

This commit is contained in:
Andrew Heather
2016-12-16 20:59:13 +00:00
parent 16f1d748ec
commit db0d8de756

View File

@ -514,6 +514,8 @@ bool Foam::functionObjects::streamLineBase::read(const dictionary& dict)
dict.lookup("fields") >> fields_;
UName_ = dict.lookupOrDefault<word>("U", "U");
Info<< " Employing velocity field " << UName_ << endl;
if (findIndex(fields_, UName_) == -1)
{
FatalIOErrorInFunction(dict)