How-to: understand ponio::time_iterator#
After create a ponio::solver_range with ponio::make_solver_range() as:
24 auto sol_range = ponio::make_solver_range( f, ponio::runge_kutta::rk_33(), y0, { 0., 2.0 }, dt );
you want to create a ponio::time_iterator to loop over the solver_range
25 auto it_sol = sol_range.begin();
26
27 while ( it_sol->time < 2.0 )
28 {
29 obs( it_sol->time, it_sol->state, it_sol->time_step );
30 ++it_sol;
31 }
The it_sol object has the following structure
Summarize of time_iterator class#
See also
The full example can be found in how_to_solver_range.cpp.