Cantera  3.1.0a2
Loading...
Searching...
No Matches
Integrators.cpp
Go to the documentation of this file.
1//! @file Integrators.cpp
2
3// This file is part of Cantera. See License.txt in the top-level directory or
4// at https://cantera.org/license.txt for license and copyright information.
5
10
11namespace Cantera
12{
13
14Integrator* newIntegrator(const string& itype)
15{
16 if (itype == "CVODE") {
17 return new CVodesIntegrator();
18 } else if (itype == "IDA") {
19 return new IdasIntegrator();
20 } else {
21 throw CanteraError("newIntegrator",
22 "unknown integrator: "+itype);
23 }
24 return 0;
25}
26
27}
Header file for class IdasIntegrator.
Wrapper class for 'cvodes' integrator from LLNL.
Base class for exceptions thrown by Cantera classes.
Wrapper for Sundials IDAS solver.
Abstract base class for ODE system integrators.
Definition Integrator.h:44
This file contains definitions of constants, types and terms that are used in internal routines and a...
Integrator * newIntegrator(const string &itype)
Create new Integrator object.
Namespace for the Cantera kernel.
Definition AnyMap.cpp:564