NeoFOAM
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
Functions
NeoFOAM::sundials::detail Namespace Reference

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.
 

Function Documentation

◆ initNVector()

template<typename 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.

Template Parameters
VectorVector wrapper type implementing initNVector interface
Parameters
[in]sizeNumber of elements
[in]contextSUNDIALS context for vector operations
[in,out]vecVector to initialize

Definition at line 226 of file sundials.hpp.

◆ sunNVector() [1/2]

template<typename Vector >
const N_Vector & NeoFOAM::sundials::detail::sunNVector ( const Vector vec)

Provides const access to underlying N_Vector.

Template Parameters
VectorVector wrapper type implementing NVector interface
Parameters
vecSource vector wrapper
Returns
Const reference to wrapped N_Vector

Definition at line 238 of file sundials.hpp.

◆ sunNVector() [2/2]

template<typename Vector >
N_Vector & NeoFOAM::sundials::detail::sunNVector ( Vector vec)

Provides mutable access to underlying N_Vector.

Template Parameters
VectorVector wrapper type implementing NVector interface
Parameters
[in,out]vecSource vector wrapper
Returns
Mutable reference to wrapped N_Vector

Definition at line 250 of file sundials.hpp.