LimitFuncs: Update function specializations to satisfy gcc, clang and icpc
This commit is contained in:
parent
c47adcc10d
commit
baa5a1df12
1 changed files with 25 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue