Skip to content

Commit

Permalink
comment out deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
vpuri3 committed Jul 2, 2023
1 parent 8f2661e commit ef2411d
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/SciMLBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -551,23 +551,23 @@ $(TYPEDEF)
"""
abstract type AbstractSensitivitySolution{T, N, S} <: AbstractTimeseriesSolution{T, N, S} end

# Misc
# TODO - deprecate AbstractDiffEqOperator family
"""
$(TYPEDEF)
"""
abstract type AbstractDiffEqOperator{T} <: AbstractSciMLOperator{T} end

"""
$(TYPEDEF)
"""
abstract type AbstractDiffEqLinearOperator{T} <: AbstractDiffEqOperator{T} end

"""
$(TYPEDEF)
"""
abstract type AbstractDiffEqCompositeOperator{T} <: AbstractDiffEqLinearOperator{T} end

# # Misc
# # TODO - deprecate AbstractDiffEqOperator family
# """
# $(TYPEDEF)
# """
# abstract type AbstractDiffEqOperator{T} <: AbstractSciMLOperator{T} end
#
# """
# $(TYPEDEF)
# """
# abstract type AbstractDiffEqLinearOperator{T} <: AbstractDiffEqOperator{T} end
#
# """
# $(TYPEDEF)
# """
# abstract type AbstractDiffEqCompositeOperator{T} <: AbstractDiffEqLinearOperator{T} end
#
"""
$(TYPEDEF)
Expand Down Expand Up @@ -668,10 +668,10 @@ $(TYPEDEF)
abstract type AbstractParameterizedFunction{iip} <: AbstractODEFunction{iip} end

include("retcodes.jl")
include("operators/operators.jl")
include("operators/basic_operators.jl")
include("operators/diffeq_operator.jl")
include("operators/common_defaults.jl")
# include("operators/operators.jl")
# include("operators/basic_operators.jl")
# include("operators/diffeq_operator.jl")
# include("operators/common_defaults.jl")
include("symbolic_utils.jl")
include("performance_warnings.jl")

Expand Down
66 changes: 66 additions & 0 deletions src/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,69 @@ const SciMLSolution = AbstractSciMLSolution

# Deprecated `destats`
@deprecate has_destats(x) has_stats(x) false

# Deprecated operator interface
const AbstractDiffEqOperator = AbstractSciMLOperator
const AbstractDiffEqLinearOperator = AbstractSciMLOperator
const AbstractDiffEqCompositeOperator = AbstractSciMLOperator

const DiffEqScaledOperator = ScaledOperator

#=
function DiffEqScaledOperator(args...; kwargs...)
@warn "SciMLBase.DiffEqScaledOperator is deprecated.
Use SciMLOperators.ScaledOperator instead"
ScaledOperator(args...; kwargs...)
end
const FactorizedDiffEqArrayOperator = InvertedOperator
function FactorizedDiffEqArrayOperator(args...; kwargs...)
@warn "SciMLBase.FactorizedDiffEqArrayOperator is deprecated.
Use SciMLOperators.InvertedOperator instead"
InvertedOperator(args...; kwargs...)
end
const DiffEqIdentity = IdentityOperator
function DiffEqIdentity(u)
@warn "SciMLBase.DiffEqIdentity is deprecated.
Use SciMLOperators.IdentityOperator instead"
IdentityOperator{size(u, 1)}()
end
const DiffEqScalar = SciMLOperators.ScalarOperator
function DiffEqScalar(args...; kwargs...)
@warn "SciMLBase.DiffEqScalar is deprecated.
Use SciMLOperators.ScalarOperator instead"
ScalarOperator(args...; kwargs...)
end
const AffineDiffEqOperator = SciMLOperators.AffineOperator
function AffineDiffEqOperator{T}(As, bs, cache = nothing) where {T}
@warn "SciMLBase.AffineDiffEqOperator is deprecated.
Use SciMLOperators.AffineOperator instead"
bs = isempty(bs) ? (zeros(Bool, size(As[1], 1)),) : bs
all([size(a) == size(As[1]) for a in As]) || error("Operator sizes do not agree")
all([size(b) == size(bs[1]) for b in bs]) || error("Vector sizes do not agree")
A = AddedOperator(As)
b = sum(bs)
B = IdentityOperator{size(b, 1)}()
AffineOperator(A, B, b)
end
const DiffEqArrayOperator = SciMLOperators.MatrixOperator
function DiffEqArrayOperator(args...; kwargs...)
@warn "SciMLBase.DiffEqArrayOperator is deprecated.
Use SciMLOperators.MatrixOperator instead"
MatrixOperator(args...; kwargs...)
end
=#
#

0 comments on commit ef2411d

Please sign in to comment.