Skip to content

Commit

Permalink
fix a few last tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Mar 1, 2024
1 parent 8f2c780 commit a477f43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/input_output_handling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ model = ODESystem(eqs, t; systems = [torque, inertia1, inertia2, spring, damper]
name = :name)
model_outputs = [inertia1.w, inertia2.w, inertia1.phi, inertia2.phi]
model_inputs = [torque.tau.u]
matrices, ssys = linearize(model, model_inputs, model_outputs)
matrices, ssys = linearize(model, model_inputs, model_outputs);
@test length(ModelingToolkit.outputs(ssys)) == 4

if VERSION >= v"1.8" # :opaque_closure not supported before
Expand Down
4 changes: 2 additions & 2 deletions test/state_selection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ let
@unpack supply_pipe, return_pipe = system
sys = structural_simplify(system)
u0 = [
system.supply_pipe.v => 0.1, system.return_pipe.v => 0.1, D(supply_pipe.v) => 0.0,
sys.supply_pipe.v => 0.1, sys.return_pipe.v => 0.1, D(supply_pipe.v) => 0.0,
D(return_pipe.fluid_port_a.m) => 0.0,
D(supply_pipe.fluid_port_a.m) => 0.0]
prob1 = ODEProblem(sys, [], (0.0, 10.0), [], guesses = u0)
prob2 = ODEProblem(sys, [], (0.0, 10.0), [], guesses = u0)
prob3 = DAEProblem(sys, D.(unknowns(sys)) .=> 0.0, u0, (0.0, 10.0), [])
prob3 = DAEProblem(sys, D.(unknowns(sys)) .=> 0.0, [], (0.0, 10.0), guesses = u0)
@test solve(prob1, FBDF()).retcode == ReturnCode.Success
#@test solve(prob2, FBDF()).retcode == ReturnCode.Success
@test solve(prob3, DFBDF()).retcode == ReturnCode.Success
Expand Down

0 comments on commit a477f43

Please sign in to comment.