From 23d523d9bf2146d1ae4b9cc7528372eb462b473f Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Thu, 12 Jul 2018 08:56:27 +0100 Subject: [PATCH] ThermoCloud: Corrected counter data type Resolves bug report https://bugs.openfoam.org/view.php?id=2999 --- .../intermediate/clouds/Templates/ThermoCloud/ThermoCloudI.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lagrangian/intermediate/clouds/Templates/ThermoCloud/ThermoCloudI.H b/src/lagrangian/intermediate/clouds/Templates/ThermoCloud/ThermoCloudI.H index e9ace90d87..5dccd6cd23 100644 --- a/src/lagrangian/intermediate/clouds/Templates/ThermoCloud/ThermoCloudI.H +++ b/src/lagrangian/intermediate/clouds/Templates/ThermoCloud/ThermoCloudI.H @@ -373,7 +373,7 @@ template inline Foam::scalar Foam::ThermoCloud::Tmax() const { scalar T = -great; - scalar n = 0; + label n = 0; forAllConstIter(typename ThermoCloud, *this, iter) { const parcelType& p = iter(); @@ -399,7 +399,7 @@ template inline Foam::scalar Foam::ThermoCloud::Tmin() const { scalar T = great; - scalar n = 0; + label n = 0; forAllConstIter(typename ThermoCloud, *this, iter) { const parcelType& p = iter();