Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ODE_integrators.cpp
Go to the documentation of this file.
1 //! @file ODE_integrators.cpp
2 #include "cantera/base/ct_defs.h"
4 
5 
6 #ifdef HAS_SUNDIALS
8 #else
9 #include "CVodeInt.h"
10 #endif
11 
12 namespace Cantera
13 {
14 
15 Integrator* newIntegrator(const std::string& itype)
16 {
17  if (itype == "CVODE") {
18 #ifdef HAS_SUNDIALS
19  return new CVodesIntegrator();
20 #else
21  return new CVodeInt();
22 #endif
23  } else {
24  throw CanteraError("newIntegrator",
25  "unknown ODE integrator: "+itype);
26  }
27  return 0;
28 }
29 
30 }
This file contains definitions of terms that are used in internal routines and are unlikely to need m...