I want to measure the performance of my own ODE integrator against SciPy RK45. Thus, I need to know exactly the number of right hand side function evaluations that RK45 uses.
Does anyone know if the number sol.nfev is accurate, i.e. without repititions? For example, if RK45 rejects a step size and repeats the step, is the initial evaluation f(t,x) of the step counted multiple times?
Also, the Dormand-Prince RK method used by RK45 has 7 stages, but in reality only uses 6 evaluations per step because of the "First Same As Last" property (the last stage is evaluated at the same point as the first stage of the next step). Is that accounted for in sol.nfev?