19 params.
addClassDescription(
"Read values from a VectorPostprocessor that is producing vectors " 20 "that are 'number of processors' * in length. Puts the value for " 21 "each processor into an elemental auxiliary field.");
24 "vpp",
"The name of the VectorPostprocessor to pull the data from.");
26 "vector_name",
"The name of the vector to use from the VectorPostprocessor");
28 params.
addParam<
bool>(
"use_broadcast",
30 "Causes this AuxKernel to use a broadcasted version of the vector instead " 31 "of a scattered version of the vector (the default). This is slower - but " 32 "is useful for debugging and testing");
40 _use_broadcast(getParam<bool>(
"use_broadcast")),
41 _vpp_scatter(getScatterVectorPostprocessorValue(
"vpp", getParam<
std::string>(
"vector_name"))),
43 getVectorPostprocessorValue(
"vpp", getParam<
std::string>(
"vector_name"), _use_broadcast)),
44 _my_pid(processor_id())
55 getParam<std::string>(
"vector_name"),
56 " in VectorPostprocessor ",
57 getParam<VectorPostprocessorName>(
"vpp"),
58 " does not contain num_procs number of entries. num_procs: ",
70 "Vector does not contain enough entries in VectorPostprocessorVisualization named " bool _use_broadcast
Whether or not we're using a broadcast (replicated) vector.
virtual void timestepSetup() override
Note: this used for error checking.
virtual Real computeValue() override
Get the value from the vector and assign it to the element.
processor_id_type _my_pid
Optimization.
VectorPostprocessorVisualizationAux(const InputParameters ¶meters)
Read values from a VectorPostprocessor that is producing vectors that are "number of processors" in l...
virtual const std::string & name() const
Get the name of the class.
processor_id_type n_processors() const
registerMooseObject("MooseApp", VectorPostprocessorVisualizationAux)
const VectorPostprocessorValue & _vpp_vector
Holds the values we want to display.
static InputParameters validParams()
const ScatterVectorPostprocessorValue & _vpp_scatter
Holds the values we want to display.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
static InputParameters validParams()