14#include "libmesh/dof_object.h"
25 "The rank for which the ghosted elements are recorded (Default: ALL)");
30 "ElementSideNeighborLayers",
35 rm_params.
set<
unsigned short>(
"layers") =
36 obj_params.
get<
unsigned short>(
"element_side_neighbor_layers");
42 "Number of layers to ghost");
44 params.
addClassDescription(
"User object to calculate ghosted elements on a single processor or "
45 "the union across all processors.");
72 for (
const auto & elem :
mesh.active_element_ptr_range())
73 if (elem->processor_id() != my_processor_id)
87 const std::string & field_name)
const
89 if (field_name ==
"evaluable")
91 else if (field_name ==
"ghosted")
94 return std::numeric_limits<unsigned long>::max();
registerMooseObject("MooseApp", ElemSideNeighborLayersTester)
const ExecFlagType EXEC_TIMESTEP_BEGIN
void ErrorVector unsigned int
User object to show information about the ElemSideNeighborLayer object's "ghosting" behaviors.
static InputParameters validParams()
std::set< dof_id_type > _evaluable_data
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
ElemSideNeighborLayersTester(const InputParameters ¶meters)
virtual unsigned long getElementalValueLong(dof_id_type element_id, const std::string &field_name) const override
virtual void finalize() override
Finalize.
virtual void execute() override
Execute method.
std::set< dof_id_type > _ghost_data
User object intermediate base class that declares an interface for providing generic fields by name.
static InputParameters validParams()
A MultiMooseEnum object to hold "execute_on" flags.
const libMesh::ConstElemRange & getNonlinearEvaluableElementRange()
MeshBase & getMesh()
Accessor for the underlying libMesh Mesh object.
virtual MooseMesh & mesh()=0
void set_union(T &data, const unsigned int root_id) const
SubProblem & _subproblem
Reference to the Subproblem for this user object.
FEProblemBase & _fe_problem
Reference to the FEProblemBase for this user object.
static constexpr processor_id_type invalid_processor_id
const Parallel::Communicator & _communicator
processor_id_type processor_id() const