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

Implement the LSODA ODE solver in place of RK4 #186

Open
Nicholaswogan opened this issue Jul 13, 2021 · 1 comment
Open

Implement the LSODA ODE solver in place of RK4 #186

Nicholaswogan opened this issue Jul 13, 2021 · 1 comment

Comments

@Nicholaswogan
Copy link

VPLanet would probably be ~10x faster, and a more flexible if it used a production quality ODE solver. I think LSODA (this is link to C version) is a good option. It automatically detects stiff ODEs, and will switch methods to be as efficient as possible. This would allow VPlanet to implement modules with stiff ODEs, like chemical reactions in the atmosphere. It looks like the POISE module already introduces stiff ODEs, which RK4 has a hard time dealing with.

@RoryBarnes
Copy link
Collaborator

Thanks for the suggestion, Nick! The current solver is pretty basic and doesn't handle large disparities in timescales for ODEs, so this method could be a great option for improving speed.

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

No branches or pull requests

2 participants