16 #define usingFunctionInterfaceMembers \ 17 using FunctionInterface::getFunction; \ 18 using FunctionInterface::getFunctionByName 30 #ifdef MOOSE_KOKKOS_ENABLED 51 #ifdef MOOSE_KOKKOS_ENABLED 80 bool hasFunction(
const std::string & param_name)
const;
89 #ifdef MOOSE_KOKKOS_ENABLED 114 template <
typename T>
124 template <
typename T>
144 #ifdef MOOSE_KOKKOS_ENABLED 162 #ifdef MOOSE_KOKKOS_ENABLED 163 template <
typename T>
170 template <
typename T>
178 "Kokkos function '",
name,
"' is not of type '", MooseUtils::prettyCppType<T>(),
"'");
std::string name(const ElemQuality q)
Base class for function objects.
bool hasKokkosFunction(const std::string ¶m_name) const
Determine if the Kokkos function exists.
FunctionInterface(const MooseObject *moose_object)
const Function & getFunction(const std::string &name) const
Get a function with a given name.
Moose::Kokkos::Function getKokkosFunctionByName(const FunctionName &name) const
Get a Kokkos function of an abstract type with a given name Calling this function will error out curr...
const MooseObject & _fni_object
Reference to the object.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
const Moose::FunctionBase * getKokkosFunctionByNameHelper(const FunctionName &name) const
Helper function to retrieve a Kokkos function.
The abstract class that provides polymorphic interfaces for a function.
const THREAD_ID _fni_tid
Thread ID.
Every object that can be built by the factory should be derived from this class.
bool hasFunctionByName(const FunctionName &name) const
Determine if the function exists.
FEProblemBase & _fni_feproblem
Reference to FEProblemBase instance.
bool hasFunction(const std::string ¶m_name) const
Determine if the function exists.
Moose::Kokkos::Function getKokkosFunction(const std::string &name) const
Get a Kokkos function of an abstract type with a given name Calling this function will error out curr...
const InputParameters & _fni_params
Parameters of the object with this interface.
static InputParameters validParams()
const Function & getFunctionByName(const FunctionName &name) const
Get a function with a given name.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
bool hasKokkosFunctionByName(const FunctionName &name) const
Determine if the Kokkos function exists.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
Interface for objects that need to use functions.
InputParameters validParams()