Skip to content

Commit

Permalink
fix printing error
Browse files Browse the repository at this point in the history
MonteCarloProblem had a bad overload for its summary, and so it would error in the terminal even though it worked
  • Loading branch information
ChrisRackauckas committed Jun 9, 2017
1 parent b5f313b commit 6de0940
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/problems/problem_traits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,11 @@ function Base.println(io::IO,A::DEProblem)
end
Base.print(A::DEProblem) = print(STDOUT,A)
Base.println(A::DEProblem) = println(STDOUT,A)

Base.summary(prob::AbstractMonteCarloProblem) = string(DiffEqBase.parameterless_type(prob)," with problem ",DiffEqBase.parameterless_type(prob.prob))
function Base.show(io::IO, A::AbstractMonteCarloProblem)
println(io,summary(A))
end
function Base.display(io::IO, A::AbstractMonteCarloProblem)
println(io,summary(A))
end

0 comments on commit 6de0940

Please sign in to comment.