11 #ifndef CT_INTEGRATOR_H
12 #define CT_INTEGRATOR_H
74 warn(
"setTolerances");
83 warn(
"setTolerances");
99 warn(
"setProblemType");
112 virtual void reinitialize(doublereal t0,
FuncEval& func) {
113 warn(
"reinitialize");
130 virtual doublereal
step(doublereal tout) {
166 warn(
"setMethodType");
171 warn(
"setInterator");
176 warn(
"setMaxStepSize");
181 warn(
"setMinStepSize");
186 warn(
"setMaxErrTestFails");
189 virtual void setMaxSteps(
int nmax) {
193 virtual void setBandwidth(
int N_Upper,
int N_Lower) {
194 warn(
"setBandwidth");
197 virtual int nSensParams() {
198 warn(
"nSensParams()");
202 virtual double sensitivity(
size_t k,
size_t p) {
210 void warn(
const std::string& msg)
const {
211 writelog(
">>>> Warning: method "+msg+
" of base class "
212 +
"Integrator called. Nothing done.\n");
218 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 void setTolerances(doublereal reltol, doublereal abstol)
Set error tolerances.
virtual void setTolerances(doublereal reltol, size_t n, doublereal *abstol)
Set or reset the number of equations.
virtual ~Integrator()
Destructor.
virtual void setMaxOrder(int n)
Set the maximum integration order that will be used.
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 int nEvals() const
The number of function evaluations.
virtual void setSensitivityTolerances(doublereal reltol, doublereal abstol)
Set the sensitivity error tolerances.
IterType
Specifies the method used for iteration.
virtual int nEquations() const
The number of equations.
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.
void writelog(const std::string &msg)
Write a message to the screen.
virtual void setIterator(IterType t)
Set the linear iterator.
virtual void setMethod(MethodType t)
Set the solution method.
MethodType
Specifies the method used to integrate the system of equations.