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 "
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
registerMooseObject("MooseApp", VectorPostprocessorVisualizationAux)
static InputParameters validParams()
const std::string & name() const
Get the name of the class.
Read values from a VectorPostprocessor that is producing vectors that are "number of processors" in l...
const ScatterVectorPostprocessorValue & _vpp_scatter
Holds the values we want to display.
virtual Real computeValue() override
Get the value from the vector and assign it to the element.
bool _use_broadcast
Whether or not we're using a broadcast (replicated) vector.
processor_id_type _my_pid
Optimization.
VectorPostprocessorVisualizationAux(const InputParameters ¶meters)
static InputParameters validParams()
const VectorPostprocessorValue & _vpp_vector
Holds the values we want to display.
virtual void timestepSetup() override
Note: this used for error checking.
processor_id_type n_processors() const