CVodesIntegrator.h Source File#
CVodesIntegrator.h
Go to the documentation of this file.
A map of string keys to values whose type can vary at runtime.
Definition AnyMap.h:427
Wrapper class for 'cvodes' integrator from LLNL.
Definition CVodesIntegrator.h:27
double step(double tout) override
Integrate the system of equations.
Definition CVodesIntegrator.cpp:515
void setMaxStepSize(double hmax) override
Set the maximum step size.
Definition CVodesIntegrator.cpp:166
double * solution() override
The current value of the solution of the system of equations.
Definition CVodesIntegrator.cpp:121
void setMaxOrder(int n) override
Set the maximum integration order that will be used.
Definition CVodesIntegrator.h:50
bool m_sens_ok
Indicates whether the sensitivities stored in m_yS have been updated for at the current integrator ti...
Definition CVodesIntegrator.h:134
int maxSteps() override
Returns the maximum number of time-steps the integrator can take before reaching the next output time...
Definition CVodesIntegrator.cpp:190
void setLinearSolverType(const string &linSolverType) override
Set the linear solver type.
Definition CVodesIntegrator.h:60
void checkError(long flag, const string &ctMethod, const string &cvodesMethod) const
Check whether a CVODES method indicated an error.
Definition CVodesIntegrator.cpp:663
void setSensitivityTolerances(double reltol, double abstol) override
Set the sensitivity error tolerances.
Definition CVodesIntegrator.cpp:149
void applyOptions()
Applies user-specified options to the underlying CVODES solver.
Definition CVodesIntegrator.cpp:334
int lastOrder() const override
Order used during the last solution step.
Definition CVodesIntegrator.cpp:542
void setMinStepSize(double hmin) override
Set the minimum step size.
Definition CVodesIntegrator.cpp:174
void integrate(double tout) override
Integrate the system of equations.
Definition CVodesIntegrator.cpp:477
void setTolerances(double reltol, size_t n, double *abstol) override
Set error tolerances.
Definition CVodesIntegrator.cpp:126
double * derivative(double tout, int n) override
n-th derivative of the output function at time tout.
Definition CVodesIntegrator.cpp:535
void setMaxErrTestFails(int n) override
Set the maximum permissible number of error test failures.
Definition CVodesIntegrator.cpp:195
string linearSolverType() const override
Return the integrator problem type.
Definition CVodesIntegrator.h:63
void setMaxSteps(int nmax) override
Set the maximum number of time-steps the integrator can take before reaching the next output time.
Definition CVodesIntegrator.cpp:182
AnyMap solverStats() const override
Get solver stats from integrator.
Definition CVodesIntegrator.cpp:556
double m_tInteg
The latest time reached by the integrator. May be greater than m_time.
Definition CVodesIntegrator.h:108
void initialize(double t0, FuncEval &func) override
Initialize the integrator for a new problem.
Definition CVodesIntegrator.cpp:233
string getErrorInfo(int N)
Returns a string listing the weighted error estimates associated with each solution component.
Definition CVodesIntegrator.cpp:638
Virtual base class for ODE/DAE right-hand-side function evaluators.
Definition FuncEval.h:32
A wrapper for managing a SUNContext object, need for Sundials >= 6.0.
Definition SundialsContext.h:20
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
Generated by 1.9.7