Cantera
2.6.0
src
numerics
ODE_integrators.cpp
Go to the documentation of this file.
1
//! @file ODE_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
"
7
#include "
cantera/numerics/Integrator.h
"
8
#include "
cantera/numerics/CVodesIntegrator.h
"
9
10
namespace
Cantera
11
{
12
13
Integrator* newIntegrator(
const
std::string& itype)
14
{
15
if
(itype ==
"CVODE"
) {
16
return
new
CVodesIntegrator();
17
}
else
{
18
throw
CanteraError(
"newIntegrator"
,
19
"unknown ODE integrator: "
+itype);
20
}
21
return
0;
22
}
23
24
}
CVodesIntegrator.h
Integrator.h
ct_defs.h
This file contains definitions of constants, types and terms that are used in internal routines and a...
Cantera
Namespace for the Cantera kernel.
Definition:
AnyMap.h:29
Generated by
1.9.2