Skip to content

Commit aa3b607

Browse files
Update src/systems/unit_check.jl
1 parent ca31b12 commit aa3b607

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
@@ -79,7 +79,7 @@ get_unit(x::SciMLBase.NullParameters) = unitless
7979
get_unit(op::typeof(instream), args) = get_unit(args[1])
8080

8181
function get_unit(op, args) # Fallback
82-
result = op(1 .* get_unit.(args)...)
82+
result = _oneunit(op(get_unit.(args)...))
8383
try
8484
get_unit(result)
8585
catch

0 commit comments

Comments
 (0)