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 244679d commit 480f6a4Copy full SHA for 480f6a4
src/systems/unit_check.jl
@@ -76,7 +76,7 @@ get_unit(x::SciMLBase.NullParameters) = unitless
76
get_unit(op::typeof(instream), args) = get_unit(args[1])
77
78
function get_unit(op, args) # Fallback
79
- unit_args = get_unit.(args)
+ result = oneunit(op(get_unit.(args)...))
80
try
81
result = op(unit_args...)
82
# For operations that return a unit directly, return oneunit to get the unit structure
0 commit comments