Skip to content

Commit 96bfc35

Browse files
format
1 parent 49d8119 commit 96bfc35

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/systems/nonlinear/initializesystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function generate_initializesystem(sys::ODESystem;
1919
u0 = Vector{Pair}(undef, 0)
2020

2121
eqs_diff = eqs[idxs_diff]
22-
diffmap = Dict(getfield.(eqs_diff,:lhs) .=> getfield.(eqs_diff,:rhs))
22+
diffmap = Dict(getfield.(eqs_diff, :lhs) .=> getfield.(eqs_diff, :rhs))
2323

2424
full_states = unique([sts; getfield.((observed(sys)), :lhs)])
2525
set_full_states = Set(full_states)

test/initializationsystem.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,9 @@ eqs = [D(D(x)) ~ σ * (y - x),
391391
sys = structural_simplify(sys)
392392

393393
u0 = [D(x) => 2.0,
394-
x => 1.0,
395-
D(y) => 0.0,
396-
z => 0.0]
394+
x => 1.0,
395+
D(y) => 0.0,
396+
z => 0.0]
397397

398398
p ==> 28.0,
399399
ρ => 10.0,
@@ -417,4 +417,4 @@ tspan = (0.0, 10.0)
417417

418418
prob = ODEProblem(simpsys, [D(x) => 0.0, y => 0.0], tspan, guesses = [x => 0.0])
419419
sol = solve(prob, Tsit5())
420-
@test sol[1] == [0.0,0.0]
420+
@test sol[1] == [0.0, 0.0]

0 commit comments

Comments
 (0)