Skip to content

Commit 2918b2d

Browse files
committed
Bug fix for Pleides Problem
1 parent 567187c commit 2918b2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ode/ode_simple_nonlinear_prob.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ pleiades = (du,u,p,t) -> begin
175175
w = view(u,22:28) # y′
176176
du[1:7] .= v
177177
du[8:14].= w
178-
for i in 14:21
178+
for i in 14:28
179179
du[i] = zero(eltype(u))
180180
end
181181
for i=1:7,j=1:7
@@ -241,6 +241,7 @@ Usually solved from 0 to 3.
241241
prob_ode_pleiades = ODEProblem(pleiades,[3.0,3.0,-1.0,-3.0,2.0,-2.0,2.0,3.0,-3.0,2.0,0,0,-4.0,4.0,0,0,0,0,0,1.75,-1.5,0,0,0,-1.25,1,0,0],(0.0,3.0))
242242

243243

244+
244245
srand(100)
245246
const mm_A = rand(4,4)
246247
mm_linear = function (du,u,p,t)

0 commit comments

Comments
 (0)