ThermoCloud: Corrected counter data type

Resolves bug report https://bugs.openfoam.org/view.php?id=2999
This commit is contained in:
Will Bainbridge
2018-07-12 08:56:27 +01:00
parent 20653ee01e
commit 23d523d9bf

View File

@ -373,7 +373,7 @@ template<class CloudType>
inline Foam::scalar Foam::ThermoCloud<CloudType>::Tmax() const
{
scalar T = -great;
scalar n = 0;
label n = 0;
forAllConstIter(typename ThermoCloud<CloudType>, *this, iter)
{
const parcelType& p = iter();
@ -399,7 +399,7 @@ template<class CloudType>
inline Foam::scalar Foam::ThermoCloud<CloudType>::Tmin() const
{
scalar T = great;
scalar n = 0;
label n = 0;
forAllConstIter(typename ThermoCloud<CloudType>, *this, iter)
{
const parcelType& p = iter();