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

dp_limit and small matrix elements #159

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

nicolasbrughmans
Copy link
Contributor

@nicolasbrughmans nicolasbrughmans commented Jun 6, 2024

PR description

The dp_limit that determines the tolerance for near-zero numbers has been lowered to 5e-16, which improves the numerical stability of some equilibria and produces less spurious modes. Additionally, matrix elements are now explicitly set to zero is they are below this limit, which can occur when two equal but opposite numbers get added in a matrix element.

Bugfixes

Legolas
Issues with the gravito_acoustic, gravito_mhd and interchange_modes spectra for resolution higher than 50 have now been resolved.

Checklist

  • all tests pass (and for new features, new tests are added)
  • documentation has been updated (if applicable)

@nicolasbrughmans
Copy link
Contributor Author

nicolasbrughmans commented Jun 7, 2024

Testing now uses numpy 2.0 (which has not yet been released?!) so some tests failed because of that.

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