Skip to content

Commit d4c430e

Browse files
test: fix initializesystem tests
Problems initialize to the same values, retcode changes
1 parent ef878c3 commit d4c430e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/initializationsystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,13 @@ allinit = unknowns(sys) .=> initsol[unknowns(sys)]
229229
prob = ODEProblem(sys, allinit, (0, 0.1))
230230
sol = solve(prob, Rodas5P(), initializealg = BrownFullBasicInit())
231231
# If initialized incorrectly, then it would be InitialFailure
232-
@test sol.retcode == SciMLBase.ReturnCode.Unstable
232+
@test sol.retcode == SciMLBase.ReturnCode.MaxIters
233233
@test maximum(abs.(initsol[conditions][1])) < 1e-14
234234

235235
prob = ODEProblem(sys, [], (0, 0.1), check = false)
236236
sol = solve(prob, Rodas5P())
237237
# If initialized incorrectly, then it would be InitialFailure
238-
@test sol.retcode == SciMLBase.ReturnCode.Unstable
238+
@test sol.retcode == SciMLBase.ReturnCode.MaxIters
239239
@test maximum(abs.(initsol[conditions][1])) < 1e-14
240240

241241
@connector Flange begin

0 commit comments

Comments
 (0)