Skip to content

Commit

Permalink
Fix ModelingToolkitStandardLibrary CI
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Oct 8, 2023
1 parent 325fb78 commit ab96fad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/systems/diffeqs/abstractodesystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,7 @@ function DiffEqBase.DAEProblem{iip}(sys::AbstractODESystem, du0map, u0map, tspan
f, du0, u0, p = process_DEProblem(DAEFunction{iip}, sys, u0map, parammap;
implicit_dae = true, du0map = du0map,
has_difference = has_difference, check_length,
tofloat = get(kwargs, :tofloat, true),
kwargs...)
diffvars = collect_differential_variables(sys)
sts = states(sys)
Expand Down
2 changes: 1 addition & 1 deletion test/state_selection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ let
D(supply_pipe.fluid_port_a.m) => 0.0]
prob1 = ODEProblem(sys, u0, (0.0, 10.0), [])
prob2 = ODAEProblem(sys, u0, (0.0, 10.0), [])
prob3 = DAEProblem(sys, D.(states(sys)) .=> 0.0, u0, (0.0, 10.0), [], tofloat = true)
prob3 = DAEProblem(sys, D.(states(sys)) .=> 0.0, u0, (0.0, 10.0), [])
@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 ab96fad

Please sign in to comment.