The abstract class that provides polymorphic interfaces for a function. More...
#include <KokkosFunction.h>
Public Member Functions | |
| Function ()=default | |
| Default constructor. More... | |
| Function (std::shared_ptr< FunctionWrapperHostBase > wrapper) | |
| Constructor. More... | |
| Function (const Function &function) | |
| Copy constructor for parallel dispatch. More... | |
| ~Function () | |
| Destructor. More... | |
| KOKKOS_FUNCTION | operator bool () const |
| Get whether the function wrapper is valid. 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.
|
default |
Default constructor.
| 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 227 of file KokkosFunction.h.
Definition at line 197 of file KokkosFunction.h.
Definition at line 203 of file KokkosFunction.h.
Definition at line 191 of file KokkosFunction.h.
|
inline |
Definition at line 221 of file KokkosFunction.h.
|
inline |
Get whether the function wrapper is valid.
Definition at line 172 of file KokkosFunction.h.
Definition at line 209 of file KokkosFunction.h.
|
inline |
Definition at line 215 of file KokkosFunction.h.
Definition at line 179 of file KokkosFunction.h.
Referenced by KokkosFunctionAux::computeValue().
Definition at line 185 of file KokkosFunction.h.
|
private |
Pointer to the device function wrapper.
Definition at line 242 of file KokkosFunction.h.
Referenced by average(), curl(), div(), gradient(), integral(), operator bool(), timeDerivative(), timeIntegral(), value(), and vectorValue().
|
private |
Pointer to the host function wrapper.
Definition at line 238 of file KokkosFunction.h.
Referenced by operator bool().
1.8.14