Cantera
Install
User Guide
Examples
Reference
Develop
Community
4.0.0a2
Toggle main menu visibility
Loading...
Searching...
No Matches
sundials_headers.h
1
#ifndef CT_SUNDIALS_HEADERS
2
#define CT_SUNDIALS_HEADERS
3
4
#include "
cantera/base/ct_defs.h
"
5
#include "sundials/sundials_types.h"
6
#include "sundials/sundials_math.h"
7
#include "sundials/sundials_nvector.h"
8
#include "nvector/nvector_serial.h"
9
#include "cvodes/cvodes.h"
10
#include "idas/idas.h"
11
12
#if CT_SUNDIALS_USE_LAPACK
13
#include "sunlinsol/sunlinsol_lapackdense.h"
14
#include "sunlinsol/sunlinsol_lapackband.h"
15
#else
16
#include "sunlinsol/sunlinsol_dense.h"
17
#include "sunlinsol/sunlinsol_band.h"
18
#endif
19
#include "sunlinsol/sunlinsol_spgmr.h"
20
#include "cvodes/cvodes_diag.h"
21
22
#if SUNDIALS_VERSION_MAJOR < 7
23
#include "cvodes/cvodes_direct.h"
24
#include "idas/idas_direct.h"
25
#include "idas/idas_spils.h"
26
#include "cvodes/cvodes_spils.h"
27
#endif
28
29
#define CV_SS 1
30
#define IDA_SS 1
31
#define CV_SV 2
32
#define IDA_SV 2
33
34
typedef
long
int
sd_size_t;
35
36
namespace
Cantera
37
{
38
39
//! Access a SUNDIALS `N_Vector` as a `span<double>`
40
inline
span<double>
asSpan
(N_Vector v)
41
{
42
return
span<double>(NV_DATA_S(v), NV_LENGTH_S(v));
43
}
44
45
}
46
47
#endif
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.cpp:595
Cantera::asSpan
span< double > asSpan(Eigen::DenseBase< Derived > &v)
Convenience wrapper for accessing Eigen vector/array/map data as a span.
Definition
eigen_dense.h:46
include
cantera
numerics
sundials_headers.h
Generated by
1.17.0