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")),
47 _value = std::numeric_limits<Real>::max();
50 if (dof >= dof_map.first_dof() && dof < dof_map.end_dof())
registerMooseObject("MooseApp", ScalarVariable)
void ErrorVector unsigned int
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
static InputParameters validParams()
virtual const std::vector< dof_id_type > & dofIndices() const
Get local DoF indices.
const libMesh::DofMap & dofMap() const
The DofMap associated with the system this variable is in.
const VariableValue & sln() const
void reinit(bool reinit_for_derivative_reordering=false)
Fill out the VariableValue arrays from the system solution vector.
static InputParameters validParams()
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
MooseVariableScalar & _var
ScalarVariable(const InputParameters ¶meters)
virtual void execute() override
Execute method.
virtual void finalize() override
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
void gatherMin(T &value)
Gather the parallel min of the variable passed in.