Skip to content

Commit 9662d08

Browse files
Merge pull request #2681 from SciML/ChrisRackauckas-patch-8
Test fixing
2 parents 58e9215 + de2a5dc commit 9662d08

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/interface/dae_initialize_integration.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
using ModelingToolkit, OrdinaryDiffEq, NonlinearSolve, Test
2+
using ModelingToolkit: D_nounits as D, t_nounits as t
23

3-
@parameters t g e b
4+
@parameters g e b
45
@variables v(t) w(t) F(t)
5-
@derivatives D' ~ t
66
single_neuron_eqs = [
77
D(v) ~ min(max(-2 - v, v), 2 - v) - w + F, # add the flux term
88
D(w) ~ e * (v - g * w + b)
99
]
1010
n1 = ODESystem(single_neuron_eqs, t, [v, w, F], [g, e, b], name = :n1)
1111
n2 = ODESystem(single_neuron_eqs, t, [v, w, F], [g, e, b], name = :n2)
12-
@parameters D Dk
13-
connections = [0 ~ n1.F - D * Dk * max(n1.v - n2.v, 0)
14-
0 ~ n2.F - D * max(n2.v - n1.v, 0)]
15-
connected = ODESystem(connections, t, [], [D, Dk], systems = [n1, n2], name = :connected)
12+
@parameters Di Dk
13+
connections = [0 ~ n1.F - Di * Dk * max(n1.v - n2.v, 0)
14+
0 ~ n2.F - Di * max(n2.v - n1.v, 0)]
15+
connected = ODESystem(connections, t, [], [Di, Dk], systems = [n1, n2], name = :connected)
1616
connected = complete(connected)
1717

1818
u0 = [

0 commit comments

Comments
 (0)