Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hepap
Copy link
Collaborator

@hepap hepap commented Oct 14, 2025

Description

There was a seg fault when the geometric smoother was selected in the vof initial condition with a reinitialization method other than the geometric one. It was because the SignedDistanceSolver was only instantiated if the geometric reinitialization method was selected.

Solution

Add the instantiation of the SignedDistanceSolver if the geometric smoother is selected in the vof initial condition.

Testing

The segmentation fault doesn't happen anymore.

Documentation

No new parameters for now, but the documentation was updated to specify that the initial condition geometric smoother parameters are declares in the reinitialization method subsection.

Miscellaneous (will be removed when merged)

It's a quick fix, it's not ideal, but the parameters are not repeated.

Checklist (will be removed when merged)

See this page for more information about the pull request process.

Code related list:

  • All in-code documentation related to this PR is up to date (Doxygen format)
  • Copyright headers are present and up to date
  • Lethe documentation is up to date
  • Fix has unit test(s) (preferred) or application test(s), and restart files are in the generator folder
  • The branch is rebased onto master
  • Changelog (CHANGELOG.md) is up to date
  • Code is indented with indent-all and .prm files (examples and tests) with prm-indent

Pull request related list:

  • Labels are applied
  • There are at least 2 reviewers (or 1 if small feature) excluding the responsible for the merge
  • If this PR closes an issue or is related to a project, it is linked in the "Projects" or "Development" section
  • If the fix is temporary, an issue is opened
  • The PR description is cleaned and ready for merge

Copy link
Contributor

@blaisb blaisb left a comment

Choose a reason for hiding this comment

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

One small comment, otherwise good from my side :)

Copy link
Collaborator

@AmishgaAlphonius AmishgaAlphonius left a comment

Choose a reason for hiding this comment

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

Nice fix! Everything looks good to me :)

@blaisb blaisb force-pushed the fix_vof_initial_condition_geometric_smothing branch from a99650e to 939a88b Compare October 14, 2025 19:24
@blaisb blaisb merged commit bfd6f89 into master Oct 14, 2025
9 checks passed
@blaisb blaisb deleted the fix_vof_initial_condition_geometric_smothing branch October 14, 2025 19:24
OresteMarquis pushed a commit that referenced this pull request Oct 30, 2025
Description
There was a seg fault when the geometric smoother was selected in the vof initial condition with a reinitialization method other than the geometric one. It was because the SignedDistanceSolver was only instantiated if the geometric reinitialization method was selected.

Solution
Add the instantiation of the SignedDistanceSolver if the geometric smoother is selected in the vof initial condition.

Testing
The segmentation fault doesn't happen anymore.

Documentation
No new parameters for now, but the documentation was updated to specify that the initial condition geometric smoother parameters are declares in the reinitialization method subsection.



Co-authored-by: Bruno Blais <[email protected]>
OresteMarquis pushed a commit that referenced this pull request Oct 31, 2025
Description
There was a seg fault when the geometric smoother was selected in the vof initial condition with a reinitialization method other than the geometric one. It was because the SignedDistanceSolver was only instantiated if the geometric reinitialization method was selected.

Solution
Add the instantiation of the SignedDistanceSolver if the geometric smoother is selected in the vof initial condition.

Testing
The segmentation fault doesn't happen anymore.

Documentation
No new parameters for now, but the documentation was updated to specify that the initial condition geometric smoother parameters are declares in the reinitialization method subsection.



Co-authored-by: Bruno Blais <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants