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