29 std::string
vars =
"x,y,z,t,NaN,pi,e";
34 "' can be interpreted as a parsed function expression. This can be problematic. As an " 35 "example you may name a function 'x' whose functional form is 'xy'. You probably wouldn't " 36 "do this, but let's assume for the sake of argument. You might also write somewhere in a " 37 "consumer object 'function = x'. Well, MOOSE supports direct construction of parsed " 38 "functions from 'FunctionName' parameters, so is this consumer going to end up using the " 39 "functional form 'x' or 'xy'? It is undefined behavior.");
41 #ifdef MOOSE_KOKKOS_ENABLED const std::string & _name
The name of this class.
static InputParameters validParams()
void mooseWarning(Args &&... args) const
This class parses functions in the [Functions] block and creates them.
static const std::string kokkos_object_param
The name of the parameter that indicates an object is a Kokkos functor.
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
std::string _type
The Object type that is being created.
InputParameters _moose_object_pars
The parameters for the object to be created.
registerMooseAction("MooseApp", AddFunctionAction, "add_function")
AddFunctionAction(const InputParameters ¶ms)
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
static InputParameters validParams()