Group Abstract Group Abstract

Message Boards Message Boards

Can one use WhenEvent to react to NDSolve failures?

Posted 2 months ago

Hello,

While using NDSolve for solving 1st order ODE systems, I sometimes experience failures signalled by messages such as, for example, "Repeated Convergence Test Failures". Is there any way to use WhenEvent command to detect any such failures and prevent NDSolve to crash but rather to stop the calculations in a controlled way, so that the results obtained before the failure are not lost?

Lesław

POSTED BY: Leslaw Bieniasz
POSTED BY: Michael Rogers
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard