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

Fix bug in third order prism kernels #118

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

santisoler
Copy link
Member

Fix bug related to numerical instabilities on third order kernels kernel_iij, where i, j in {x, y, z}. Make use of the alternative definition of the kernels. These two different definition are not mathematically equal, but their difference depends solely on two of the three coordinates, therefore when evaluating the kernels on the prism boundaries that extra term gets cancelled out. This property makes these two different definitions equivalent in the purpose of forward modelling prism fields. Add tests that catch the bug and ensure that the new implementation works as expected. Update the docstrings.

Relevant issues/PRs:

The bug was reported by @AmziJeffs in simpeg/simpeg#1607

Update the math definition of all "iij" kernels and the expected values
in doctests.
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