Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Rebased. This gives the same tolerances in ode23 and oderkf.
Browse files Browse the repository at this point in the history
  • Loading branch information
acroy committed Mar 4, 2014
1 parent e2bc69d commit fdff7e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ODE.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fdff7e1

Please sign in to comment.