From fdff7e1f52b0cd363ba80e9c721624d86c3b18ee Mon Sep 17 00:00:00 2001 From: acroy Date: Tue, 4 Mar 2014 21:26:31 +0100 Subject: [PATCH] Rebased. This gives the same tolerances in ode23 and oderkf. --- src/ODE.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ODE.jl b/src/ODE.jl index b2193e1b..e2abe77d 100644 --- a/src/ODE.jl +++ b/src/ODE.jl @@ -231,7 +231,7 @@ function oderkf{T}(F::Function, tspan::AbstractVector, x0::AbstractVector{T}, p: # Compute the slopes by computing the k[:,j+1]'th column based on the previous k[:,1:j] columns # notes: k needs to end up as an Nxs, a is 7x6, which is s by (s-1), # s is the number of intermediate RK stages on [t (t+h)] (Dormand-Prince has s=7 stages) - if c[end] == 1 + if c[end] == 1 # Assign the last stage for x(k) as the first stage for computing x[k+1]. # This is part of the Dormand-Prince pair caveat. # k[:,7] has already been computed, so use it instead of recomputing it