Skip to content

[GeoMechanicsApplication] Improvements for the nodal extrapolation process - #14068

Merged
avdg81 merged 3 commits into
masterfrom
geo/improvements-to-extrapolation-process
Dec 18, 2025
Merged

[GeoMechanicsApplication] Improvements for the nodal extrapolation process#14068
avdg81 merged 3 commits into
masterfrom
geo/improvements-to-extrapolation-process

Conversation

@avdg81

@avdg81 avdg81 commented Dec 16, 2025

Copy link
Copy Markdown
Contributor

📝 Description
This PR fixes a bug in the nodal extrapolation process where the number of provided model parts (even if they are empty) had an impact on the smoothed nodal values. In addition, the override of member Execute has been removed since it was used by unit tests only.

🆕 Changelog

  • Removed an inner loop over the provided model parts that should not have been there.
  • Added a unit test that demonstrates that if unrelated (empty) model parts are added to the "model_part_name_list", it no longer has an impact on the smoothed nodal values.
  • Removed member GeoExtrapolateIntegrationPointValuesToNodesProcess::Execute, since it was called by unit tests only. By explicitly stating which members are supposed to be called in which order, using the nodal extrapolation process has been documented more clearly by the unit tests.

It was causing some confusion of when it was being called. It turned out to be in unit tests only. Now the unit tests show more clearly how the process is supposed to be used.
For some unclear reason, an inner loop over model parts was added that shouldn't have been there. A unit test has been added to demonstrate that the fix works.
@avdg81 avdg81 self-assigned this Dec 16, 2025
@avdg81
avdg81 requested a review from a team as a code owner December 16, 2025 15:31
@avdg81 avdg81 added Bugfix GeoMechanics Issues related to the GeoMechanicsApplication labels Dec 16, 2025
WPK4FEM
WPK4FEM previously approved these changes Dec 16, 2025

@WPK4FEM WPK4FEM left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What I had to task was explained in person. Thank you.

@github-project-automation github-project-automation Bot moved this from In progress to Reviewer approved in GeoMechanicsApplication (Deltares) Dec 16, 2025
markelov208
markelov208 previously approved these changes Dec 17, 2025

@markelov208 markelov208 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi Anne, thank you very much for checking and fixing extrapolation. I have a non-blocking question.

In this way, we better adhere to the principle of having a single reason for failure. Also, it gives the impression that the code coverage is higher than it actually is.
@avdg81
avdg81 dismissed stale reviews from markelov208 and WPK4FEM via 2d489ac December 17, 2025 10:35

@markelov208 markelov208 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi Anne, thank you very much for addressing the review comments. I think the PR is ready to be merged.

@WPK4FEM WPK4FEM left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for the fix and following discussion.

@avdg81
avdg81 merged commit 50a53ba into master Dec 18, 2025
10 checks passed
@avdg81
avdg81 deleted the geo/improvements-to-extrapolation-process branch December 18, 2025 08:43
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in GeoMechanicsApplication (Deltares) Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bugfix GeoMechanics Issues related to the GeoMechanicsApplication

Development

Successfully merging this pull request may close these issues.

3 participants