20 "Reporter names to apply function to.");
29 const std::vector<ReporterName> reporter_names(
30 getParam<std::vector<ReporterName>>(
"vector_reporter_names"));
33 "vector_reporter_names and vector_reporter_symbols must be the same size: Number "
34 "of vector_reporter_names=",
35 reporter_names.size(),
36 "; Number of vector_reporter_symbols=",
53 const std::vector<ReporterName> reporter_names(
54 getParam<std::vector<ReporterName>>(
"vector_reporter_names"));
55 mooseError(
"All vectors being operated on must be the same size.",
57 reporter_names[0].getCombinedName(),
61 reporter_names[rep_index].getCombinedName(),
67 for (
const auto i : make_range(entries))
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
registerMooseObject("MooseApp", ParsedVectorReporter)
const ReporterMode REPORTER_MODE_ROOT
std::vector< GenericReal< is_ad > > _func_params
Array to stage the parameters passed to the functions when calling Eval.
GenericReal< is_ad > evaluate(SymFunctionPtr &, const std::string &object_name="")
Evaluate FParser object and check EvalError.
void paramError(const std::string ¶m, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
Reporter containing operation between vectors from another Reporter.
const std::vector< std::string > _vector_reporter_symbols
Get symbols to corresponding reporter names need symbols because reporter names have a "/" and that w...
const bool _use_t
whether time is part of the parsed expression
SymFunctionPtr _func_F
function parser object
std::vector< const Real * > _scalar_reporter_data
input scalar reporter vectors
static InputParameters validParams()
Reporter containing operation between vectors from another Reporter.
ParsedVectorReporter(const InputParameters ¶meters)
virtual void finalize() override
Finalize.
std::vector< double > & _output_reporter
output vector
std::vector< const std::vector< Real > * > _vector_reporter_data
input reporter vectors
static InputParameters validParams()
const T & getReporterValueByName(const ReporterName &reporter_name, const std::size_t time_index=0)
Returns read-only reference to a Reporter value that is provided by name directly.