Device function wrapper class that provides polymorphic interfaces for a function. More...
#include <KokkosFunctionWrapper.h>
Public Member Functions | |
| KOKKOS_FUNCTION | FunctionWrapperDevice () |
| Constructor. | |
| KOKKOS_FUNCTION Real | value (Real t, Real3 p) const KOKKOS_OVERRIDE |
| KOKKOS_FUNCTION Real3 | vectorValue (Real t, Real3 p) const KOKKOS_OVERRIDE |
| KOKKOS_FUNCTION Real3 | gradient (Real t, Real3 p) const KOKKOS_OVERRIDE |
| KOKKOS_FUNCTION Real3 | curl (Real t, Real3 p) const KOKKOS_OVERRIDE |
| KOKKOS_FUNCTION Real | div (Real t, Real3 p) const KOKKOS_OVERRIDE |
| KOKKOS_FUNCTION Real | timeDerivative (Real t, Real3 p) const KOKKOS_OVERRIDE |
| KOKKOS_FUNCTION Real | timeIntegral (Real t1, Real t2, Real3 p) const KOKKOS_OVERRIDE |
| KOKKOS_FUNCTION Real | integral () const KOKKOS_OVERRIDE |
| KOKKOS_FUNCTION Real | average () const KOKKOS_OVERRIDE |
Protected Attributes | |
| Object * | _function = nullptr |
| Pointer to the function on device. | |
Friends | |
| class | FunctionWrapperHost< Object > |
Device function wrapper class that provides polymorphic interfaces for a function.
The function itself is a static object and does not have any virtual method. Instead, the device wrapper defines the virtual shims and forwards the calls to the static methods of the stored function.
| Object | The function class type |
Definition at line 96 of file KokkosFunctionWrapper.h.
|
inline |
|
inline |
Definition at line 132 of file KokkosFunctionWrapper.h.
|
inline |
Definition at line 118 of file KokkosFunctionWrapper.h.
|
inline |
Definition at line 122 of file KokkosFunctionWrapper.h.
|
inline |
Definition at line 114 of file KokkosFunctionWrapper.h.
|
inline |
Definition at line 131 of file KokkosFunctionWrapper.h.
|
inline |
Definition at line 123 of file KokkosFunctionWrapper.h.
|
inline |
Definition at line 127 of file KokkosFunctionWrapper.h.
|
inline |
Definition at line 106 of file KokkosFunctionWrapper.h.
|
inline |
Definition at line 110 of file KokkosFunctionWrapper.h.
|
friend |
Definition at line 81 of file KokkosFunctionWrapper.h.
|
protected |
Pointer to the function on device.
Definition at line 138 of file KokkosFunctionWrapper.h.
Referenced by Moose::Kokkos::FunctionWrapperDevice< Object >::average(), Moose::Kokkos::FunctionWrapperDevice< Object >::curl(), Moose::Kokkos::FunctionWrapperDevice< Object >::div(), Moose::Kokkos::FunctionWrapperDevice< Object >::gradient(), Moose::Kokkos::FunctionWrapperDevice< Object >::integral(), Moose::Kokkos::FunctionWrapperDevice< Object >::timeDerivative(), Moose::Kokkos::FunctionWrapperDevice< Object >::timeIntegral(), Moose::Kokkos::FunctionWrapperDevice< Object >::value(), and Moose::Kokkos::FunctionWrapperDevice< Object >::vectorValue().