11 #ifndef CT_INTEGRATOR_H
12 #define CT_INTEGRATOR_H
75 warn(
"setTolerances");
84 warn(
"setTolerances");
100 warn(
"setProblemType");
113 virtual void reinitialize(doublereal t0,
FuncEval& func) {
114 warn(
"reinitialize");
131 virtual doublereal
step(doublereal tout) {
167 warn(
"setMethodType");
172 warn(
"setInterator");
177 warn(
"setMaxStepSize");
182 warn(
"setMinStepSize");
187 warn(
"setMaxErrTestFails");
190 virtual void setMaxSteps(
int nmax) {
194 virtual void setBandwidth(
int N_Upper,
int N_Lower) {
195 warn(
"setBandwidth");
198 virtual int nSensParams() {
199 warn(
"nSensParams()");
203 virtual double sensitivity(
size_t k,
size_t p) {
211 void warn(
const std::string& msg)
const {
212 writelog(
">>>> Warning: method "+msg+
" of base class "
213 +
"Integrator called. Nothing done.\n");
219 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.
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
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, HTML_logs (see Input File Handling, Diagnostic Output, Writing messages to the screen and Writing HTML Logfiles).
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.