Skip to content

Commit f27c814

Browse files
Merge branch 'master' into vk-enable-remake-for-opt-problem
2 parents defb189 + 48ac4f3 commit f27c814

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ModelingToolkit"
22
uuid = "961ee093-0014-501f-94e3-6117800e7a78"
33
authors = ["Yingbo Ma <[email protected]>", "Chris Rackauckas <[email protected]> and contributors"]
4-
version = "8.35.1"
4+
version = "8.35.2"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"

test/odesystem.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,11 @@ sys = structural_simplify(sys)
466466
prob = ODEProblem(sys, [], (0, 1.0))
467467
sol = solve(prob, Tsit5())
468468
@test sol[2x[1] + 3x[3] + norm(x)]
469-
2sol[x[1]] + 3sol[x[3]] + vec(mapslices(norm, hcat(sol[x]...), dims = 2))
470-
@test sol[x + [y, 2y, 3y]] sol[x] + [sol[y], 2sol[y], 3sol[y]]
469+
2sol[x[1]] + 3sol[x[3]] + sol[norm(x)]
470+
@test sol[x .+ [y, 2y, 3y]] map((x...) -> [x...],
471+
map((x, y) -> x[1] .+ y, sol[x], sol[y]),
472+
map((x, y) -> x[2] .+ 2y, sol[x], sol[y]),
473+
map((x, y) -> x[3] .+ 3y, sol[x], sol[y]))
471474

472475
# Mixed Difference Differential equations
473476
@parameters t a b c d

0 commit comments

Comments
 (0)