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 47
47
output = RealOutput ()
48
48
end
49
49
@parameters begin
50
- k, [description = " Constant output value of block" ]
50
+ k, [description = " Constant output value of block" , unit = u " V " ]
51
51
end
52
52
@equations begin
53
53
output. u ~ k
426
426
@test A. structure[:components ] == [[:cc , :C ]]
427
427
end
428
428
429
+ using ModelingToolkit: D_nounits
429
430
@testset " Event handling in MTKModel" begin
430
431
@mtkmodel M begin
431
432
@variables begin
434
435
z (t)
435
436
end
436
437
@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
440
441
end
441
442
@continuous_events begin
442
443
[x ~ 1.5 ] => [x ~ 5 , y ~ 1 ]
Original file line number Diff line number Diff line change 94
94
@safetestset " BifurcationKit Extension Test" include (" extensions/bifurcationkit.jl" )
95
95
end
96
96
end
97
-
98
- @safetestset " Model Parsing Test" include (" model_parsing.jl" )
You can’t perform that action at this time.
0 commit comments