Struct Discontinuity
Defined in File forwardproblem.h
Struct Documentation
-
struct Discontinuity
Data structure to store some state of a simulation at a discontinuity.
Public Functions
-
inline explicit Discontinuity(realtype const time, std::vector<int> const &root_info = std::vector<int>(), AmiVector const &x_pre = AmiVector(), AmiVector const &xdot_pre = AmiVector(), AmiVector const &x_post = AmiVector(), AmiVector const &xdot_post = AmiVector(), std::vector<realtype> const &h_pre = std::vector<realtype>(), std::vector<realtype> const &total_cl_pre = std::vector<realtype>(0))
Constructor.
- Parameters:
time –
root_info –
x_pre –
xdot_pre –
x_post –
xdot_post –
h_pre –
total_cl_pre –
Public Members
-
std::vector<int> root_info
Array of flags indicating which root has been found.
Array of length nr (ne) with the indices of the user functions gi found to have a root. For i = 0, …, nr: 1 or -1 if gi has a root, and = 0 if not. See CVodeGetRootInfo for details.
-
inline explicit Discontinuity(realtype const time, std::vector<int> const &root_info = std::vector<int>(), AmiVector const &x_pre = AmiVector(), AmiVector const &xdot_pre = AmiVector(), AmiVector const &x_post = AmiVector(), AmiVector const &xdot_post = AmiVector(), std::vector<realtype> const &h_pre = std::vector<realtype>(), std::vector<realtype> const &total_cl_pre = std::vector<realtype>(0))