Skip to content

Commit

Permalink
remove the warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jan 27, 2021
1 parent d2c5898 commit fa769d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SciMLBase"
uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
authors = ["Chris Rackauckas <[email protected]> and contributors"]
version = "1.1.0"
version = "1.1.1"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Expand Down
1 change: 0 additions & 1 deletion src/problems/problem_traits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ isinplace(prob::AbstractLinearProblem{bType,iip}) where {bType,iip} = iip
isinplace(prob::AbstractNonlinearProblem{uType,iip}) where {uType,iip} = iip
isinplace(prob::AbstractQuadratureProblem{iip}) where {iip} = iip
isinplace(prob::AbstractODEProblem{uType,tType,iip}) where {uType,tType,iip} = iip
isinplace(prob::AbstractSteadyStateProblem{uType,iip}) where {uType,iip} = iip
isinplace(prob::AbstractRODEProblem{uType,tType,iip,ND}) where {uType,tType,iip,ND} = iip
isinplace(prob::AbstractDDEProblem{uType,tType,lType,iip}) where {uType,tType,lType,iip} = iip
isinplace(prob::AbstractDAEProblem{uType,duType,tType,iip}) where {uType,duType,tType,iip} = iip
Expand Down
10 changes: 3 additions & 7 deletions src/problems/problem_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ function Base.show(io::IO, A::AbstractLinearProblem)
show(io, A.b)
end

Base.summary(prob::AbstractNonlinearProblem) = string(
Base.summary(prob::AbstractNonlinearProblem{uType,iip}) where {uType,iip} = string(
TYPE_COLOR, nameof(typeof(prob)),
NO_COLOR, " with uType ",
TYPE_COLOR, uType,
NO_COLOR, ". In-place: ",
TYPE_COLOR, isinplace(prob),
NO_COLOR)
Expand Down Expand Up @@ -66,7 +68,6 @@ function Base.show(io::IO, A::AbstractQuadratureProblem)
println(io,summary(A))
end

Base.summary(prob::AbstractSteadyStateProblem{uType,iip}) where {uType,iip} = string(nameof(typeof(prob))," with uType ",uType)
Base.summary(prob::AbstractNoiseProblem) = string(nameof(typeof(prob))," with WType ",typeof(prob.noise.W[1])," and tType ",typeof(prob.tspan[1]),". In-place: ",isinplace(prob))
function Base.show(io::IO, A::DEProblem)
println(io,summary(A))
Expand All @@ -93,11 +94,6 @@ function Base.show(io::IO, A::AbstractDAEProblem)
print(io,"du0: ")
show(io, A.du0)
end
function Base.show(io::IO, A::AbstractSteadyStateProblem)
println(io,summary(A))
print(io,"u0: ")
show(io, A.u0)
end

Base.summary(prob::AbstractEnsembleProblem) = string(
nameof(typeof(prob))," with problem ",nameof(typeof(prob.prob)))
Expand Down

0 comments on commit fa769d7

Please sign in to comment.