From cd8d77e870df71cc90a3cfc54cd528ec02c4e103 Mon Sep 17 00:00:00 2001 From: HugoGranstrom Date: Thu, 29 Aug 2019 17:57:54 +0200 Subject: [PATCH] add seqs with available ODE integrators for benchm --- src/numericalnim/ode.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/numericalnim/ode.nim b/src/numericalnim/ode.nim index 04b8637..f43169f 100644 --- a/src/numericalnim/ode.nim +++ b/src/numericalnim/ode.nim @@ -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 =