19 "Populate constant VectorPostprocessorValue directly from input file.");
20 params.
addParam<std::vector<std::string>>(
"vector_names",
21 std::vector<std::string>(1,
"value"),
22 "Names of the column vectors in this object");
25 "Vector values this object will have. Leading dimension must be equal to leading dimension " 26 "of vector_names parameter.");
34 std::vector<std::string> names = getParam<std::vector<std::string>>(
"vector_names");
35 unsigned int nvec = names.size();
38 for (
unsigned int j = 0; j < nvec; ++j)
41 std::vector<std::vector<Real>> v = getParam<std::vector<std::vector<Real>>>(
"value");
44 "Leading dimension must be equal to leading dimension of vector_names parameter.");
48 for (
unsigned int j = 0; j < nvec; ++j)
50 unsigned int ne = v[j].size();
52 for (
unsigned int l = 0; l < ne; ++l)
static InputParameters validParams()
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 ...
This class is here to combine the VectorPostprocessor interface and the base class VectorPostprocesso...
virtual void execute() override
Execute method.
static InputParameters validParams()
std::vector< VectorPostprocessorValue * > _value
VectorPostprocessorValue & declareVector(const std::string &vector_name)
Register a new vector to fill up.
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
registerMooseObject("MooseApp", ConstantVectorPostprocessor)
ConstantVectorPostprocessor(const InputParameters ¶meters)
processor_id_type processor_id() const