diff --git a/src/functionObjects/field/wallBoundedStreamLine/wallBoundedStreamLine.C b/src/functionObjects/field/wallBoundedStreamLine/wallBoundedStreamLine.C index 53429780e5..f4e61cbdb4 100644 --- a/src/functionObjects/field/wallBoundedStreamLine/wallBoundedStreamLine.C +++ b/src/functionObjects/field/wallBoundedStreamLine/wallBoundedStreamLine.C @@ -264,9 +264,6 @@ bool Foam::functionObjects::wallBoundedStreamLine::read(const dictionary& dict) { if (streamLineBase::read(dict)) { - Info<< type() << " " << name() << ":" << nl; - - // Make sure that the mesh is trackable if (debug) { diff --git a/src/functionObjects/forces/forceCoeffs/forceCoeffs.C b/src/functionObjects/forces/forceCoeffs/forceCoeffs.C index 7317a9290e..931ff277eb 100644 --- a/src/functionObjects/forces/forceCoeffs/forceCoeffs.C +++ b/src/functionObjects/forces/forceCoeffs/forceCoeffs.C @@ -232,10 +232,11 @@ Foam::functionObjects::forceCoeffs::forceCoeffs ( const word& name, const Time& runTime, - const dictionary& dict + const dictionary& dict, + const bool readFields ) : - forces(name, runTime, dict), + forces(name, runTime, dict, false), magUInf_(Zero), lRef_(Zero), Aref_(Zero), @@ -247,9 +248,12 @@ Foam::functionObjects::forceCoeffs::forceCoeffs CmPitchBinFilePtr_(), CmYawBinFilePtr_() { - read(dict); - setCoordinateSystem(dict, "liftDir", "dragDir"); - Info<< endl; + if (readFields) + { + read(dict); + setCoordinateSystem(dict, "liftDir", "dragDir"); + Info<< endl; + } } diff --git a/src/functionObjects/forces/forceCoeffs/forceCoeffs.H b/src/functionObjects/forces/forceCoeffs/forceCoeffs.H index 8427b18f4a..a676df851f 100644 --- a/src/functionObjects/forces/forceCoeffs/forceCoeffs.H +++ b/src/functionObjects/forces/forceCoeffs/forceCoeffs.H @@ -268,7 +268,8 @@ public: ( const word& name, const Time& runTime, - const dictionary& + const dictionary&, + const bool readFields = true );