32#ifdef MOOSE_KOKKOS_ENABLED
84 catch (std::bad_cast & exception)
86 DistributionName dist_name =
_dni_params.
get<DistributionName>(name);
89 "' object failed to retrieve '",
91 "' distribution with the desired type.");
104 catch (std::bad_cast & exception)
108 "' object failed to retrieve '",
110 "' distribution with the desired type.");
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Interface for objects that need to use distributions.
const MooseObject *const _dni_moose_object_ptr
Pointer to the MooseObject.
const Distribution & getDistribution(const std::string &name) const
Get a distribution with a given name.
const InputParameters & _dni_params
Parameters of the object with this interface.
FEProblemBase & _dni_feproblem
Reference to FEProblemBase instance.
static InputParameters validParams()
const Distribution & getDistributionByName(const DistributionName &name) const
Get a distribution with a given name.
All Distributions should inherit from this class.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
const std::string & name() const
Get the name of the class.
Every object that can be built by the factory should be derived from this class.