Skip to content

Commit 2bc8879

Browse files
committed
Do it for AbstractSystem
1 parent bfd996d commit 2bc8879

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/systems/abstractsystem.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,6 +2116,8 @@ function n_expanded_connection_equations(sys::AbstractSystem)
21162116
nextras = n_outer_stream_variables + length(ceqs) + n_variable_connect_eqs
21172117
end
21182118

2119+
Base.show(io::IO, sys::AbstractSystem; kws...) = show(io, MIME"text/plain"(), sys; kws...)
2120+
21192121
function Base.show(
21202122
io::IO, mime::MIME"text/plain", sys::AbstractSystem; hint = true, bold = true)
21212123
limit = get(io, :limit, false) # if output should be limited,

src/systems/diffeqs/odesystem.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,8 +739,6 @@ function add_accumulations(sys::ODESystem, vars::Vector{<:Pair})
739739
@set! sys.defaults = merge(get_defaults(sys), Dict(a => 0.0 for a in avars))
740740
end
741741

742-
Base.show(io::IO, sys::ODESystem; kws...) = show(io, MIME"text/plain"(), sys; kws...)
743-
744742
function Base.show(io::IO, mime::MIME"text/plain", sys::ODESystem; hint = true, bold = true)
745743
# Print general AbstractSystem information
746744
invoke(Base.show, Tuple{typeof(io), typeof(mime), AbstractSystem},

0 commit comments

Comments
 (0)