Skip to content

Commit

Permalink
Fix warnings due to name conflicts with OrdinaryDiffEq
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion committed Sep 27, 2023
1 parent 1aa4806 commit 7d21fd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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 = ["Yingbo Ma <[email protected]>", "Chris Rackauckas <[email protected]> and contributors"]
version = "8.71.0"
version = "8.71.1"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
1 change: 1 addition & 0 deletions src/ModelingToolkit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ using PrecompileTools, Reexport
substituter, scalarize, getparent

import DiffEqBase: @add_kwonly
import OrdinaryDiffEq

import Graphs: SimpleDiGraph, add_edge!, incidence_matrix

Expand Down
3 changes: 1 addition & 2 deletions src/systems/abstractsystem.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using OrdinaryDiffEq
const SYSTEM_COUNT = Threads.Atomic{UInt}(0)

get_component_type(x::AbstractSystem) = get_gui_metadata(x).type
Expand Down Expand Up @@ -1293,7 +1292,7 @@ function linearization_function(sys::AbstractSystem, inputs,
residual = fun(u, p, t)
if norm(residual[alge_idxs]) > (eps(eltype(residual)))
prob = ODEProblem(fun, u, (t, t + 1), p)
integ = init(prob, Rodas5P())
integ = init(prob, OrdinaryDiffEq.Rodas5P())

Check warning on line 1295 in src/systems/abstractsystem.jl

View check run for this annotation

Codecov / codecov/patch

src/systems/abstractsystem.jl#L1295

Added line #L1295 was not covered by tests
u = integ.u
end
end
Expand Down

0 comments on commit 7d21fd5

Please sign in to comment.