diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwind.H b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwind.H index 6c00e4deb237d75829f6f45f6c796ab649342e90..13b98512df680f03e1d89f12f104f58af6a6257c 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwind.H +++ b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwind.H @@ -111,7 +111,16 @@ public: mesh.gradScheme(gradSchemeName_) ) ) - {} + { + if (!schemeData.eof()) + { + IOWarningIn("linearUpwind(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 linearUpwind @@ -131,7 +140,16 @@ public: mesh.gradScheme(gradSchemeName_) ) ) - {} + { + if (!schemeData.eof()) + { + IOWarningIn("linearUpwind(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; + } + } // Member Functions diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwindV.H b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwindV.H index 262d54115db81ec24feb58b905593da4d9bbe610..ce07b1017bfe555861ae749b0e5ff3bd83c77fff 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwindV.H +++ b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwindV.H @@ -110,7 +110,13 @@ public: mesh.gradScheme(gradSchemeName_) ) ) - {} + { + 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 linearUpwindV @@ -130,7 +136,13 @@ public: mesh.gradScheme(gradSchemeName_) ) ) - {} + { + 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; + } // Member Functions