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

Adding other Runge-Kutta time integrators #23

Open
tbridel opened this issue Dec 1, 2022 · 2 comments
Open

Adding other Runge-Kutta time integrators #23

tbridel opened this issue Dec 1, 2022 · 2 comments

Comments

@tbridel
Copy link

tbridel commented Dec 1, 2022

Hye again !

Could you please share the steps one would have to take to add a new Runge-Kutta integrator to the project ?

I'm happy to implement it push a PR at some point, but I wanted to know if you had maybe a process that would make it easier to add a new Butcher-tableau based RK integrator ?

Thanks !
T. Bridel-Bertomeu

@Nicholaswogan
Copy link
Owner

I don't have a streamlined abstracted system for adding a RK integrator. My approach so far has been

  1. Find an integrator that exist on Github/internet written in Fortran, C, or C++
  2. Write some code in that language which has a c-interface, which is callable from Python (see here)
  3. Write some Python code which calls the functions from step 2 using c-types (see here)

So if you were to find an integrator more suitable to your application, you could follow this template to add it. a PR is welcome! thanks!

@tbridel
Copy link
Author

tbridel commented Dec 1, 2022

Thank you 👌 I'll will work on something and submit it for discussion.

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