differential_equations/control.rs
1//! Control flow for solving process. Control flags and data return from events, solout functions, etc.
2
3use crate::traits::CallBackData;
4
5/// Control flag for solver execution flow
6///
7/// ControlFlag is a command to the solver about how to proceed with integration.
8/// Used by both event functions and solout functions to control solver execution.
9///
10pub enum ControlFlag<D = String>
11where
12 D: CallBackData,
13{
14 /// Continue to next step
15 Continue,
16 /// Terminate solver with the given reason/data
17 Terminate(D),
18}