diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwind.H b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwind.H index 13b98512df680f03e1d89f12f104f58af6a6257c..d180be69edfe34ef1ccc2d3de3dceec47e4d0e6c 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwind.H +++ b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwind.H @@ -141,10 +141,15 @@ public: ) ) { + if (!schemeData.eof()) { - IOWarningIn("linearUpwind(const fvMesh&, Istream&)", schemeData) - << "unexpected additional entries in stream." << nl + IOWarningIn + ( + "linearUpwind(const fvMesh&, " + "const surfaceScalarField& faceFlux, Istream&)", + schemeData + ) << "unexpected additional entries in stream." << nl << " Only the name of the gradient scheme in the" " 'gradSchemes' dictionary should be specified." << endl; diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwindV.H b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwindV.H index ce07b1017bfe555861ae749b0e5ff3bd83c77fff..d97ea2cbb5a2d6154da3d02d9e9cc232509f2af7 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwindV.H +++ b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwindV.H @@ -111,11 +111,14 @@ public: ) ) { - IOWarningIn("linearUpwindV(const fvMesh&, Istream&)", schemeData) - << "unexpected additional entries in stream." << nl - << " Only the name of the gradient scheme in the" - " 'gradSchemes' dictionary should be specified." - << endl; + if (!schemeData.eof()) + { + IOWarningIn("linearUpwindV(const fvMesh&, Istream&)", schemeData) + << "unexpected additional entries in stream." << nl + << " Only the name of the gradient scheme in the" + " 'gradSchemes' dictionary should be specified." + << endl; + } } //- Construct from faceFlux and Istream @@ -137,11 +140,18 @@ public: ) ) { - IOWarningIn("linearUpwindV(const fvMesh&, Istream&)", schemeData) - << "unexpected additional entries in stream." << nl - << " Only the name of the gradient scheme in the" - " 'gradSchemes' dictionary should be specified." - << endl; + if (!schemeData.eof()) + { + IOWarningIn + ( + "linearUpwindV(const fvMesh&, " + "const surfaceScalarField& faceFlux, Istream&)", + schemeData + ) << "unexpected additional entries in stream." << nl + << " Only the name of the gradient scheme in the" + " 'gradSchemes' dictionary should be specified." + << endl; + } }