12 #ifndef CT_INTEGRATOR_H 13 #define CT_INTEGRATOR_H 71 warn(
"setTolerances");
80 warn(
"setTolerances");
96 warn(
"setProblemType");
109 virtual void reinitialize(doublereal t0,
FuncEval& func) {
110 warn(
"reinitialize");
127 virtual doublereal
step(doublereal tout) {
163 warn(
"setMethodType");
168 warn(
"setInterator");
173 warn(
"setMaxStepSize");
178 warn(
"setMinStepSize");
183 warn(
"setMaxErrTestFails");
186 virtual void setMaxSteps(
int nmax) {
190 virtual void setBandwidth(
int N_Upper,
int N_Lower) {
191 warn(
"setBandwidth");
194 virtual int nSensParams() {
195 warn(
"nSensParams()");
199 virtual double sensitivity(
size_t k,
size_t p) {
206 void warn(
const std::string& msg)
const {
207 writelog(
">>>> Warning: method "+msg+
" of base class " 208 +
"Integrator called. Nothing done.\n");
213 Integrator* newIntegrator(
const std::string& itype);
Backward Differentiation.
virtual void setMaxStepSize(double hmax)
Set the maximum step size.
virtual void integrate(doublereal tout)
Integrate the system of equations.
virtual int nEquations() const
The number of equations.
virtual void setTolerances(doublereal reltol, doublereal abstol)
Set error tolerances.
void writelog(const std::string &fmt, const Args &... args)
Write a formatted message to the screen.
virtual void setTolerances(doublereal reltol, size_t n, doublereal *abstol)
Set error tolerances.
virtual ~Integrator()
Destructor.
virtual void setMaxOrder(int n)
Set the maximum integration order that will be used.
virtual int nEvals() const
The number of function evaluations.
This file contains definitions for utility functions and text for modules, inputfiles, logs, textlogs, (see Input File Handling, Diagnostic Output, and Writing messages to the screen).
virtual void initialize(doublereal t0, FuncEval &func)
Initialize the integrator for a new problem.
virtual void setProblemType(int probtype)
Set the problem type.
virtual doublereal * solution()
The current value of the solution of the system of equations.
virtual void setMinStepSize(double hmin)
Set the minimum step size.
Abstract base class for ODE system integrators.
Integrator()
Default Constructor.
virtual void setSensitivityTolerances(doublereal reltol, doublereal abstol)
Set the sensitivity error tolerances.
IterType
Specifies the method used for iteration.
virtual doublereal & solution(size_t k)
The current value of the solution of equation k.
virtual doublereal step(doublereal tout)
Integrate the system of equations.
virtual void setMaxErrTestFails(int n)
Set the maximum permissible number of error test failures.
Virtual base class for ODE right-hand-side function evaluators.
virtual void setIterator(IterType t)
Set the linear iterator.
Namespace for the Cantera kernel.
virtual void setMethod(MethodType t)
Set the solution method.
MethodType
Specifies the method used to integrate the system of equations.