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")
virtual MooseMesh & mesh()=0
A MultiMooseEnum object to hold "execute_on" flags.
ElemSideNeighborLayersTester(const InputParameters ¶meters)
std::set< dof_id_type > _evaluable_data
const Parallel::Communicator & _communicator
auto max(const L &left, const R &right)
SubProblem & _subproblem
Reference to the Subproblem for this user object.
std::set< dof_id_type > _ghost_data
MeshBase & getMesh()
Accessor for the underlying libMesh Mesh object.
static const processor_id_type invalid_processor_id
const ExecFlagType EXEC_TIMESTEP_BEGIN
static InputParameters validParams()
static InputParameters validParams()
User object intermediate base class that declares an interface for providing generic fields by name...
virtual void finalize() override
Finalize.
FEProblemBase & _fe_problem
Reference to the FEProblemBase for this user object.
registerMooseObject("MooseApp", ElemSideNeighborLayersTester)
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
User object to show information about the ElemSideNeighborLayer object's "ghosting" behaviors...
processor_id_type processor_id() const
const libMesh::ConstElemRange & getNonlinearEvaluableElementRange()
void ErrorVector unsigned int
virtual void execute() override
Execute method.
virtual unsigned long getElementalValueLong(dof_id_type element_id, const std::string &field_name) const override
void set_union(T &data, const unsigned int root_id) const