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

tweak spock eos #614

Merged
merged 2 commits into from
Nov 26, 2024
Merged

tweak spock eos #614

merged 2 commits into from
Nov 26, 2024

Conversation

bobmyhill
Copy link
Member

@bobmyhill bobmyhill commented Nov 26, 2024

This PR replaces the upper incomplete gamma function used by SPOCK with the generalised incomplete gamma function, and replaces a==0 in the integer checking with np.abs(a) < 1.e-12. This improves performance.

The PR also improves the warnings raised by the equation of state for unexpected parameter values.

@bobmyhill bobmyhill merged commit 2a3a22c into geodynamics:main Nov 26, 2024
9 checks passed
@bobmyhill bobmyhill deleted the improve_spock branch November 26, 2024 11:31
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