File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 4747 output = RealOutput ()
4848 end
4949 @parameters begin
50- k, [description = " Constant output value of block" ]
50+ k, [description = " Constant output value of block" , unit = u " V " ]
5151 end
5252 @equations begin
5353 output. u ~ k
426426 @test A. structure[:components ] == [[:cc , :C ]]
427427end
428428
429+ using ModelingToolkit: D_nounits
429430@testset " Event handling in MTKModel" begin
430431 @mtkmodel M begin
431432 @variables begin
434435 z (t)
435436 end
436437 @equations begin
437- x ~ - D (x)
438- D (y) ~ 0
439- D (z) ~ 0
438+ x ~ - D_nounits (x)
439+ D_nounits (y) ~ 0
440+ D_nounits (z) ~ 0
440441 end
441442 @continuous_events begin
442443 [x ~ 1.5 ] => [x ~ 5 , y ~ 1 ]
Original file line number Diff line number Diff line change 9494 @safetestset " BifurcationKit Extension Test" include (" extensions/bifurcationkit.jl" )
9595 end
9696end
97-
98- @safetestset " Model Parsing Test" include (" model_parsing.jl" )
You can’t perform that action at this time.
0 commit comments