@@ -17,7 +17,8 @@ sol = solve(initprob)
17
17
@test SciMLBase. successful_retcode (sol)
18
18
@test maximum (abs .(sol[conditions])) < 1e-14
19
19
20
- @test_throws ModelingToolkit. ExtraVariablesSystemException ModelingToolkit. InitializationProblem (pend, 0.0 , [], [g => 1 ];
20
+ @test_throws ModelingToolkit. ExtraVariablesSystemException ModelingToolkit. InitializationProblem (
21
+ pend, 0.0 , [], [g => 1 ];
21
22
guesses = [ModelingToolkit. missing_variable_defaults (pend); x => 1 ; y => 0.2 ],
22
23
fully_determined = true )
23
24
@@ -55,7 +56,8 @@ sol = solve(prob.f.initializeprob)
55
56
sol = solve (prob, Rodas5P ())
56
57
@test maximum (abs .(sol[conditions][1 ])) < 1e-14
57
58
58
- @test_throws ModelingToolkit. ExtraVariablesSystemException ODEProblem (pend, [x => 1 ], (0.0 , 1.5 ), [g => 1 ],
59
+ @test_throws ModelingToolkit. ExtraVariablesSystemException ODEProblem (
60
+ pend, [x => 1 ], (0.0 , 1.5 ), [g => 1 ],
59
61
guesses = ModelingToolkit. missing_variable_defaults (pend),
60
62
fully_determined = true )
61
63
@@ -237,7 +239,8 @@ initsol = solve(initprob, reltol = 1e-12, abstol = 1e-12)
237
239
@test SciMLBase. successful_retcode (initsol)
238
240
@test maximum (abs .(initsol[conditions])) < 1e-14
239
241
240
- @test_throws ModelingToolkit. ExtraEquationsSystemException ModelingToolkit. InitializationProblem (sys, 0.0 , fully_determined = true )
242
+ @test_throws ModelingToolkit. ExtraEquationsSystemException ModelingToolkit. InitializationProblem (
243
+ sys, 0.0 , fully_determined = true )
241
244
242
245
allinit = unknowns (sys) .=> initsol[unknowns (sys)]
243
246
prob = ODEProblem (sys, allinit, (0 , 0.1 ))
@@ -249,7 +252,8 @@ sol = solve(prob, Rodas5P(), initializealg = BrownFullBasicInit())
249
252
prob = ODEProblem (sys, allinit, (0 , 0.1 ))
250
253
prob = ODEProblem (sys, [], (0 , 0.1 ), check = false )
251
254
252
- @test_throws ModelingToolkit. ExtraEquationsSystemException ODEProblem (sys, [], (0 , 0.1 ), fully_determined = true )
255
+ @test_throws ModelingToolkit. ExtraEquationsSystemException ODEProblem (
256
+ sys, [], (0 , 0.1 ), fully_determined = true )
253
257
254
258
sol = solve (prob, Rodas5P ())
255
259
# If initialized incorrectly, then it would be InitialFailure
0 commit comments