Cantera
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
numerics
ODE_integrators.cpp
Go to the documentation of this file.
1
//! @file ODE_integrators.cpp
2
#include "
cantera/base/ct_defs.h
"
3
#include "
cantera/numerics/Integrator.h
"
4
5
6
#ifdef HAS_SUNDIALS
7
#include "
cantera/numerics/CVodesIntegrator.h
"
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
}
ct_defs.h
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
CVodeInt.h
Integrator.h
CVodesIntegrator.h
Generated by
1.8.6