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

[GeoMechanicsApplication] Fix some minor issues #13005

Merged
merged 6 commits into from
Jan 13, 2025

Conversation

avdg81
Copy link
Contributor

@avdg81 avdg81 commented Jan 13, 2025

📝 Description

Addressed a few minor issues found by Clang-tidy:

  • Renamed a few function parameters, to make sure that their declarations and definitions use the same names.
  • Added the [[nodiscard]] attribute to a member function.
  • Avoid repeating the return type.

avdg81 added 5 commits January 6, 2025 21:14
This fixes some inconsistencies between function parameter names used in header files and those used in implementation files.
- Marked it `[[nodiscard]]`.
- Made it `static`.
- Don't repeat the return type; use a braced-initializer list instead.
This fixes an inconsistency between a function parameter name used in the header file and the one used in the implementation file.
@avdg81 avdg81 added Cleanup GeoMechanics Issues related to the GeoMechanicsApplication labels Jan 13, 2025
@avdg81 avdg81 requested a review from WPK4FEM January 13, 2025 13:36
@avdg81 avdg81 self-assigned this Jan 13, 2025
WPK4FEM
WPK4FEM previously approved these changes Jan 13, 2025
Copy link
Contributor

@WPK4FEM WPK4FEM left a comment

Choose a reason for hiding this comment

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

Hi Anne,
This comprosises:
1 rename GPoint or PointNumber to IntegrationPointIndex
2 marking some functions as nodiscard
3 more straightforward returnvalue for NewmarkQuasistaticUPwScheme ( as I recon its type is already known )
That looks o.k. to me. I have only looked at the changes, not at the surrounding lines of code.
Regards, Wijtze Pieter

Copy link
Contributor

@WPK4FEM WPK4FEM left a comment

Choose a reason for hiding this comment

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

And some adapted formatting.

@avdg81 avdg81 enabled auto-merge (squash) January 13, 2025 14:11
@avdg81 avdg81 merged commit 37d3e03 into master Jan 13, 2025
11 checks passed
@avdg81 avdg81 deleted the geo/fix-some-minor-issues branch January 13, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup GeoMechanics Issues related to the GeoMechanicsApplication
Development

Successfully merging this pull request may close these issues.

2 participants