17#include "libmesh/elem.h"
18#include "libmesh/mesh_base.h"
19#include "libmesh/boundary_info.h"
27 params.
set<
bool>(
"attach_geometric_early") =
false;
38 return "GhostEverything";
43 const MeshBase::const_element_iterator & range_end,
44 const processor_id_type p,
47 if (std::distance(range_begin, range_end) == 0)
50 static const CouplingMatrix *
const null_mat =
nullptr;
52 for (
const Elem *
const elem :
_mesh->active_element_ptr_range())
53 if (elem->processor_id() != p)
54 coupled_elements.emplace(elem, null_mat);
63std::unique_ptr<libMesh::GhostingFunctor>
registerMooseObject("MooseApp", GhostEverything)
std::unique_ptr< T > copyConstruct(const T &object)
Copy constructs the object object.
GhostEverything(const InputParameters &)
std::string getInfo() const override
Method for returning relationship manager information (suitable for console output).
virtual bool operator>=(const RelationshipManager &other) const override
Whether this relationship manager provides more or the same amount and type of ghosting as the rhs.
void operator()(const MeshBase::const_element_iterator &range_begin, const MeshBase::const_element_iterator &range_end, processor_id_type p, map_type &coupled_elements) override
static InputParameters validParams()
std::unique_ptr< GhostingFunctor > clone() const override
Factory & getFactory()
Retrieve a writable reference to the Factory associated with this App.
MooseApp & _app
The MOOSE application this is associated with.
RelationshipManagers are used for describing what kinds of non-local resources are needed for an obje...
virtual bool baseGreaterEqual(const RelationshipManager &rhs) const
Whether the base class provides more or the same amount and type of ghosting as the rhs.
static InputParameters validParams()
std::map< const Elem *, const CouplingMatrix *, CompareDofObjectsByPIDAndThenID > map_type