Skip to content

Commit a477f43

Browse files
fix a few last tests
1 parent 8f2c780 commit a477f43

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/input_output_handling.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ model = ODESystem(eqs, t; systems = [torque, inertia1, inertia2, spring, damper]
131131
name = :name)
132132
model_outputs = [inertia1.w, inertia2.w, inertia1.phi, inertia2.phi]
133133
model_inputs = [torque.tau.u]
134-
matrices, ssys = linearize(model, model_inputs, model_outputs)
134+
matrices, ssys = linearize(model, model_inputs, model_outputs);
135135
@test length(ModelingToolkit.outputs(ssys)) == 4
136136

137137
if VERSION >= v"1.8" # :opaque_closure not supported before

test/state_selection.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ let
120120
@unpack supply_pipe, return_pipe = system
121121
sys = structural_simplify(system)
122122
u0 = [
123-
system.supply_pipe.v => 0.1, system.return_pipe.v => 0.1, D(supply_pipe.v) => 0.0,
123+
sys.supply_pipe.v => 0.1, sys.return_pipe.v => 0.1, D(supply_pipe.v) => 0.0,
124124
D(return_pipe.fluid_port_a.m) => 0.0,
125125
D(supply_pipe.fluid_port_a.m) => 0.0]
126126
prob1 = ODEProblem(sys, [], (0.0, 10.0), [], guesses = u0)
127127
prob2 = ODEProblem(sys, [], (0.0, 10.0), [], guesses = u0)
128-
prob3 = DAEProblem(sys, D.(unknowns(sys)) .=> 0.0, u0, (0.0, 10.0), [])
128+
prob3 = DAEProblem(sys, D.(unknowns(sys)) .=> 0.0, [], (0.0, 10.0), guesses = u0)
129129
@test solve(prob1, FBDF()).retcode == ReturnCode.Success
130130
#@test solve(prob2, FBDF()).retcode == ReturnCode.Success
131131
@test solve(prob3, DFBDF()).retcode == ReturnCode.Success

0 commit comments

Comments
 (0)