Updated to support compilation with 64bit label

Resolves bug-report https://bugs.openfoam.org/view.php?id=3821
This commit is contained in:
Henry Weller
2022-04-04 11:22:01 +01:00
parent 7592a81c6e
commit 4fe853fa87
3 changed files with 5 additions and 5 deletions

View File

@ -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_));

View File

@ -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_));

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-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