Cantera  3.1.0a1
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 
6 #include "cantera/base/ct_defs.h"
10 
11 namespace Cantera
12 {
13 
14 Integrator* 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.
Definition: ctexceptions.h:66
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.
Definition: Integrators.cpp:14
Namespace for the Cantera kernel.
Definition: AnyMap.cpp:564