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

avoiding division by zero in dyn topo pp #4241

Merged
merged 1 commit into from Jul 16, 2021

Conversation

cedrict
Copy link
Contributor

@cedrict cedrict commented Jul 15, 2021

If one is not careful in the choice of densities above the surface or below the CMB, the parameter delta_rho can end up being zero, leading to a division by zero. I have added two AssertThrow's to prevent this from happening.

@MFraters MFraters merged commit 1018e6e into geodynamics:master Jul 16, 2021
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.

None yet

3 participants