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 e826e2e commit 4b3c91bCopy full SHA for 4b3c91b
ext/ModelingToolkitUnitfulExt.jl
@@ -84,7 +84,7 @@ const D_unitful = MT.Differential(t_unitful)
84
"""
85
Throw exception on invalid unit types, otherwise return argument.
86
87
-function screen_unit(result)
+function screen_unit(result::Unitful.AbstractQuantity)
88
result isa Unitful.Unitlike ||
89
throw(ValidationError("Unit must be a subtype of Unitful.Unitlike, not $(typeof(result))."))
90
result isa Unitful.ScalarUnits ||
0 commit comments