File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 865
865
end
866
866
@discrete_events begin
867
867
[30 ] => [binary_valve_1. S ~ 0.0 , binary_valve_2. Δp ~ 0.0 ]
868
- [60 ] => [
869
- binary_valve_1. S ~ 1.0 , binary_valve_2. S ~ 0.0 , binary_valve_2. Δp ~ 1.0 ]
868
+ [60 ] => [binary_valve_1. S ~ 1.0 , binary_valve_2. Δp ~ 1.0 ]
870
869
[120 ] => [binary_valve_1. S ~ 0.0 , binary_valve_2. Δp ~ 0.0 ]
871
870
end
872
871
end
877
876
# Test Simulation
878
877
prob = ODEProblem (sys, [], (0.0 , 150.0 ))
879
878
sol = solve (prob)
879
+ # This is singular at the second event, but the derivatives are zero so it's
880
+ # constant after that point anyway. Just make sure it hits the last event and
881
+ # had the correct `u`.
882
+ @test_broken SciMLBase. successful_retcode (sol)
883
+ @test sol. t[end ] >= 120.0
880
884
@test sol[end ] == [0.0 , 0.0 , 0.0 ]
881
885
end
882
886
You can’t perform that action at this time.
0 commit comments