From baa5a1df12aaacf0bfc4a8a2aceadcc5bdac7ff8 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Wed, 9 Dec 2015 22:37:43 +0000 Subject: [PATCH] LimitFuncs: Update function specializations to satisfy gcc, clang and icpc --- .../limitedSchemes/LimitedScheme/LimitFuncs.H | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/LimitedScheme/LimitFuncs.H b/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/LimitedScheme/LimitFuncs.H index d3726edb6..40a1fe3bb 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/LimitedScheme/LimitFuncs.H +++ b/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/LimitedScheme/LimitFuncs.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -95,6 +95,24 @@ public: ) const; }; +template<> +inline tmp magSqr::operator() +( + const volScalarField& phi +) const; + +template<> +inline tmp magSqr::operator() +( + const volSymmTensorField& phi +) const; + +template<> +inline tmp magSqr::operator() +( + const volTensorField& phi +) const; + template class rhoMagSqr @@ -110,6 +128,12 @@ public: ) const; }; +template<> +inline tmp rhoMagSqr::operator() +( + const volScalarField& phi +) const; + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //