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

Discard prisms with no volume or zero density #334

Merged
merged 4 commits into from
Aug 12, 2022
Merged

Conversation

santisoler
Copy link
Member

Discard null prisms before passing them to the forward modelling
functions. A null prism is the one that has either zero volume or zero
density. Since they don't contribute to the generated field, we can save
some computation time by discarding them.

Relevant issues/PRs:

Related to #65 (@aguspesce noticed some zero division errors when passing zero volume tesseroids to the forward model computation).

Discard null prisms before passing them to the forward modelling
functions. A null prism is the one that has either zero volume or zero
density. Since they don't contribute to the generated field, we can save
some computation time by discarding them.
@santisoler santisoler merged commit 68318a3 into main Aug 12, 2022
@santisoler santisoler deleted the ignore-null-prisms branch August 12, 2022 20:35
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.

1 participant