A SUNDIALS SUNMemoryHelper interface to the amrex::Arena.
More...
#include <AMReX_SUNMemory.H>
A SUNDIALS SUNMemoryHelper interface to the amrex::Arena.
This class allows SUNDIALS to allocate memory using the amrex::Arena.
◆ MemoryHelper() [1/3]
| amrex::sundials::MemoryHelper::MemoryHelper |
( |
::sundials::Context * |
sunctx | ) |
|
Construct a helper bound to the supplied SUNDIALS context sunctx.
◆ ~MemoryHelper()
| amrex::sundials::MemoryHelper::~MemoryHelper |
( |
| ) |
|
Destroy the associated SUNMemoryHelper and free resources.
◆ MemoryHelper() [2/3]
| amrex::sundials::MemoryHelper::MemoryHelper |
( |
const MemoryHelper & |
rhs | ) |
|
Copy-construct a helper (shares the SUNMemoryHelper handle).
◆ MemoryHelper() [3/3]
| amrex::sundials::MemoryHelper::MemoryHelper |
( |
MemoryHelper && |
rhs | ) |
|
|
noexcept |
Move-construct, transferring ownership of the helper handle.
◆ Finalize()
| void amrex::sundials::MemoryHelper::Finalize |
( |
| ) |
|
|
static |
◆ Initialize()
| void amrex::sundials::MemoryHelper::Initialize |
( |
int |
nthreads | ) |
|
|
static |
Allocate one helper per OpenMP thread using the given count.
- Parameters
-
| nthreads | Number of thread-local SUNMemoryHelper instances created. |
◆ operator SUNMemoryHelper()
| amrex::sundials::MemoryHelper::operator SUNMemoryHelper |
( |
| ) |
const |
|
inline |
Implicit conversion to the underlying SUNMemoryHelper handle.
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following files: