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 85d119d commit 95f88efCopy full SHA for 95f88ef
ext/ModelingToolkitUnitfulExt.jl
@@ -20,7 +20,7 @@ function MT._get_unittype(u::Unitful.Unitlike)
20
return Val(:Unitful)
21
end
22
23
-MT._oneunit(x::Unitful.FreeUnits) = x(1)
+MT._oneunit(x::Unitful.FreeUnits) = 1 * x
24
25
# Base operations for mixing Symbolic and Unitful
26
Base.:*(x::Union{MT.Num, Symbolic}, y::Unitful.AbstractQuantity) = x * y
0 commit comments