Skip to content

Commit

Permalink
prep doc
Browse files Browse the repository at this point in the history
  • Loading branch information
s-m-e committed Apr 26, 2024
1 parent d9eac1e commit e4cba2e
Showing 1 changed file with 51 additions and 7 deletions.
58 changes: 51 additions & 7 deletions src/hapsira/core/math/ivp/_rkcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,51 @@
def dop853_init_hf(fun, t0, rr, vv, t_bound, argk, rtol, atol):
"""
Explicit Runge-Kutta method of order 8.
Functional re-write of constructor of class `DOP853` within `scipy.integrate`.
Based on
https://github.com/scipy/scipy/blob/4edfcaa3ce8a387450b6efce968572def71be089/scipy/integrate/_ivp/rk.py#L502
Parameters
----------
fun : float
Scalar
t0 : float
Scalar
rr : float
Scalar
vv : float
Scalar
t_bound : float
Scalar
argk : float
Scalar
rtol : float
Scalar
atol : float
Scalar
Returns
-------
t0
rr
vv
t_bound
fun, # 4
argk, # 5
rtol, # 6
atol, # 7
direction, # 8
K, # 9
rr_old, # 10
vv_old, # 11
t_old, # 12
h_previous, # 13
status, # 14
fr, # 15
fv, # 16
h_abs, # 17
"""

assert atol >= 0
Expand Down Expand Up @@ -150,14 +195,13 @@ def dop853_step_hf(
fv,
h_abs,
):
"""Perform one integration step.
"""
Perform one integration step.
Functional re-write of method `step` of class `OdeSolver` within `scipy.integrate`.
Based on
https://github.com/scipy/scipy/blob/4edfcaa3ce8a387450b6efce968572def71be089/scipy/integrate/_ivp/base.py#L175
Returns
-------
message : string or None
Report from the solver. Typically a reason for a failure if
`self.status` is 'failed' after the step was taken or None
otherwise.
"""

if status != DOP853_RUNNING:
Expand Down

0 comments on commit e4cba2e

Please sign in to comment.