Skip to content

Commit

Permalink
Updated error messages to be more precise.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-kidger committed Aug 20, 2023
1 parent 5f1978d commit 104936a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions diffrax/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@
class RESULTS(metaclass=eqxi.ContainerMeta):
successful = ""
discrete_terminating_event_occurred = (
"Terminating solve because a discrete event occurred."
"Terminating differential equation solve because a discrete terminating event "
"occurred."
)
max_steps_reached = (
"The maximum number of solver steps was reached. Try increasing `max_steps`."
"The maximum number of steps was reached in the differential equation solver. "
"Try increasing `diffrax.diffeqsolve(..., max_steps=...)`."
)
dt_min_reached = (
"The minimum step size was reached in the differential equation solver."
)
dt_min_reached = "The minimum step size was reached."
implicit_divergence = "Implicit method diverged."
implicit_nonconvergence = (
"Implicit method did not converge within the required number of iterations."
Expand Down

0 comments on commit 104936a

Please sign in to comment.