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

Prevent a particle from being assigned to two children #816

Merged
merged 1 commit into from Apr 10, 2016

Conversation

gassmoeller
Copy link
Member

Tiny bugfix that prevents a few tracers from being duplicated when transferred during adaptive mesh refinement. GeometryInfo::is_inside_unit_cell apparently returns true for two children, if the position is very close to their boundary. Now the particle is only inserted into one of the children.

@bangerth
Copy link
Contributor

Oh, awkward. The beauty of floating point arithmetic. ..

@bangerth bangerth merged commit 1e1a850 into geodynamics:master Apr 10, 2016
@gassmoeller gassmoeller deleted the fix_duplicated_particles branch October 17, 2016 20:09
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