COMP: incorrect type in valueAverageBase (fixes #2568)

- caused inadvertent truncation of label types
This commit is contained in:
Mark Olesen 2022-09-07 15:17:20 +02:00
parent 2a007b007e
commit a39b50d783

View File

@ -117,8 +117,8 @@ bool Foam::functionObjects::valueAverageBase::calc
auto timeIter = windowTimes.cbegin();
auto valueIter = windowValues.cbegin();
meanValue = pTraits<Type2>::zero;
Type valueOld(pTraits<Type2>::zero);
meanValue = Zero;
Type2 valueOld(Zero);
for
(