Nektar++
|
Helper class for holding a reference to a Python function to act as a wrapper for TimeIntegrationScheme::FunctorType1. More...
Public Member Functions | |
CallbackHolderT1 (py::object cb) | |
Default constructor. More... | |
void | call (TimeIntegrationSchemeOperators::InArrayType &in, TimeIntegrationSchemeOperators::OutArrayType &out, const NekDouble time) |
C++ callback function to invoke Python function stored in m_cb. More... | |
Private Attributes | |
py::object | m_cb |
Callback defined in Python code. More... | |
Helper class for holding a reference to a Python function to act as a wrapper for TimeIntegrationScheme::FunctorType1.
This wrapper is used for TimeIntegrationSchemeOperators::DefineOdeRhs and TimeIntegrationSchemeOperators::DefineProjection.
Definition at line 50 of file TimeIntegrationSchemeOperators.cpp.
|
inline |
Default constructor.
Definition at line 53 of file TimeIntegrationSchemeOperators.cpp.
|
inline |
C++ callback function to invoke Python function stored in m_cb.
Definition at line 60 of file TimeIntegrationSchemeOperators.cpp.
References m_cb.
Referenced by TimeIntegrationSchemeOperators_DefineOdeRhs(), and TimeIntegrationSchemeOperators_DefineProjection().
|
private |
Callback defined in Python code.
Definition at line 76 of file TimeIntegrationSchemeOperators.cpp.
Referenced by call().