Skip to content

Commit 11a4e6b

Browse files
author
ne85nif
committed
Fixed expression in updateCachedSum()
1 parent f6a8f3c commit 11a4e6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SU2_CFD/src/output/tools/CWindowingTools.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void CWindowedAverage::addValue(su2double valIn, unsigned long curTimeIter,unsig
9292
su2double CWindowedAverage::updateCachedSum(unsigned long windowWidth) const {
9393
su2double weightedSum = 0.;
9494
// Handle square window
95-
if (WINDOW_FUNCTION::SQUARE) return val * static_cast<su2double>(windowWidth);
95+
if (windowingFunctionId == WINDOW_FUNCTION::SQUARE) return val * static_cast<su2double>(windowWidth);
9696
// Handle non-trivial windows
9797
if (values.size() == 0) return 0.; // Handle first timestep
9898
for (unsigned long curTimeIter = 0; curTimeIter < values.size(); curTimeIter++) {

0 commit comments

Comments
 (0)