Skip to content

Commit 480f6a4

Browse files
Update src/systems/unit_check.jl
1 parent 244679d commit 480f6a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/unit_check.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ get_unit(x::SciMLBase.NullParameters) = unitless
7676
get_unit(op::typeof(instream), args) = get_unit(args[1])
7777

7878
function get_unit(op, args) # Fallback
79-
unit_args = get_unit.(args)
79+
result = oneunit(op(get_unit.(args)...))
8080
try
8181
result = op(unit_args...)
8282
# For operations that return a unit directly, return oneunit to get the unit structure

0 commit comments

Comments
 (0)