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

Dense output documentation #9

Open
Nicholaswogan opened this issue May 4, 2022 · 3 comments
Open

Dense output documentation #9

Nicholaswogan opened this issue May 4, 2022 · 3 comments

Comments

@Nicholaswogan
Copy link

Can you add some more documentation for how to use dense output? Suppose I want to integrate and ODE, and determine the solutions at times [1.0, 2.0, 3.0, 4.0, 5.0, 6.0]. How could this be achieved using dense output interpolation?

Right now I am calling the integrate function, 6 different times to get the solutions at my six desired time points. But I think this is pretty inefficient because, the integrator step size appears to restart every time I call integrate.

@jacobwilliams
Copy link
Owner

There's a better way to do it. You have to use the solout function. I can try to make a simple example...

@Nicholaswogan
Copy link
Author

Nicholaswogan commented May 12, 2022

BTW, I've made a speedy python wrapper to this package: https://github.com/Nicholaswogan/numblsoda

My hope is to make a Python interface to a explicit ODE solver which compares similarly to Julia's explicit methods.

Currently the wrapper is repeated calling integrate, instead of using dense output.

@Nicholaswogan
Copy link
Author

I figured out how to do the dense output stuff: https://github.com/Nicholaswogan/numblsoda/blob/main/src/dop853_c_interface.f90

An example would still be nice for documentation purposes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants