Skip to content
Snippets Groups Projects
Commit 6d35aeb2 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Updated function object reading and output messages

parent 55277f51
No related merge requests found
...@@ -264,9 +264,6 @@ bool Foam::functionObjects::wallBoundedStreamLine::read(const dictionary& dict) ...@@ -264,9 +264,6 @@ bool Foam::functionObjects::wallBoundedStreamLine::read(const dictionary& dict)
{ {
if (streamLineBase::read(dict)) if (streamLineBase::read(dict))
{ {
Info<< type() << " " << name() << ":" << nl;
// Make sure that the mesh is trackable // Make sure that the mesh is trackable
if (debug) if (debug)
{ {
......
...@@ -232,10 +232,11 @@ Foam::functionObjects::forceCoeffs::forceCoeffs ...@@ -232,10 +232,11 @@ Foam::functionObjects::forceCoeffs::forceCoeffs
( (
const word& name, const word& name,
const Time& runTime, const Time& runTime,
const dictionary& dict const dictionary& dict,
const bool readFields
) )
: :
forces(name, runTime, dict), forces(name, runTime, dict, false),
magUInf_(Zero), magUInf_(Zero),
lRef_(Zero), lRef_(Zero),
Aref_(Zero), Aref_(Zero),
...@@ -247,9 +248,12 @@ Foam::functionObjects::forceCoeffs::forceCoeffs ...@@ -247,9 +248,12 @@ Foam::functionObjects::forceCoeffs::forceCoeffs
CmPitchBinFilePtr_(), CmPitchBinFilePtr_(),
CmYawBinFilePtr_() CmYawBinFilePtr_()
{ {
read(dict); if (readFields)
setCoordinateSystem(dict, "liftDir", "dragDir"); {
Info<< endl; read(dict);
setCoordinateSystem(dict, "liftDir", "dragDir");
Info<< endl;
}
} }
......
...@@ -268,7 +268,8 @@ public: ...@@ -268,7 +268,8 @@ public:
( (
const word& name, const word& name,
const Time& runTime, const Time& runTime,
const dictionary& const dictionary&,
const bool readFields = true
); );
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment