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

Loosen tolerance for particle interpolation limiter #5386

Merged
merged 1 commit into from Sep 12, 2023

Conversation

gassmoeller
Copy link
Member

I occasionally observe crashes with the particle limiter option that claim that the particle limiter did not succeed. I was finally able to track one down in the debugger and it seems that it only happens if the property to interpolate is essentially constant, and the tolerance is just barely exceeded (in my case 2e-9 instead of the 1e-9 tolerance we prescribe). This PR loosens the tolerance a bit (to around 2e-8) and binds it to the accuracy of the floating point number type used, which should hopefully take care of this.
Also improve the error output.

Copy link
Contributor

@jdannberg jdannberg 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 to me!

@jdannberg jdannberg merged commit 78a6728 into geodynamics:main Sep 12, 2023
7 checks passed
@gassmoeller gassmoeller deleted the loosen_limiter_tolerance branch September 13, 2023 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants