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] Fixed a bug and removed some duplicated code #11750

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

avdg81
Copy link
Contributor

@avdg81 avdg81 commented Nov 2, 2023

📝 Description

  • Pass the correct model part to ApplyNormalLoadTableProcess. In the settlement work flow, when creating an ApplyNormalLoadTableProcess object, we mistakenly passed it the main model part rather than the model part that is defined in the process's settings. That has been corrected now.
  • Extracted a function that makes process creators. By extracting a function that produces process creators, we have removed some duplicated code.

- Pass the correct model part to `ApplyNormalLoadTableProcess`. In the
  settlement work flow, when creating an `ApplyNormalLoadTableProcess`
  object, we mistakenly passed it the main model part rather than the
  model part that is defined in the process's settings. That has been
  corrected now.
- Extracted a function that makes process creators. By extracting a
  function that produces process creators, we have removed some
  duplicated code.
@avdg81 avdg81 added Bugfix GeoMechanics Issues related to the GeoMechanicsApplication labels Nov 2, 2023
@avdg81 avdg81 self-assigned this Nov 2, 2023
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.

Looks good, nicely consistent and less duplication! No comments from my side!

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.

Consistent. However, I think that the new MakeCreatorFor is so generic that it will find a place outside dgeosettlement for reuse in other workflows when those will be refactored or created.

@avdg81 avdg81 merged commit e43136c into master Nov 2, 2023
9 of 11 checks passed
@avdg81 avdg81 deleted the geo/fix-model-part-of-normal-load branch November 2, 2023 14:57
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants