LimitFuncs: Update function specializations to satisfy gcc, clang and icpc
This commit is contained in:
@ -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<volScalarField> magSqr<scalar>::operator()
|
||||
(
|
||||
const volScalarField& phi
|
||||
) const;
|
||||
|
||||
template<>
|
||||
inline tmp<volScalarField> magSqr<symmTensor>::operator()
|
||||
(
|
||||
const volSymmTensorField& phi
|
||||
) const;
|
||||
|
||||
template<>
|
||||
inline tmp<volScalarField> magSqr<tensor>::operator()
|
||||
(
|
||||
const volTensorField& phi
|
||||
) const;
|
||||
|
||||
|
||||
template<class Type>
|
||||
class rhoMagSqr
|
||||
@ -110,6 +128,12 @@ public:
|
||||
) const;
|
||||
};
|
||||
|
||||
template<>
|
||||
inline tmp<volScalarField> rhoMagSqr<scalar>::operator()
|
||||
(
|
||||
const volScalarField& phi
|
||||
) const;
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
Reference in New Issue
Block a user