19 params.
addRequiredParam<SamplerName>(
"sampler",
"Sampler defining the partitioning.");
21 "reporters",
"Vector reporters to compare with sampler partioning.");
28 for (
const auto & rname :
getParam<std::vector<ReporterName>>(
"reporters"))
29 _reporters[rname] = &getReporterValueByName<std::vector<Real>>(rname);
49 mooseError(
"Reporter decalred with unsupported mode.");
51 if (rsize != expect_size)
53 <<
" " << rname <<
": expected size = " << expect_size <<
", actual size = " << rsize;
56 if (!ss.str().empty())
57 mooseError(
"The following reporter values are not partitioning the same as ",
58 getParam<SamplerName>(
"sampler"),
const ReporterMode REPORTER_MODE_ROOT
static InputParameters validParams()
dof_id_type getNumberOfLocalRows() const
const ReporterData & getReporterData() const
virtual void execute() override
registerMooseObject("StochasticToolsTestApp", TestReporterPartitioning)
const T & getParam(const std::string &name) const
const ReporterMode REPORTER_MODE_DISTRIBUTED
std::unordered_map< ReporterName, const std::vector< Real > * > _reporters
static InputParameters validParams()
dof_id_type getNumberOfRows() const
const ReporterProducerEnum & getReporterMode(const ReporterName &reporter_name) const
FEProblemBase & _fe_problem
void mooseError(Args &&... args) const
TestReporterPartitioning(const InputParameters ¶meters)
const ReporterMode REPORTER_MODE_REPLICATED
processor_id_type processor_id() const