22 MooseEnum functor_type(
"geometric algebraic",
"geometric");
23 params.
addParam<
MooseEnum>(
"functor_type", functor_type,
"The type of ghosting functor to use");
25 params.
addParam<
bool>(
"include_local_elements",
27 "Whether or not to include local elements as part of the ghosting set");
30 "ghost_uo",
"The GhostUserObject from which to obtain ghosting information from.");
41 _rm_type(getParam<
MooseEnum>(
"functor_type") ==
"geometric" 44 _include_local(getParam<bool>(
"include_local_elements")),
49 mooseError(
"GhostingAux only works on elemental fields.");
bool _include_local
Whether or not to include local elements in the display field.
A MultiMooseEnum object to hold "execute_on" flags.
RelationshipManagerType
Main types of Relationship Managers.
Real getElementalValue(const Elem *elem, Moose::RelationshipManagerType rm_type, processor_id_type pid) const
const ExecFlagType EXEC_TIMESTEP_END
This object loops over all of the underlying ghosting functors added by libMesh or MOOSE through Rela...
virtual void precalculateValue() override
This callback is used for AuxKernelTempls that need to perform a per-element calculation.
uint8_t processor_id_type
Moose::RelationshipManagerType _rm_type
The type of ghosting functor to get.
registerMooseObject("MooseApp", GhostingAux)
processor_id_type _pid
The PID to show the ghosting for.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
GhostingAux(const InputParameters ¶meters)
virtual Real computeValue() override
Compute and return the value of the aux variable.
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.
const Elem *const & _current_elem
Current element (valid only for elemental kernels)
static InputParameters validParams()
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
static InputParameters validParams()
bool isNodal() const
Nodal or elemental kernel?
Real _value
precalculated element value
const ExecFlagType EXEC_INITIAL
const GhostingUserObject & _ghost_uo
The reference to the ghosting user object.