Skip to content

Commit d8685f2

Browse files
authored
Merge pull request #1237 from SciML/myb/fix3
Fast checking
2 parents 9c71040 + 561731e commit d8685f2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ SciMLBase = "1.3"
7272
Setfield = "0.7"
7373
SpecialFunctions = "0.7, 0.8, 0.9, 0.10, 1.0"
7474
StaticArrays = "0.10, 0.11, 0.12, 1.0"
75-
SymbolicUtils = "0.12, 0.13"
75+
SymbolicUtils = "0.13.4"
7676
Symbolics = "3.1"
7777
UnPack = "0.1, 1.0"
7878
Unitful = "1.1"

src/systems/diffeqs/odesystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function ODESystem(
125125
Base.depwarn("`default_u0` and `default_p` are deprecated. Use `defaults` instead.", :ODESystem, force=true)
126126
end
127127
defaults = todict(defaults)
128-
defaults = Dict(value(k) => value(v) for (k, v) in pairs(defaults))
128+
defaults = Dict{Any,Any}(value(k) => value(v) for (k, v) in pairs(defaults))
129129

130130
iv′ = value(scalarize(iv))
131131
dvs′ = value.(scalarize(dvs))

src/systems/nonlinear/nonlinearsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function NonlinearSystem(eqs, states, ps;
8585
end
8686
jac = RefValue{Any}(Matrix{Num}(undef, 0, 0))
8787
defaults = todict(defaults)
88-
defaults = Dict(value(k) => value(v) for (k, v) in pairs(defaults))
88+
defaults = Dict{Any,Any}(value(k) => value(v) for (k, v) in pairs(defaults))
8989

9090
states = collect(states)
9191
states, ps = value.(states), value.(ps)

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function check_operator_variables(eq, op::Type, expr=eq.rhs)
216216
if operation(expr) isa op
217217
throw_invalid_operator(expr, eq, op)
218218
end
219-
foreach(expr -> check_operator_variables(eq, op, expr), arguments(expr))
219+
foreach(expr -> check_operator_variables(eq, op, expr), SymbolicUtils.unsorted_arguments(expr))
220220
end
221221

222222
isdifferential(expr) = istree(expr) && operation(expr) isa Differential

0 commit comments

Comments
 (0)