Skip to content

Conversation

@ChristianBauerEng
Copy link
Contributor

@ChristianBauerEng ChristianBauerEng commented Feb 16, 2022

Proposed Changes

Give a brief overview of your contribution here in a few sentences.

  • During time-averaging, the weighted sum over previous timesteps is re-used to quickly update the time-average during inner iterations.
  • Square-windowing now does not save the entire sample history, which should eliminate performance degradation when time-averaging is performed over many timesteps.

Related Work

Resolve any issues (bug fix or feature request), note any related PRs, or mention interactions with the work of others, if any.
#1545

PR Checklist

Put an X by all that apply. You can fill this out after submitting the PR. If you have any questions, don't hesitate to ask! We want to help. These are a guide for you to know what the reviewers will be looking for in your contribution.

  • I am submitting my contribution to the develop branch.
  • My contribution generates no new compiler warnings (try with the '-Wall -Wextra -Wno-unused-parameter -Wno-empty-body' compiler flags, or simply --warnlevel=2 when using meson).
  • My contribution is commented and consistent with SU2 style.
  • I have added a test case that demonstrates my contribution, if necessary. (UnitTest)
  • I have updated appropriate documentation (Tutorials, Docs Page, config_template.cpp) , if necessary.

pcarruscag 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.
@pr-triage pr-triage bot added the PR: draft label Feb 16, 2022
@lgtm-com
Copy link

lgtm-com bot commented Feb 17, 2022

This pull request introduces 1 alert when merging 11a4e6b into 5b12ac7 - view on LGTM.com

new alerts:

  • 1 for Comparison of narrow type with wide type in loop condition

@lgtm-com
Copy link

lgtm-com bot commented Feb 17, 2022

This pull request introduces 1 alert when merging b4a2d7d into 5b12ac7 - view on LGTM.com

new alerts:

  • 1 for Comparison of narrow type with wide type in loop condition

ChristianBauerEng and others added 9 commits February 17, 2022 18:22
…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.
@lgtm-com
Copy link

lgtm-com bot commented Feb 17, 2022

This pull request introduces 1 alert when merging f53a40b into 5b12ac7 - view on LGTM.com

new alerts:

  • 1 for Comparison of narrow type with wide type in loop condition

@ChristianBauerEng ChristianBauerEng marked this pull request as ready for review February 17, 2022 18:28
ChristianBauerEng and others added 5 commits February 23, 2022 11:23
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
Copy link
Member

Before I forget, add yourself to the AUTHORS.md file please (alphabetical order), either your name or github handle as you prefer.

@ChristianBauerEng
Copy link
Contributor Author

I hope my somewhat chaotic commits did not cause more work for you than they actually contributed. This was my first time using github pull requests and code editing without IDE (usually I use Visual Studio). On the upside I now have everything set up to make possible future constributions a bit more efficient :-)
I assume you're merging this PR when everything is ready?

@pcarruscag
Copy link
Member

Not at all this is a nice contribution. It's customary to let the author merge. You can also close issue #1545 after merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants