Updated to support compilation with 64bit label
Resolves bug-report https://bugs.openfoam.org/view.php?id=3821
This commit is contained in:
@ -161,7 +161,7 @@ void Foam::CompactListList<T>::setSize(const labelUList& rowSizes)
|
||||
template<class T>
|
||||
void Foam::CompactListList<T>::clear()
|
||||
{
|
||||
offsets_ = List<label>(1, 0);
|
||||
offsets_ = List<label>(label(1), label(0));
|
||||
m_.clear();
|
||||
|
||||
UCompactListList<T>::shallowCopy(UCompactListList<T>(offsets_, m_));
|
||||
|
||||
@ -32,7 +32,7 @@ template<class T>
|
||||
inline Foam::CompactListList<T>::CompactListList()
|
||||
:
|
||||
UCompactListList<T>(),
|
||||
offsets_(1, 0),
|
||||
offsets_(label(1), label(0)),
|
||||
m_()
|
||||
{
|
||||
UCompactListList<T>::shallowCopy(UCompactListList<T>(offsets_, m_));
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -431,7 +431,7 @@ void Foam::Reaction<ReactionThermo>::ddNdtByVdcTp
|
||||
{
|
||||
dCfdcj *=
|
||||
c[si] >= small || el >= 1
|
||||
? el*pow(max(c[si], 0), el - specieExponent(1))
|
||||
? el*pow(max(c[si], 0), el - specieExponent(label(1)))
|
||||
: 0;
|
||||
}
|
||||
else
|
||||
@ -470,7 +470,7 @@ void Foam::Reaction<ReactionThermo>::ddNdtByVdcTp
|
||||
{
|
||||
dCrcj *=
|
||||
c[si] >= small || er >= 1
|
||||
? er*pow(max(c[si], 0), er - specieExponent(1))
|
||||
? er*pow(max(c[si], 0), er - specieExponent(label(1)))
|
||||
: 0;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user