COMP: incorrect type in valueAverageBase (fixes #2568)
- caused inadvertent truncation of label types
This commit is contained in:
parent
2a007b007e
commit
a39b50d783
@ -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
|
||||
(
|
||||
|
Loading…
Reference in New Issue
Block a user