39 virtual void eval(
double t,
double* y,
double* ydot,
double* p)=0;
58 virtual size_t neq()=0;
67 m_suppress_errors = suppress;
72 return m_suppress_errors;
93 bool m_suppress_errors;
Virtual base class for ODE right-hand-side function evaluators.
virtual void eval(double t, double *y, double *ydot, double *p)=0
Evaluate the right-hand-side function.
void suppressErrors(bool suppress)
Enable or disable suppression of errors when calling eval()
virtual size_t nparams()
Number of sensitivity parameters.
vector_fp m_sens_params
Values for the problem parameters for which sensitivities are computed This is the array which is per...
void clearErrors()
Clear any previously-stored suppressed errors.
std::vector< std::string > m_errors
Errors occuring during function evaluations.
bool suppressErrors() const
Get current state of error suppression.
virtual size_t neq()=0
Number of equations.
std::string getErrors() const
Return a string containing the text of any suppressed errors.
int eval_nothrow(double t, double *y, double *ydot)
Evaluate the right-hand side using return code to indicate status.
vector_fp m_paramScales
Scaling factors for each sensitivity parameter.
virtual void getState(double *y)
Fill in the vector y with the current state of the system.
An error indicating that an unimplemented function has been called.
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
This file contains definitions for utility functions and text for modules, inputfiles,...
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
Namespace for the Cantera kernel.