Skip to content

Commit 862ac7d

Browse files
author
dd
committed
formatting
1 parent f635dd0 commit 862ac7d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/systems/abstractsystem.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,9 +1219,7 @@ function linearize(sys, lin_fun; t = 0.0, op = Dict(), allow_input_derivatives =
12191219
gzgx*f_x gzgx*f_z]
12201220
B = [f_u
12211221
zeros(nz, nu)]
1222-
C = [
1223-
h_x h_z
1224-
]
1222+
C = [h_x h_z]
12251223
Bs = -(gz \ g_u) # This equation differ from the cited paper, the paper is likely wrong since their equaiton leads to a dimension mismatch.
12261224
if !iszero(Bs)
12271225
if !allow_input_derivatives

test/root_equations.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ continuous_events = [[x ~ 0] => [vx ~ -vx]
225225
@named ball = ODESystem([D(x) ~ vx
226226
D(y) ~ vy
227227
D(vx) ~ -9.8
228-
D(vy) ~ -0.01vy;], t; continuous_events)
228+
D(vy) ~ -0.01vy], t; continuous_events)
229229

230230
ball = structural_simplify(ball)
231231

@@ -262,7 +262,7 @@ continuous_events = [
262262
@named ball = ODESystem([D(x) ~ vx
263263
D(y) ~ vy
264264
D(vx) ~ -1
265-
D(vy) ~ 0;], t; continuous_events)
265+
D(vy) ~ 0], t; continuous_events)
266266

267267
ball = structural_simplify(ball)
268268

0 commit comments

Comments
 (0)