Skip to content

Commit 6e5be63

Browse files
committed
Show system name in function hints also for extended fields
1 parent 349e9d5 commit 6e5be63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/systems/diffeqs/odesystem.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,12 @@ function Base.show(io::IO, mime::MIME"text/plain", sys::ODESystem; hint = true,
717717
invoke(Base.show, Tuple{typeof(io), typeof(mime), AbstractSystem},
718718
io, mime, sys; hint, bold)
719719

720+
name = nameof(sys)
721+
720722
# Print initialization equations (unique to ODESystems)
721723
nini = length(initialization_equations(sys))
722724
nini > 0 && printstyled(io, "\nInitialization equations ($nini):"; bold)
723-
nini > 0 && hint && print(io, " see initialization_equations(sys)")
725+
nini > 0 && hint && print(io, " see initialization_equations($name)")
724726

725727
return nothing
726728
end

0 commit comments

Comments
 (0)