Skip to content

Commit fbd3e1f

Browse files
format
1 parent e61a0f9 commit fbd3e1f

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

test/initializationsystem.jl

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -339,21 +339,19 @@ tspan = (0.0, 100.0)
339339
using ModelingToolkit, OrdinaryDiffEq, Test
340340
using ModelingToolkit: t_nounits as t, D_nounits as D
341341

342-
function System(;name)
342+
function System(; name)
343343
vars = @variables begin
344-
dx(t), [guess=0]
345-
ddx(t), [guess=0]
344+
dx(t), [guess = 0]
345+
ddx(t), [guess = 0]
346346
end
347-
eqs = [
348-
D(dx) ~ ddx
349-
0 ~ ddx + dx + 1
350-
]
347+
eqs = [D(dx) ~ ddx
348+
0 ~ ddx + dx + 1]
351349
return ODESystem(eqs, t, vars, []; name)
352350
end
353351

354352
@mtkbuild sys = System()
355-
prob = ODEProblem(sys, [sys.dx => 1], (0,1)) # OK
356-
prob = ODEProblem(sys, [sys.ddx => -2], (0,1), guesses = [sys.dx => 1])
353+
prob = ODEProblem(sys, [sys.dx => 1], (0, 1)) # OK
354+
prob = ODEProblem(sys, [sys.ddx => -2], (0, 1), guesses = [sys.dx => 1])
357355
sol = solve(prob, Tsit5())
358356
@test SciMLBase.successful_retcode(sol)
359-
@test sol[1] == [1.0]
357+
@test sol[1] == [1.0]

0 commit comments

Comments
 (0)