41#ifdef MOOSE_KOKKOS_ENABLED
53 template <
typename T = Sampler>
61 template <
typename T = Sampler>
79 return getSamplerByName<T>(
_si_params.
get<SamplerName>(name));
87 T * obj_ptr =
dynamic_cast<T *
>(base_ptr);
89 mooseError(
"Failed to find a Sampler object with the name '", name,
"' for the desired type.");
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
virtual Sampler & getSampler(const std::string &name, const THREAD_ID tid=0)
Every object that can be built by the factory should be derived from this class.
Interface for objects that need to use samplers.
static InputParameters validParams()
T & getSamplerByName(const SamplerName &name)
Get a sampler with a given name.
T & getSampler(const std::string &name)
Get a sampler with a given name.
const InputParameters & _si_params
Parameters of the object with this interface.
FEProblemBase & _si_feproblem
Reference to FEProblemBase instance.
THREAD_ID _si_tid
Thread ID.
This is the base class for Samplers as used within the Stochastic Tools module.