Skip to content

Validate dims of tesseroids + check for 0 volume#27

Merged
leouieda merged 2 commits intomasterfrom
tess-dimensions
May 23, 2017
Merged

Validate dims of tesseroids + check for 0 volume#27
leouieda merged 2 commits intomasterfrom
tess-dimensions

Conversation

@leouieda
Copy link
Owner

@leouieda leouieda commented May 23, 2017

Check if dimensions of the tesseroid were passed in the correct order
(fixes #23). This results in an error and the program terminates.

Also check if a tesseroid has zero volume (e.g., W == E, S == N, top ==
bottom). These tesseroids are now ignored (they don't contribute to
the gravitational effects). If not, they can cause infinite loops and
stack overflows during adaptive discretization.

leouieda added 2 commits May 22, 2017 18:28
Check if dimensions of the tesseroid were passed in the correct order
(fixes # 23). This results in an error and the program terminates.

Also check if a tesseroid has zero volume (e.g., W == E, S == N, top ==
bottom). These tesseroids are now ignored (they don't contribute to
the gravitational effects). If not, they can cause infinite loops and
stack overflows during adaptive discretization.
@leouieda leouieda merged commit 4f001ba into master May 23, 2017
@leouieda leouieda deleted the tess-dimensions branch May 23, 2017 04:56
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.

Validate dimensions of the input tesseroids

1 participant