Skip to content

Commit 7591373

Browse files
add ambiguity fixes
1 parent 7faf148 commit 7591373

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ModelingToolkit"
22
uuid = "961ee093-0014-501f-94e3-6117800e7a78"
33
authors = ["Chris Rackauckas <[email protected]>"]
4-
version = "1.2.1"
4+
version = "1.2.2"
55

66
[deps]
77
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"

Diff for: src/differentials.jl

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ for (modu, fun, arity) ∈ DiffRules.diffrules()
110110
end
111111

112112
derivative(::typeof(+), args::NTuple{T,Operation}, ::Val{i}) where {T,i} = args[i]
113+
derivative(::typeof(+), args::Tuple{Operation,Operation}, ::Val{1}) = args[1]
114+
derivative(::typeof(+), args::Tuple{Operation,Operation}, ::Val{2}) = args[2]
113115

114116
function count_order(x)
115117
@assert !(x isa Symbol) "The variable $x must have an order of differentiation that is greater or equal to 1!"

0 commit comments

Comments
 (0)