Loading [MathJax]/extensions/tex2jax.js
Cantera
3.1.0
Install
User Guide
Examples
Reference
Develop
Community
Toggle main menu visibility
Developer API
Modules
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
v
w
x
Typedefs
Enumerations
Related Symbols
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
v
w
Variables
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
Typedefs
Enumerations
Enumerator
Files
File List
File Members
All
a
b
c
e
f
k
l
m
n
p
s
t
v
x
Functions
Variables
Typedefs
Macros
a
c
e
f
m
n
p
s
t
v
x
Related Pages
cantera.org
▼
Cantera
Cantera C++ Reference
►
Modules
►
Classes
►
Namespaces
▼
Files
►
File List
►
File Members
Previous Versions
Deprecated List
Todo List
Bibliography
cantera.org
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
SundialsContext.h
Go to the documentation of this file.
1
//! @file SundialsContext.h
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
#ifndef CT_SUNDIALSCONTEXT_H
7
#define CT_SUNDIALSCONTEXT_H
8
9
#include "
cantera/base/ct_defs.h
"
10
#include "sundials/sundials_config.h"
11
12
#if SUNDIALS_VERSION_MAJOR >= 6
13
#include "sundials/sundials_context.h"
14
#endif
15
16
namespace
Cantera
17
{
18
19
//! A wrapper for managing a SUNContext object, need for Sundials >= 6.0
20
class
SundialsContext
21
{
22
#if SUNDIALS_VERSION_MAJOR >= 6
23
public
:
24
SundialsContext
() {
25
#if SUNDIALS_VERSION_MAJOR >= 7
26
SUNContext_Create(SUN_COMM_NULL, &m_context);
27
28
#else
29
SUNContext_Create(
nullptr
, &m_context);
30
#endif
31
}
32
~SundialsContext
() {
33
SUNContext_Free(&m_context);
34
}
35
SUNContext get() {
36
return
m_context;
37
}
38
39
private
:
40
SUNContext m_context;
41
#endif
42
// For older Sundials versions, this is an empty class
43
};
44
45
}
46
47
#endif
Cantera::SundialsContext
A wrapper for managing a SUNContext object, need for Sundials >= 6.0.
Definition
SundialsContext.h:21
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
include
cantera
numerics
SundialsContext.h
Generated by
1.9.7