Skip to content

[GeoMechanicsApplication] Added a class that represents sigma and tau#14172

Merged
avdg81 merged 22 commits intomasterfrom
geo/add-sigma-and-tau
Feb 4, 2026
Merged

[GeoMechanicsApplication] Added a class that represents sigma and tau#14172
avdg81 merged 22 commits intomasterfrom
geo/add-sigma-and-tau

Conversation

@avdg81
Copy link
Contributor

@avdg81 avdg81 commented Feb 3, 2026

📝 Description
Added the class SigmaTau that represents $\sigma$ and $\tau$. With this class, we can be explicit about the intended stress invariant compared to, for instance, a Vector object. The class's interface is fairly minimal and has been covered by unit tests.

@avdg81 avdg81 requested a review from rfaasse February 3, 2026 09:26
@avdg81 avdg81 self-assigned this Feb 3, 2026
@avdg81 avdg81 requested a review from a team as a code owner February 3, 2026 09:26
@avdg81 avdg81 added the GeoMechanics Issues related to the GeoMechanicsApplication label Feb 3, 2026
@avdg81 avdg81 requested a review from WPK4FEM February 3, 2026 09:26
rfaasse
rfaasse previously approved these changes Feb 3, 2026
Copy link
Contributor

@rfaasse rfaasse left a comment

Choose a reason for hiding this comment

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

I don't have any blocking comments (only minor suggestions). Looks good to go!

@github-project-automation github-project-automation bot moved this from In progress to Reviewer approved in GeoMechanicsApplication (Deltares) Feb 3, 2026
WPK4FEM
WPK4FEM previously approved these changes Feb 3, 2026
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.

Dear Anne,
I do not have any major comments. Please teach me more about the unit testing.
Wijtze Pieter

- The `initializer_list` constructor won't be called with an empty list. In that case, the default constructor is preferred. Therefore, the `initializer_list` constructor shouldn't check for an empty list.
- Removed an accidentally duplicated line in one of the unit tests.
Marked three member functions `[[nodiscard]]`.
- Construction with an empty initializer list will call the default constructor. Moved the corresponding test code to the appropriate unit test. Also updated the test case name of the moved-from test.
- Removed a unit test that I could not get to skip correctly.
@avdg81 avdg81 dismissed stale reviews from WPK4FEM and rfaasse via a833b3a February 3, 2026 21:00
@avdg81 avdg81 requested review from WPK4FEM and rfaasse February 3, 2026 21:01
@avdg81
Copy link
Contributor Author

avdg81 commented Feb 3, 2026

@rfaasse and @WPK4FEM: thanks so much for your reviews. I've processed your suggestions. Please let me know if there's anything left for me to do. 👍

rfaasse
rfaasse previously approved these changes Feb 4, 2026
Copy link
Contributor

@rfaasse rfaasse left a comment

Choose a reason for hiding this comment

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

No further comments, ready to go!

}

private:
template <typename InputIt>
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice way of still sharing the implementation for initializer lists and vectors/Vectors!

WPK4FEM
WPK4FEM previously approved these changes Feb 4, 2026
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.

Good to go for me.

This should resolve an issue found by SonarQube.
@avdg81 avdg81 dismissed stale reviews from WPK4FEM and rfaasse via 099b2aa February 4, 2026 10:10
@avdg81 avdg81 requested review from WPK4FEM and rfaasse February 4, 2026 10:12
@avdg81
Copy link
Contributor Author

avdg81 commented Feb 4, 2026

Used the concept of a forward iterator to resolve an issue found by SonarQube.

@avdg81 avdg81 enabled auto-merge (squash) February 4, 2026 12:07
@avdg81 avdg81 merged commit 729606b into master Feb 4, 2026
10 checks passed
@avdg81 avdg81 deleted the geo/add-sigma-and-tau branch February 4, 2026 12:39
@github-project-automation github-project-automation bot moved this from Reviewer approved to Done in GeoMechanicsApplication (Deltares) Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GeoMechanics Issues related to the GeoMechanicsApplication

Development

Successfully merging this pull request may close these issues.

[GeoMechanicsApplication] Add a class that represents a sigma and tau vector

3 participants