Skip to content

Commit 8a56f86

Browse files
committed
updates
1 parent 58febf1 commit 8a56f86

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Setfield = "0.7"
7373
SpecialFunctions = "0.7, 0.8, 0.9, 0.10, 1.0"
7474
StaticArrays = "0.10, 0.11, 0.12, 1.0"
7575
SymbolicUtils = "0.13.4, 0.15"
76-
Symbolics = "~3.2.0"
76+
Symbolics = "3.3.0"
7777
UnPack = "0.1, 1.0"
7878
Unitful = "1.1"
7979
julia = "1.2"

test/reduction.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ lorenz2 = lorenz(:lorenz2)
7272

7373
@named connected = ODESystem([s ~ a + lorenz1.x
7474
lorenz2.y ~ s
75-
lorenz1.F ~ lorenz2.u
76-
lorenz2.F ~ lorenz1.u], t, systems=[lorenz1, lorenz2])
75+
lorenz1.u ~ lorenz2.F
76+
lorenz2.u ~ lorenz1.F], t, systems=[lorenz1, lorenz2])
7777
@test length(Base.propertynames(connected)) == 10
7878
@test isequal((@nonamespace connected.lorenz1.x), x)
7979
__x = x
@@ -166,7 +166,7 @@ let
166166
@parameters k_P
167167
pc = ODESystem(Equation[u_c ~ k_P * y_c], t, name=:pc)
168168
connections = [
169-
ol.u ~ pc.u_c
169+
pc.u_c ~ ol.u
170170
pc.y_c ~ ol.y
171171
]
172172
@named connected = ODESystem(connections, t, systems=[ol, pc])
@@ -200,7 +200,7 @@ eqs = [
200200
]
201201
@named sys = NonlinearSystem(eqs, [u1, u2, u3], [p])
202202
reducedsys = structural_simplify(sys)
203-
@test observed(reducedsys) == [u1 ~ 0.5(u3 - p); u2 ~ u1]
203+
@test observed(reducedsys) == [u2 ~ 1//2 * (u3 - p); u1 ~ u2]
204204

205205
u0 = [
206206
u1 => 1

0 commit comments

Comments
 (0)