Updates for Clang

This commit is contained in:
Henry Weller
2023-04-21 17:40:48 +01:00
parent 960666672e
commit 4ec52a5d41
3 changed files with 17 additions and 17 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2013-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -74,14 +74,14 @@ inline UniformField<Type> min
template<class Type, class OtherType>
inline OtherType min(const UniformField<Type>& u, const OtherType& o)
inline auto min(const UniformField<Type>& u, const OtherType& o)
{
return min(u.operator Type(), o);
}
template<class Type, class OtherType>
inline OtherType min(const OtherType& o, const UniformField<Type>& u)
inline auto min(const OtherType& o, const UniformField<Type>& u)
{
return min(o, u.operator Type());
}
@ -99,14 +99,14 @@ inline UniformField<Type> max
template<class Type, class OtherType>
inline OtherType max(const UniformField<Type>& u, const OtherType& o)
inline auto max(const UniformField<Type>& u, const OtherType& o)
{
return max(u.operator Type(), o);
}
template<class Type, class OtherType>
inline OtherType max(const OtherType& o, const UniformField<Type>& u)
inline auto max(const OtherType& o, const UniformField<Type>& u)
{
return max(o, u.operator Type());
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -90,7 +90,7 @@ inline const one& operator/(const one& o, const one&)
}
template<class Type>
inline Type operator/(const one&, const Type& t)
inline auto operator/(const one&, const Type& t)
{
return scalar(1)/t;
}
@ -107,13 +107,13 @@ inline const one& min(const one& o, const one&)
}
template<class Type>
inline Type min(const one&, const Type& t)
inline auto min(const one&, const Type& t)
{
return min(scalar(1), t);
}
template<class Type>
inline Type min(const Type& t, const one&)
inline auto min(const Type& t, const one&)
{
return min(t, scalar(1));
}
@ -124,13 +124,13 @@ inline const one& max(const one& o, const one&)
}
template<class Type>
inline Type max(const one&, const Type& t)
inline auto max(const one&, const Type& t)
{
return max(scalar(1), t);
}
template<class Type>
inline Type max(const Type& t, const one&)
inline auto max(const Type& t, const one&)
{
return max(t, scalar(1));
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -62,7 +62,7 @@ inline const Type& operator-(const Type& t, const zero&)
}
template<class Type>
inline Type operator-(const zero&, const Type& t)
inline auto operator-(const zero&, const Type& t)
{
return -t;
}
@ -96,13 +96,13 @@ inline zero min(const zero&, const zero&)
}
template<class Type>
inline Type min(const zero&, const Type& t)
inline auto min(const zero&, const Type& t)
{
return min(scalar(0), t);
}
template<class Type>
inline Type min(const Type& t, const zero&)
inline auto min(const Type& t, const zero&)
{
return min(t, scalar(0));
}
@ -113,13 +113,13 @@ inline zero max(const zero&, const zero&)
}
template<class Type>
inline Type max(const zero&, const Type& t)
inline auto max(const zero&, const Type& t)
{
return max(scalar(0), t);
}
template<class Type>
inline Type max(const Type& t, const zero&)
inline auto max(const Type& t, const zero&)
{
return max(t, scalar(0));
}