When solving a system of ODEs with boost::odeint, I can have control of every iteration in time by using the stepper.do_step function. This way, I can store u(t).
I'm working on an algorithm that requires storing the k-vectors of an s-stage Runge-Kutta method at every time iteration. For example, for a RK4 I would need to store the values of k1,k2,k3 and k4.
Is there anyway I can obtain these values from the boost::odeint library? I don't think there is a built-in way to do this.
I tried searching around the generic_rk_algorithm.hpp for a way to change the library in some way . I found that at the do_step function, I want the de-referenced value of the F attribute of the calculate_stage structure, but Im not sure how to alter the code to obtain it.