NeoFOAM
WIP Prototype of a modern OpenFOAM core
|
Functions | |
template<typename Vector > | |
void | initNVector (size_t size, std::shared_ptr< SUNContext > context, Vector &vec) |
Initializes a vector wrapper with specified size and context. | |
template<typename Vector > | |
const N_Vector & | sunNVector (const Vector &vec) |
Provides const access to underlying N_Vector. | |
template<typename Vector > | |
N_Vector & | sunNVector (Vector &vec) |
Provides mutable access to underlying N_Vector. | |
void NeoFOAM::sundials::detail::initNVector | ( | size_t | size, |
std::shared_ptr< SUNContext > | context, | ||
Vector & | vec | ||
) |
Initializes a vector wrapper with specified size and context.
[in] | size | Number of elements |
[in] | context | SUNDIALS context for vector operations |
[in,out] | vec | Vector to initialize |
Definition at line 226 of file sundials.hpp.
const N_Vector & NeoFOAM::sundials::detail::sunNVector | ( | const Vector & | vec | ) |
Provides const access to underlying N_Vector.
vec | Source vector wrapper |
Definition at line 238 of file sundials.hpp.
Provides mutable access to underlying N_Vector.
[in,out] | vec | Source vector wrapper |
Definition at line 250 of file sundials.hpp.