Skip to content

Commit 87a7f1d

Browse files
committed
New patch release
1 parent 726aff0 commit 87a7f1d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
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 = "4.3.0"
4+
version = "4.3.1"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

src/differentials.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,11 @@ function expand_derivatives(O::Term, simplify=true; occurances=nothing)
8989
else
9090
inner = expand_derivatives(D(o.args[1]), false)
9191
# if the inner expression is not expandable either, return
92-
operation(inner) isa Differential && return O
93-
return expand_derivatives(o.op(inner), simplify)
92+
if operation(inner) isa Differential
93+
return O
94+
else
95+
return expand_derivatives(o.op(inner), simplify)
96+
end
9497
end
9598
end
9699

0 commit comments

Comments
 (0)