Skip to content

Commit f9069b1

Browse files
test: use new codegen in odesystem test
1 parent 8ce0eb2 commit f9069b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/odesystem.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ end
216216

217217
prob = ODEProblem(ODEFunction{false}(lotka), [1.0, 1.0], (0.0, 1.0), [1.5, 1.0, 3.0, 1.0])
218218
de = complete(modelingtoolkitize(prob))
219-
ODEFunction(de)(similar(prob.u0), prob.u0, prob.p, 0.1)
219+
ODEFunction(de)(similar(prob.u0), prob.u0, (prob.p,), 0.1)
220220

221221
function lotka(du, u, p, t)
222222
x = u[1]
@@ -228,7 +228,7 @@ end
228228
prob = ODEProblem(lotka, [1.0, 1.0], (0.0, 1.0), [1.5, 1.0, 3.0, 1.0])
229229

230230
de = complete(modelingtoolkitize(prob))
231-
ODEFunction(de)(similar(prob.u0), prob.u0, prob.p, 0.1)
231+
ODEFunction(de)(similar(prob.u0), prob.u0, (prob.p,), 0.1)
232232

233233
# automatic unknown detection for DAEs
234234
@parameters k₁ k₂ k₃
@@ -1269,7 +1269,7 @@ end
12691269
t, [u..., x..., o...], [p...])
12701270
sys1, = structural_simplify(sys, ([x...], []))
12711271
fn1, = ModelingToolkit.generate_function(sys1; expression = Val{false})
1272-
@test_nowarn fn1(ones(4), 2ones(2), 3ones(2, 2), 4.0)
1272+
@test_nowarn fn1(ones(4), (2ones(2), 3ones(2, 2)), 4.0)
12731273
sys2, = structural_simplify(sys, ([x...], []); split = false)
12741274
fn2, = ModelingToolkit.generate_function(sys2; expression = Val{false})
12751275
@test_nowarn fn2(ones(4), 2ones(6), 4.0)

0 commit comments

Comments
 (0)