0

I used scipy's solve_ivp to integrate large differential equations. Sometimes a message comes up: runtime warning overflow encountered....

But solve_ivp keeps on running.

Is there any way to stop solve_ivp as soon as this error comes up?

Thanks for any help!

  • So you want to turn warnings into errors: https://stackoverflow.com/questions/5644836/in-python-how-does-one-catch-warnings-as-if-they-were-exceptions – ev-br Jan 15 '23 at 08:24

0 Answers0