Skip to content

Add t_eval to solve_ivp

Jared Lewis requested to merge timesteps into main

Description

Adds the optional parameter solve_ivp which returns the IVP evaluated at a set of time steps (t_eval)

e.g.

call solve_ivp(solver, exponential_decay, &
    t0=0D0, &
    y0=(/2D0, 4D0, 8D0/), &
    t_max=20D0, &
    t_eval=(/5D0, 10D0, 15D0, 20D0/), &
    result=result &
)

result will now contain information for 4 timesteps (5, 10, 15, 20).

Merge Request Steps

Please confirm that this pull request has done the following:

  • Tests added
  • Documentation added (where applicable)
  • Changelog item added to changelog/.
Edited by Jared Lewis

Merge request reports