Changed time-averaging algorithm to reduce performance impact. by ChristianBauerEng · Pull Request #1548 · su2code/SU2

and others added 3 commits

October 29, 2021 16:28
…which sets the appropriate private field.

- COutput constructor now pre-initializes the ´windowedTimeAverages´ map with ´CWindowAverage` objects.
- CWindowedAverage.addValue() now caches weighted sums from previous timesteps and does not save samples for rectangular windows.

@ChristianBauerEng

…erages. They are already up to date.

@ChristianBauerEng

@ChristianBauerEng

…which sets the appropriate private field.

- COutput constructor now pre-initializes the ´windowedTimeAverages´ map with ´CWindowAverage` objects.
- CWindowedAverage.addValue() now caches weighted sums from previous timesteps and does not save samples for rectangular windows.

@ChristianBauerEng

…erages. They are already up to date.

@ChristianBauerEng

@ChristianBauerEng

@ChristianBauerEng

@ChristianBauerEng

@ChristianBauerEng

@ChristianBauerEng

@ChristianBauerEng

@ChristianBauerEng

Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
Suggested from code review

Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
As suggested from code review

Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
From code review

Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>

pcarruscag

@pcarruscag

pcarruscag

pcarruscag

pcarruscag

@pcarruscag

pcarruscag

@pcarruscag

pcarruscag

@pcarruscag