We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f793c0b commit ffd8a5fCopy full SHA for ffd8a5f
test/constants.jl
@@ -1,6 +1,7 @@
1
using ModelingToolkit, OrdinaryDiffEq, Unitful
2
using Test
3
MT = ModelingToolkit
4
+UMT = ModelingToolkit.UnitfulUnitCheck
5
6
@constants a = 1
7
@test_throws MT.ArgumentError @constants b
@@ -25,7 +26,7 @@ simp = structural_simplify(sys)
25
26
27
#Constant with units
28
@constants β=1 [unit = u"m/s"]
-MT.get_unit(β)
29
+UMT.get_unit(β)
30
@test MT.isconstant(β)
31
@variables t [unit = u"s"] x(t) [unit = u"m"]
32
D = Differential(t)
0 commit comments