Skip to content

Commit

Permalink
add seqs with available ODE integrators for benchm
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoGranstrom committed Aug 29, 2019
1 parent 6a474b4 commit cd8d77e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/numericalnim/ode.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ type
dtMin*: float
tStart*: float


const fixedODE* = @["heun2", "ralston2", "kutta3", "heun3", "ralston3", "ssprk3", "ralston4", "kutta4", "rk4"]
const adaptiveODE* = @["rk21", "bs32", "dopri54"]
const allODE* = fixedODE.concat(adaptiveODE)

proc newODEoptions*(dt = 1e-4, tol = 1e-4, dtMax = 1e-2, dtMin = 1e-8,
tStart = 0.0): ODEoptions =
Expand Down

0 comments on commit cd8d77e

Please sign in to comment.