https://mooseframework.inl.gov
VectorOfVectorTestReporter.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 
12 registerMooseObject("OptimizationTestApp", VectorOfVectorTestReporter);
13 
16 {
18  params.addClassDescription(
19  "Test Reporter to create vector of vector for VectorOfVectorRowSum testing.");
20  params.addRequiredParam<std::string>("name", "Reporter name to create.");
21  params.addRequiredParam<std::vector<std::vector<Real>>>(
22  "vector_of_vectors", "Data to put into vector of vector reporter.");
23  return params;
24 }
25 
27  : GeneralReporter(parameters),
28  _vectors(declareValueByName<std::vector<std::vector<Real>>>(getParam<std::string>("name"),
30 {
31  _vectors = getParam<std::vector<std::vector<Real>>>("vector_of_vectors");
32 }
std::vector< std::vector< Real > > & _vectors
Reporter vector of vector being created.
static InputParameters validParams()
void addRequiredParam(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
registerMooseObject("OptimizationTestApp", VectorOfVectorTestReporter)
VectorOfVectorTestReporter(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
const ReporterMode REPORTER_MODE_REPLICATED
Test object to create vector of vector needed for testing VectorOfVectorRowSum.