Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix isGradientDataRequired to behave properly #1295

Merged
merged 2 commits into from May 18, 2022

Conversation

davidscn
Copy link
Member

@davidscn davidscn commented May 17, 2022

Main changes of this PR

We have unfortunately no compiler warnings for unused data. I still need to fix the behavior for readData IDs . Related to #1169.

Motivation and additional information

Before, this API function returned always true independent of the mapping configuration, leading to an unconditional memory allocation for gradients as well as gradient communication.
FYI: @kursatyurt

Author's checklist

  • I added a changelog file with make changelog if there are user-observable changes since the last release.
  • I ran make format to ensure everything is formatted correctly.
  • I sticked to C++14 features.
  • I sticked to CMake version 3.16.3.
  • I squashed / am about to squash all commits that should be seen as one.

Reviewers' checklist

  • Does the changelog entry make sense? Is it formatted correctly?
  • Do you understand the code changes?

@davidscn davidscn added the bug preCICE does not behave the way we want and we should look into it (and fix it if possible) label May 17, 2022
@davidscn davidscn linked an issue May 18, 2022 that may be closed by this pull request
@fsimonis fsimonis added this to the Version 2.x.x milestone May 18, 2022
@davidscn davidscn merged commit 5ff9f97 into precice:develop May 18, 2022
@davidscn davidscn deleted the fix-grad-api branch May 18, 2022 10:50
@uekerman uekerman modified the milestones: Version 2.x.x, Version 2.5.0 Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug preCICE does not behave the way we want and we should look into it (and fix it if possible)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong return of API method isGradientDataRequired
3 participants