numerical-mathematics / extrapolation

Parallel extrapolation for ODEs
MIT License
6 stars 1 forks source link

Smoothing step does a function evaluation that could be reused #22

Open mcr222 opened 8 years ago

mcr222 commented 8 years ago

Smoothing step requires an extra function evaluation that remains unused. This function evaluation can be reused for interpolation (only symmetric, as non-symmetric only uses yj values) and for the next step function evaluation and Jacobian estimation (there is already code that reuses for the one step solver the function evaluation when it is done in the Jacobian estimation).

Functions to modify: _compute_stages

Code TODO comment (remove once issue is closed):

TODO: this f_yj_unused can be used in the case of interpolation, it should be adequately saved in

f_yj so function evaluations are not repeated.