20 params.
addRequiredParam<std::vector<Real>>(
"q_vector",
"q values for g-function");
22 "sampler",
"The Sampler object to use to perform g-function evaluations.");
23 params.
addParam<
bool>(
"classify",
false,
"Flag to turn return binary values.");
24 params.
addParam<
Real>(
"limiting_value", 0.0,
"True if value exceeds limiting value.");
30 _sampler(getSampler(
"sampler")),
31 _q_vector(getParam<
std::vector<
Real>>(
"q_vector")),
32 _classify(getParam<bool>(
"classify")),
33 _limiting_value(getParam<
Real>(
"limiting_value")),
34 _values(declareVector(
"g_values"))
37 paramError(
"q_vector",
"The 'q_vector' size must match the number of columns in the Sampler.");
40 paramError(
"q_vector",
"The 'q_vector' entries must be zero or positive.");
51 for (std::size_t i = 0; i <
_q_vector.size(); ++i)
const std::vector< Real > & _q_vector
void paramError(const std::string ¶m, Args... args) const
const MooseEnum & _parallel_type
void gather(const unsigned int root_id, const T &send_data, std::vector< T, A > &recv) const
std::vector< Real > getNextLocalRow()
dof_id_type getLocalRowBegin() const
const std::vector< double > y
const Parallel::Communicator & _communicator
dof_id_type getNumberOfLocalRows() const
static InputParameters validParams()
const std::vector< double > x
virtual void finalize() override
VectorPostprocessorValue & _values
dof_id_type getLocalRowEnd() const
GFunction(const InputParameters ¶meters)
virtual void execute() override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
registerMooseObject("StochasticToolsTestApp", GFunction)
const Real & _limiting_value
dof_id_type getNumberOfCols() const