Skip to content

Commit

Permalink
Merge pull request #2287 from SciML/dw/warnings
Browse files Browse the repository at this point in the history
Fix warnings due to name conflicts with OrdinaryDiffEq
  • Loading branch information
YingboMa authored Sep 28, 2023
2 parents 984c262 + 7d21fd5 commit 34d1853
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())
u = integ.u
end
end
Expand Down

2 comments on commit 34d1853

@devmotion
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/92416

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v8.71.1 -m "<description of version>" 34d1853f88bdba5de33f988ec197ab2651539de7
git push origin v8.71.1

Please sign in to comment.