Device function wrapper class that provides polymorphic interfaces for a function. More...
#include <KokkosFunctionWrapper.h>
Public Member Functions | |
| KOKKOS_FUNCTION | FunctionWrapperDevice () |
| Constructor. More... | |
| KOKKOS_FUNCTION Real | value (Real t, Real3 p) const override final |
| Virtual shims that calls the corresponding methods of the actual stored function. More... | |
| KOKKOS_FUNCTION Real3 | vectorValue (Real t, Real3 p) const override final |
| KOKKOS_FUNCTION Real3 | gradient (Real t, Real3 p) const override final |
| KOKKOS_FUNCTION Real3 | curl (Real t, Real3 p) const override final |
| KOKKOS_FUNCTION Real | div (Real t, Real3 p) const override final |
| KOKKOS_FUNCTION Real | timeDerivative (Real t, Real3 p) const override final |
| KOKKOS_FUNCTION Real | timeIntegral (Real t1, Real t2, Real3 p) const override final |
| KOKKOS_FUNCTION Real | integral () const override final |
| KOKKOS_FUNCTION Real | average () const override final |
Protected Attributes | |
| Object * | _function = nullptr |
| Pointer to the function on device. More... | |
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 60 of file KokkosFunctionWrapper.h.
|
inline |
|
inlinefinaloverridevirtual |
Implements Moose::Kokkos::FunctionWrapperDeviceBase.
Definition at line 93 of file KokkosFunctionWrapper.h.
|
inlinefinaloverridevirtual |
Implements Moose::Kokkos::FunctionWrapperDeviceBase.
Definition at line 82 of file KokkosFunctionWrapper.h.
|
inlinefinaloverridevirtual |
Implements Moose::Kokkos::FunctionWrapperDeviceBase.
Definition at line 83 of file KokkosFunctionWrapper.h.
|
inlinefinaloverridevirtual |
Implements Moose::Kokkos::FunctionWrapperDeviceBase.
Definition at line 78 of file KokkosFunctionWrapper.h.
|
inlinefinaloverridevirtual |
Implements Moose::Kokkos::FunctionWrapperDeviceBase.
Definition at line 92 of file KokkosFunctionWrapper.h.
|
inlinefinaloverridevirtual |
Implements Moose::Kokkos::FunctionWrapperDeviceBase.
Definition at line 84 of file KokkosFunctionWrapper.h.
|
inlinefinaloverridevirtual |
Implements Moose::Kokkos::FunctionWrapperDeviceBase.
Definition at line 88 of file KokkosFunctionWrapper.h.
|
inlinefinaloverridevirtual |
Virtual shims that calls the corresponding methods of the actual stored function.
{@
Implements Moose::Kokkos::FunctionWrapperDeviceBase.
Definition at line 70 of file KokkosFunctionWrapper.h.
|
inlinefinaloverridevirtual |
Implements Moose::Kokkos::FunctionWrapperDeviceBase.
Definition at line 74 of file KokkosFunctionWrapper.h.
|
friend |
Definition at line 62 of file KokkosFunctionWrapper.h.
|
protected |
Pointer to the function on device.
Definition at line 99 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().
1.8.14