69 warn(
"setTolerances");
78 warn(
"setTolerances");
99 "To be removed. Set linear solver type with setLinearSolverType");
100 warn(
"setProblemType");
108 warn(
"setLinearSolverType");
153 warn(
"linearSolverType");
167 virtual void reinitialize(
double t0,
FuncEval& func) {
168 warn(
"reinitialize");
185 virtual double step(
double tout) {
226 virtual int maxOrder()
const {
238 warn(
"setMethodType");
243 warn(
"setMaxStepSize");
248 warn(
"setMinStepSize");
253 warn(
"setMaxErrTestFails");
271 virtual void setBandwidth(
int N_Upper,
int N_Lower) {
272 warn(
"setBandwidth");
275 virtual int nSensParams() {
276 warn(
"nSensParams()");
280 virtual double sensitivity(
size_t k,
size_t p) {
292 virtual int maxNonlinIterations()
const {
293 warn(
"maxNonlinIterations");
296 virtual void setMaxNonlinIterations(
int n) {
297 warn(
"setMaxNonlinIterations");
300 virtual int maxNonlinConvFailures()
const {
301 warn(
"maxNonlinConvFailures");
304 virtual void setMaxNonlinConvFailures(
int n) {
305 warn(
"setMaxNonlinConvFailures");
308 virtual bool algebraicInErrorTest()
const {
309 warn(
"algebraicInErrorTest");
312 virtual void includeAlgebraicInErrorTest(
bool yesno) {
313 warn(
"includeAlgebraicInErrorTest");
327 void warn(
const string& msg)
const {
328 writelog(
">>>> Warning: method "+msg+
" of base class "
329 +
"Integrator called. Nothing done.\n");
Declarations for the class PreconditionerBase which is a virtual base class for preconditioning syste...
A map of string keys to values whose type can vary at runtime.
Base class for exceptions thrown by Cantera classes.
Virtual base class for ODE/DAE right-hand-side function evaluators.
Abstract base class for ODE system integrators.
virtual void setMaxStepSize(double hmax)
Set the maximum step size.
virtual void setTolerances(double reltol, size_t n, double *abstol)
Set error tolerances.
virtual void setMaxSteps(int nmax)
Set the maximum number of time-steps the integrator can take before reaching the next output time.
virtual void setProblemType(int probtype)
Set the problem type.
virtual int maxSteps()
Returns the maximum number of time-steps the integrator can take before reaching the next output time...
virtual shared_ptr< PreconditionerBase > preconditioner()
Return preconditioner reference to object.
virtual void setPreconditioner(shared_ptr< PreconditionerBase > preconditioner)
Set preconditioner used by the linear solver.
shared_ptr< PreconditionerBase > m_preconditioner
Pointer to preconditioner object used in integration which is set by setPreconditioner and initialize...
Integrator()
Default Constructor.
virtual void setMaxErrTestFails(int n)
Set the maximum permissible number of error test failures.
virtual double * derivative(double tout, int n)
n-th derivative of the output function at time tout.
virtual AnyMap solverStats() const
Get solver stats from integrator.
virtual void initialize(double t0, FuncEval &func)
Initialize the integrator for a new problem.
virtual void setLinearSolverType(const string &linSolverType)
Set the linear solver type.
virtual PreconditionerSide preconditionerSide()
Return the side of the system on which the preconditioner is applied.
virtual void setTolerances(double reltol, double abstol)
Set error tolerances.
virtual void setMinStepSize(double hmin)
Set the minimum step size.
virtual double step(double tout)
Integrate the system of equations.
virtual void setSensitivityTolerances(double reltol, double abstol)
Set the sensitivity error tolerances.
virtual string linearSolverType() const
Return the integrator problem type.
virtual void integrate(double tout)
Integrate the system of equations.
PreconditionerSide m_prec_side
Type of preconditioning used in applyOptions.
virtual int lastOrder() const
Order used during the last solution step.
virtual int nEvals() const
The number of function evaluations.
virtual int nEquations() const
The number of equations.
virtual double * solution()
The current value of the solution of the system of equations.
virtual ~Integrator()
Destructor.
virtual void setMethod(MethodType t)
Set the solution method.
virtual void preconditionerSolve(size_t stateSize, double *rhs, double *output)
Solve a linear system Ax=b where A is the preconditioner.
virtual double & solution(size_t k)
The current value of the solution of equation k.
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 and logging,...
void writelog(const string &fmt, const Args &... args)
Write a formatted message to the screen.
Integrator * newIntegrator(const string &itype)
Create new Integrator object.
Namespace for the Cantera kernel.
MethodType
Specifies the method used to integrate the system of equations.
@ BDF_Method
Backward Differentiation.
PreconditionerSide
Specifies the side of the system on which the preconditioner is applied.
@ LEFT_PRECONDITION
No preconditioning.
@ BOTH_PRECONDITION
Right side preconditioning.
@ RIGHT_PRECONDITION
Left side preconditioning.
void warn_deprecated(const string &source, const AnyBase &node, const string &message)
A deprecation warning for syntax in an input file.
IterType
Specifies the method used for iteration.
@ Functional_Iter
Functional Iteration.
@ Newton_Iter
Newton Iteration.