16 #include "libmesh/dof_map.h" 24 params.
addClassDescription(
"Returns the value of a scalar variable as a postprocessor value.");
26 params.
addParam<
unsigned int>(
"component", 0,
"Component to output for this variable");
32 _var(_subproblem.getScalarVariable(_tid, getParam<VariableName>(
"variable"))),
33 _idx(getParam<unsigned
int>(
"component")),
50 if (dof >= dof_map.first_dof() && dof < dof_map.end_dof())
registerMooseObject("MooseApp", ScalarVariable)
void reinit(bool reinit_for_derivative_reordering=false)
Fill out the VariableValue arrays from the system solution vector.
const libMesh::DofMap & dofMap() const
The DofMap associated with the system this variable is in.
void gatherMin(T &value)
Gather the parallel min of the variable passed in.
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
virtual void execute() override
Execute method.
static InputParameters validParams()
auto max(const L &left, const R &right)
virtual void finalize() override
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
static InputParameters validParams()
MooseVariableScalar & _var
virtual const std::vector< dof_id_type > & dofIndices() const
Get local DoF indices.
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ScalarVariable(const InputParameters ¶meters)
const VariableValue & sln() const
void ErrorVector unsigned int