From db0d8de75628f0e34f3a56682fffbc3e04e499c7 Mon Sep 17 00:00:00 2001 From: Andrew Heather <a.heather@opencfd.co.uk> Date: Fri, 16 Dec 2016 20:59:13 +0000 Subject: [PATCH] ENH: Streamline function object - report velocity field being employed - see #323 --- src/functionObjects/field/streamLine/streamLineBase.C | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/functionObjects/field/streamLine/streamLineBase.C b/src/functionObjects/field/streamLine/streamLineBase.C index 9b6daeee12c..3356524a06e 100644 --- a/src/functionObjects/field/streamLine/streamLineBase.C +++ b/src/functionObjects/field/streamLine/streamLineBase.C @@ -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) -- GitLab