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

Test complex elliptic DG operator #6269

Merged
merged 6 commits into from
Sep 9, 2024

Conversation

nilsvu
Copy link
Member

@nilsvu nilsvu commented Sep 4, 2024

Proposed changes

Upgrade instructions

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.

Further comments

@nilsvu nilsvu requested a review from wthrowe September 4, 2024 05:06
@nilsvu nilsvu force-pushed the complex_numbers branch 2 times, most recently from df706b8 to 2536a26 Compare September 4, 2024 18:21
@nilsvu nilsvu force-pushed the complex_numbers branch 2 times, most recently from cda99b9 to ce983e1 Compare September 4, 2024 22:53
@nilsvu
Copy link
Member Author

nilsvu commented Sep 5, 2024

@wthrowe would you be able to review this one as well? (continuing the quest of DG with complex numbers)

const double constant;
// NOLINTNEXTLINE(cppcoreguidelines-avoid-const-or-ref-data-members)
const double complex_phase;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The clang-tidy warnings look right, at least for these last two. Why should they be ignored? Similar comments for the other file.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want functions in this class be able to modify this value. It's the user-defined value from options that gets passed down to this struct. I don't understand why clang-tidy want's me to remove the const when really I want it to be const.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation links to the core guidelines rule and some extra reading. I don't agree with everything in there, but that section seems pretty good. The short answer for your class is that the functions already can't modify the value because they are const member functions.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok makes sense, I removed the const

Copy link
Member

@wthrowe wthrowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@wthrowe wthrowe merged commit e00b810 into sxs-collaboration:develop Sep 9, 2024
23 checks passed
@nilsvu nilsvu deleted the complex_numbers branch October 22, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants