Skip to content

Commit

Permalink
add ambiguity fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Feb 7, 2020
1 parent 7faf148 commit 7591373
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ModelingToolkit"
uuid = "961ee093-0014-501f-94e3-6117800e7a78"
authors = ["Chris Rackauckas <[email protected]>"]
version = "1.2.1"
version = "1.2.2"

[deps]
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
Expand Down
2 changes: 2 additions & 0 deletions src/differentials.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ for (modu, fun, arity) ∈ DiffRules.diffrules()
end

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

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

0 comments on commit 7591373

Please sign in to comment.