21 "Storage container for stochastic simulation results coming from Reporters.");
22 MooseEnum parallel_type(
"DISTRIBUTED=0 ROOT=1",
"DISTRIBUTED");
26 "This parameter will determine how the stochastic data is gathered. It is common for " 27 "outputting purposes that this parameter be set to ROOT, otherwise, many files will be " 28 "produced showing the values on each processor. However, if there are lot of samples, " 29 "gathering on root may be memory restrictive.");
44 std::string value_name = (prefix.empty() ?
"" : prefix +
":") + from_reporter.
getObjectName() +
48 mooseError(
"Reporter value ", from_reporter,
" has not been declared.");
52 declareStochasticReporter<bool>(value_name, sampler);
54 declareStochasticReporter<int>(value_name, sampler);
56 declareStochasticReporter<Real>(value_name, sampler);
58 declareStochasticReporter<std::string>(value_name, sampler);
66 else if (from_data.
hasReporterValue<std::vector<std::string>>(from_reporter))
69 else if (from_data.
hasReporterValue<std::vector<std::vector<bool>>>(from_reporter))
71 else if (from_data.
hasReporterValue<std::vector<std::vector<int>>>(from_reporter))
73 else if (from_data.
hasReporterValue<std::vector<std::vector<Real>>>(from_reporter))
75 else if (from_data.
hasReporterValue<std::vector<std::vector<std::string>>>(from_reporter))
80 return {
name(), value_name};
static InputParameters validParams()
virtual ReporterName declareStochasticReporterClone(const Sampler &sampler, const ReporterData &from_data, const ReporterName &from_reporter, std::string prefix="")
static InputParameters validParams()
virtual const std::string & name() const
StochasticReporter(const InputParameters ¶meters)
registerMooseObject("StochasticToolsApp", StochasticReporter)
const std::string & getObjectName() const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
bool hasReporterValue(const ReporterName &reporter_name) const
std::vector< T > & declareStochasticReporter(std::string value_name, const Sampler &sampler)
const std::string & getValueName() const