Added support for gcc-8.1
This commit is contained in:
parent
0183d1d9e8
commit
bfe333ff64
9 changed files with 32 additions and 49 deletions
|
|
@ -2,7 +2,7 @@
|
|||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
# \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
# \\/ M anipulation |
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
|
|
@ -216,7 +216,7 @@ endif
|
|||
switch ("$WM_COMPILER_TYPE")
|
||||
case OpenFOAM:
|
||||
case ThirdParty:
|
||||
# Default versions of GMP, MPFR and MPC, overide as necessary
|
||||
# Default versions of GMP, MPFR and MPC, override as necessary
|
||||
set gmp_version=gmp-5.1.2
|
||||
set mpfr_version=mpfr-3.1.2
|
||||
set mpc_version=mpc-1.0.1
|
||||
|
|
@ -240,6 +240,9 @@ case ThirdParty:
|
|||
case Gcc61:
|
||||
set gcc_version=gcc-6.1.0
|
||||
breaksw
|
||||
case Gcc81:
|
||||
set gcc_version=gcc-8.1.0
|
||||
breaksw
|
||||
case Clang:
|
||||
# Using clang - not gcc
|
||||
setenv WM_CC 'clang'
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
# \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
# \\/ M anipulation |
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
|
|
@ -57,6 +57,9 @@ OpenFOAM | ThirdParty)
|
|||
Gcc61)
|
||||
gcc_version=gcc-6.1.0
|
||||
;;
|
||||
Gcc81)
|
||||
gcc_version=gcc-8.1.0
|
||||
;;
|
||||
Clang)
|
||||
# Using clang - not gcc
|
||||
export WM_CC='clang'
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
|
@ -28,7 +28,7 @@ License
|
|||
template<class T>
|
||||
inline void Foam::List<T>::alloc()
|
||||
{
|
||||
if (this->size_)
|
||||
if (this->size_ > 0)
|
||||
{
|
||||
this->v_ = new T[this->size_];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
|
@ -369,7 +369,7 @@ inline void Foam::PackedList<nBits>::iteratorBase::operator=
|
|||
const unsigned int val
|
||||
)
|
||||
{
|
||||
// Lazy evaluation - increase size on assigment
|
||||
// Lazy evaluation - increase size on assignment
|
||||
if (index_ >= list_->size_)
|
||||
{
|
||||
list_->resize(index_ + 1);
|
||||
|
|
@ -546,8 +546,6 @@ inline void Foam::PackedList<nBits>::const_iterator::operator=
|
|||
{
|
||||
this->index_ = this->list_->size_;
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1003,7 +1001,7 @@ inline bool Foam::PackedList<nBits>::set
|
|||
}
|
||||
else if (i >= size_)
|
||||
{
|
||||
// Lazy evaluation - increase size on assigment
|
||||
// Lazy evaluation - increase size on assignment
|
||||
resize(i + 1);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
|
@ -88,7 +88,7 @@ inline To& dynamicCast(From& r)
|
|||
{
|
||||
return dynamic_cast<To&>(r);
|
||||
}
|
||||
catch (std::bad_cast)
|
||||
catch (const std::bad_cast&)
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "Attempt to cast type " << typeid(r).name()
|
||||
|
|
@ -109,7 +109,7 @@ inline To& refCast(From& r)
|
|||
{
|
||||
return dynamic_cast<To&>(r);
|
||||
}
|
||||
catch (std::bad_cast)
|
||||
catch (const std::bad_cast&)
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "Attempt to cast type " << r.type()
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
|
@ -159,9 +159,6 @@ public:
|
|||
//- Construct from Istream
|
||||
VectorSpace(Istream&);
|
||||
|
||||
//- Construct as copy
|
||||
inline VectorSpace(const VectorSpace<Form, Cmpt, Ncmpts>&);
|
||||
|
||||
//- Construct as copy of a VectorSpace with the same size
|
||||
template<class Form2, class Cmpt2>
|
||||
inline explicit VectorSpace(const VectorSpace<Form2, Cmpt2, Ncmpts>&);
|
||||
|
|
@ -190,7 +187,6 @@ public:
|
|||
inline const Cmpt& operator[](const direction) const;
|
||||
inline Cmpt& operator[](const direction);
|
||||
|
||||
inline void operator=(const VectorSpace<Form, Cmpt, Ncmpts>&);
|
||||
inline void operator+=(const VectorSpace<Form, Cmpt, Ncmpts>&);
|
||||
inline void operator-=(const VectorSpace<Form, Cmpt, Ncmpts>&);
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
|
@ -48,16 +48,6 @@ inline VectorSpace<Form, Cmpt, Ncmpts>::VectorSpace(const Foam::zero)
|
|||
}
|
||||
|
||||
|
||||
template<class Form, class Cmpt, direction Ncmpts>
|
||||
inline VectorSpace<Form, Cmpt, Ncmpts>::VectorSpace
|
||||
(
|
||||
const VectorSpace<Form, Cmpt, Ncmpts>& vs
|
||||
)
|
||||
{
|
||||
VectorSpaceOps<Ncmpts,0>::eqOp(*this, vs, eqOp<Cmpt>());
|
||||
}
|
||||
|
||||
|
||||
template<class Form, class Cmpt, direction Ncmpts>
|
||||
template<class Form2, class Cmpt2>
|
||||
inline VectorSpace<Form, Cmpt, Ncmpts>::VectorSpace
|
||||
|
|
@ -285,16 +275,6 @@ ConstBlock<SubVector, BStart>::operator()
|
|||
}
|
||||
|
||||
|
||||
template<class Form, class Cmpt, direction Ncmpts>
|
||||
inline void VectorSpace<Form, Cmpt, Ncmpts>::operator=
|
||||
(
|
||||
const VectorSpace<Form, Cmpt, Ncmpts>& vs
|
||||
)
|
||||
{
|
||||
VectorSpaceOps<Ncmpts,0>::eqOp(*this, vs, eqOp<Cmpt>());
|
||||
}
|
||||
|
||||
|
||||
template<class Form, class Cmpt, direction Ncmpts>
|
||||
inline void VectorSpace<Form, Cmpt, Ncmpts>::operator+=
|
||||
(
|
||||
|
|
@ -428,6 +408,17 @@ inline scalar mag
|
|||
}
|
||||
|
||||
|
||||
template<class Form, class Cmpt, direction Ncmpts>
|
||||
inline VectorSpace<Form, Cmpt, Ncmpts> normalised
|
||||
(
|
||||
const VectorSpace<Form, Cmpt, Ncmpts>& vs
|
||||
)
|
||||
{
|
||||
const scalar magVs = mag(vs);
|
||||
return magVs > 0 ? vs/magVs : Zero;
|
||||
}
|
||||
|
||||
|
||||
template<class Form, class Cmpt, direction Ncmpts>
|
||||
inline VectorSpace<Form, Cmpt, Ncmpts> cmptMultiply
|
||||
(
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
|
@ -242,7 +242,6 @@ public:
|
|||
|
||||
// Access
|
||||
|
||||
inline word& name();
|
||||
inline const word& name() const;
|
||||
|
||||
// - Access to basic components of the reaction
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
|
@ -32,13 +32,6 @@ namespace Foam
|
|||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class ReactionThermo>
|
||||
inline word& Reaction<ReactionThermo>::name()
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
|
||||
template<class ReactionThermo>
|
||||
inline const word& Reaction<ReactionThermo>::name() const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue