The abstract class that provides polymorphic interfaces for a function. More...
#include <KokkosFunction.h>
Public Member Functions | |
| Function (std::shared_ptr< FunctionWrapperHostBase > wrapper) | |
| Constructor. More... | |
| Function (const Function &function) | |
| Copy constructor for parallel dispatch. More... | |
| ~Function () | |
| Destructor. More... | |
| KOKKOS_FUNCTION Real | value (Real t, Real3 p) const |
| KOKKOS_FUNCTION Real3 | vectorValue (Real t, Real3 p) const |
| KOKKOS_FUNCTION Real3 | gradient (Real t, Real3 p) const |
| KOKKOS_FUNCTION Real3 | curl (Real t, Real3 p) const |
| KOKKOS_FUNCTION Real | div (Real t, Real3 p) const |
| KOKKOS_FUNCTION Real | timeDerivative (Real t, Real3 p) const |
| KOKKOS_FUNCTION Real | timeIntegral (Real t1, Real t2, Real3 p) const |
| KOKKOS_FUNCTION Real | integral () const |
| KOKKOS_FUNCTION Real | average () const |
Private Attributes | |
| std::shared_ptr< FunctionWrapperHostBase > | _wrapper_host |
| Pointer to the host function wrapper. More... | |
| FunctionWrapperDeviceBase * | _wrapper_device = nullptr |
| Pointer to the device function wrapper. More... | |
The abstract class that provides polymorphic interfaces for a function.
NOTE: This class is not the base class for a Kokkos function derivation. The user should derive their own function from Moose::Kokkos::FunctionBase.
Definition at line 147 of file KokkosFunction.h.
| Moose::Kokkos::Function::Function | ( | std::shared_ptr< FunctionWrapperHostBase > | wrapper | ) |
Constructor.
| wrapper | The host function wrapper |
| Moose::Kokkos::Function::Function | ( | const Function & | function | ) |
Copy constructor for parallel dispatch.
| Moose::Kokkos::Function::~Function | ( | ) |
Destructor.
|
inline |
Definition at line 181 of file KokkosFunction.h.
Definition at line 170 of file KokkosFunction.h.
Definition at line 171 of file KokkosFunction.h.
Definition at line 169 of file KokkosFunction.h.
|
inline |
Definition at line 180 of file KokkosFunction.h.
Definition at line 172 of file KokkosFunction.h.
|
inline |
Definition at line 176 of file KokkosFunction.h.
Definition at line 164 of file KokkosFunction.h.
Referenced by KokkosFunctionAux::computeValue().
Definition at line 165 of file KokkosFunction.h.
|
private |
Pointer to the device function wrapper.
Definition at line 191 of file KokkosFunction.h.
Referenced by average(), curl(), div(), gradient(), integral(), timeDerivative(), timeIntegral(), value(), and vectorValue().
|
private |
Pointer to the host function wrapper.
Definition at line 187 of file KokkosFunction.h.
1.8.14