![]() |
deal.II version GIT relicensing-6960-g70e9c5b7be 2026-10-22 20:10:01+00:00
|
#include <deal.II/sundials/invocation_context.h>
A SUNContext that is freed when the last copy of this object is destroyed.
SUNDIALS objects retain a reference to the context with which they were created, including during their destruction. Therefore, any object that owns such SUNDIALS objects must also keep the corresponding context alive.
This object implicitly converts to the plain SUNContext that SUNDIALS functions expect.
Definition at line 56 of file invocation_context.h.
Public Member Functions | |
| SharedSUNContext ()=default | |
| SharedSUNContext (SUNContext context) | |
| operator SUNContext () const | |
Private Attributes | |
| std::shared_ptr< std::remove_pointer_t< SUNContext > > | context |
|
default |
Construct an object that holds no context.
|
inlineexplicit |
Take ownership of context, which is freed with SUNContext_Free().
Definition at line 67 of file invocation_context.h.
|
inline |
Return the underlying SUNContext.
Definition at line 79 of file invocation_context.h.
|
private |
Definition at line 85 of file invocation_context.h.