20 #ifndef LIBMESH_REPLICATED_MESH_H 21 #define LIBMESH_REPLICATED_MESH_H 85 virtual std::unique_ptr<MeshBase>
clone ()
const override 86 {
return libmesh_make_unique<ReplicatedMesh>(*this); }
96 virtual void clear()
override;
104 {
return cast_int<dof_id_type>(
_nodes.size()); }
107 {
return cast_int<dof_id_type>(
_nodes.size()); }
110 {
return cast_int<dof_id_type>(
_nodes.size()); }
116 {
return cast_int<dof_id_type>(
_elements.size()); }
119 {
return cast_int<dof_id_type>(
_elements.size()); }
124 {
return cast_int<dof_id_type>(
_elements.size()); }
126 #ifdef LIBMESH_ENABLE_UNIQUE_ID 215 bool clear_stitched_boundary_ids=
false,
217 bool use_binary_search=
true,
218 bool enforce_all_nodes_match_on_boundaries=
false);
226 bool clear_stitched_boundary_ids=
false,
228 bool use_binary_search=
true,
229 bool enforce_all_nodes_match_on_boundaries=
false);
238 virtual const_element_iterator
elements_end()
const override;
314 virtual const_element_iterator
level_elements_end (
unsigned int level)
const override;
381 virtual element_iterator
385 virtual element_iterator
389 virtual const_element_iterator
393 virtual const_element_iterator
397 #ifdef LIBMESH_ENABLE_AMR 411 #endif // LIBMESH_ENABLE_AMR 417 virtual node_iterator
nodes_end ()
override;
418 virtual const_node_iterator
nodes_begin ()
const override;
419 virtual const_node_iterator
nodes_end ()
const override;
450 virtual node_iterator
453 virtual node_iterator
456 virtual const_node_iterator
459 virtual const_node_iterator
486 bool clear_stitched_boundary_ids,
488 bool use_binary_search,
489 bool enforce_all_nodes_match_on_boundaries,
490 bool skip_find_neighbors);
511 #endif // LIBMESH_REPLICATED_MESH_H virtual element_iterator ancestor_elements_begin() override
virtual node_iterator evaluable_nodes_end(const DofMap &dof_map, unsigned int var_num=libMesh::invalid_uint) override
virtual Elem * add_elem(Elem *e) override
virtual element_iterator evaluable_elements_end(const DofMap &dof_map, unsigned int var_num=libMesh::invalid_uint) override
virtual element_iterator active_elements_end() override
Mesh data structure replicated on all processors.
virtual node_iterator nodes_end() override
virtual element_iterator active_unpartitioned_elements_end() override
A geometric point in (x,y,z) space associated with a DOF.
virtual node_iterator pid_nodes_end(processor_id_type proc_id) override
const unsigned int invalid_uint
virtual element_iterator semilocal_elements_end() override
virtual element_iterator flagged_elements_begin(unsigned char rflag) override
virtual element_iterator local_not_level_elements_begin(unsigned int level) override
std::vector< Elem * > _elements
virtual node_iterator bid_nodes_begin(boundary_id_type bndry_id) override
virtual ~ReplicatedMesh()
std::vector< Elem * >::const_iterator const_elem_iterator_imp
virtual SimpleRange< const_element_iterator > active_element_ptr_range() const override
virtual element_iterator active_local_elements_begin() override
virtual element_iterator active_semilocal_elements_end() override
void stitch_meshes(const ReplicatedMesh &other_mesh, boundary_id_type this_mesh_boundary, boundary_id_type other_mesh_boundary, Real tol=TOLERANCE, bool clear_stitched_boundary_ids=false, bool verbose=true, bool use_binary_search=true, bool enforce_all_nodes_match_on_boundaries=false)
std::vector< Node * >::iterator node_iterator_imp
virtual element_iterator not_ancestor_elements_end() override
virtual node_iterator bnd_nodes_begin() override
virtual Node * insert_node(Node *n) override
virtual element_iterator unpartitioned_elements_begin() override
virtual dof_id_type n_nodes() const override
virtual dof_id_type n_elem() const override
virtual element_iterator not_ancestor_elements_begin() override
The base class for all geometric element types.
uint8_t processor_id_type
virtual dof_id_type parallel_n_nodes() const override
virtual SimpleRange< const_node_iterator > node_ptr_range() const override
virtual element_iterator pid_elements_begin(processor_id_type proc_id) override
virtual element_iterator not_subactive_elements_end() override
static const Real TOLERANCE
virtual element_iterator elements_begin() override
virtual element_iterator active_subdomain_elements_begin(subdomain_id_type subdomain_id) override
virtual dof_id_type n_active_elem() const override
virtual element_iterator active_not_local_elements_begin() override
virtual element_iterator local_level_elements_begin(unsigned int level) override
virtual dof_id_type max_elem_id() const override
virtual element_iterator active_pid_elements_end(processor_id_type proc_id) override
virtual SimpleRange< node_iterator > node_ptr_range() override
virtual element_iterator level_elements_begin(unsigned int level) override
virtual element_iterator flagged_pid_elements_begin(unsigned char rflag, processor_id_type pid) override
virtual element_iterator flagged_pid_elements_end(unsigned char rflag, processor_id_type pid) override
virtual element_iterator active_pid_elements_begin(processor_id_type proc_id) override
virtual element_iterator not_active_elements_end() override
virtual unique_id_type parallel_max_unique_id() const override
virtual element_iterator local_level_elements_end(unsigned int level) override
Manages the degrees of freedom (DOFs) in a simulation.
virtual const Elem * query_elem_ptr(const dof_id_type i) const override
virtual element_iterator flagged_elements_end(unsigned char rflag) override
virtual Elem * insert_elem(Elem *e) override
virtual void reserve_nodes(const dof_id_type nn) override
virtual element_iterator local_not_level_elements_end(unsigned int level) override
virtual node_iterator bnd_nodes_end() override
virtual element_iterator elements_end() override
virtual const Elem * elem_ptr(const dof_id_type i) const override
virtual SimpleRange< element_iterator > active_element_ptr_range() override
virtual element_iterator semilocal_elements_begin() override
static const processor_id_type invalid_processor_id
virtual void clear() override
Base class for Replicated and Distributed meshes.
std::vector< Node * >::const_iterator const_node_iterator_imp
virtual element_iterator not_level_elements_begin(unsigned int level) override
virtual Node * add_point(const Point &p, const dof_id_type id=DofObject::invalid_id, const processor_id_type proc_id=DofObject::invalid_processor_id) override
virtual void reserve_elem(const dof_id_type ne) override
virtual element_iterator active_type_elements_begin(ElemType type) override
virtual node_iterator pid_nodes_begin(processor_id_type proc_id) override
virtual SimpleRange< const_node_iterator > local_node_ptr_range() const override
static const dof_id_type invalid_id
virtual element_iterator active_type_elements_end(ElemType type) override
virtual element_iterator ancestor_elements_end() override
std::vector< Node * > _nodes
virtual element_iterator local_elements_end() override
virtual element_iterator type_elements_begin(ElemType type) override
virtual element_iterator local_elements_begin() override
virtual void delete_node(Node *n) override
virtual element_iterator subactive_elements_end() override
virtual SimpleRange< const_element_iterator > active_local_element_ptr_range() const override
virtual element_iterator active_local_subdomain_elements_begin(subdomain_id_type subdomain_id) override
virtual element_iterator not_active_elements_begin() override
virtual element_iterator active_local_elements_end() override
virtual node_iterator local_nodes_begin() override
virtual void renumber_node(dof_id_type old_id, dof_id_type new_id) override
virtual void renumber_nodes_and_elements() override
virtual element_iterator not_level_elements_end(unsigned int level) override
virtual const Point & point(const dof_id_type i) const override
virtual void renumber_elem(dof_id_type old_id, dof_id_type new_id) override
virtual element_iterator not_local_elements_begin() override
virtual element_iterator evaluable_elements_begin(const DofMap &dof_map, unsigned int var_num=libMesh::invalid_uint) override
virtual Node * add_node(Node *n) override
virtual element_iterator active_local_subdomain_elements_end(subdomain_id_type subdomain_id) override
virtual dof_id_type max_node_id() const override
ReplicatedMesh & operator=(const ReplicatedMesh &)=delete
virtual element_iterator type_elements_end(ElemType type) override
virtual element_iterator facelocal_elements_end() override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void update_parallel_id_counts() override
virtual void fix_broken_node_and_element_numbering() override
virtual node_iterator evaluable_nodes_begin(const DofMap &dof_map, unsigned int var_num=libMesh::invalid_uint) override
virtual const Node * query_node_ptr(const dof_id_type i) const override
virtual dof_id_type parallel_n_elem() const override
virtual std::unique_ptr< MeshBase > clone() const override
void stitch_surfaces(boundary_id_type boundary_id_1, boundary_id_type boundary_id_2, Real tol=TOLERANCE, bool clear_stitched_boundary_ids=false, bool verbose=true, bool use_binary_search=true, bool enforce_all_nodes_match_on_boundaries=false)
virtual node_iterator bid_nodes_end(boundary_id_type bndry_id) override
std::vector< Elem * >::iterator elem_iterator_imp
virtual node_iterator nodes_begin() override
virtual element_iterator subactive_elements_begin() override
virtual const Node * node_ptr(const dof_id_type i) const override
virtual element_iterator active_semilocal_elements_begin() override
virtual node_iterator local_nodes_end() override
virtual element_iterator not_local_elements_end() override
void stitching_helper(const ReplicatedMesh *other_mesh, boundary_id_type boundary_id_1, boundary_id_type boundary_id_2, Real tol, bool clear_stitched_boundary_ids, bool verbose, bool use_binary_search, bool enforce_all_nodes_match_on_boundaries, bool skip_find_neighbors)
virtual SimpleRange< node_iterator > local_node_ptr_range() override
virtual element_iterator unpartitioned_elements_end() override
virtual element_iterator active_subdomain_set_elements_begin(std::set< subdomain_id_type > ss) override
virtual node_iterator active_nodes_end() override
ReplicatedMesh(const Parallel::Communicator &comm_in, unsigned char dim=1)
virtual void delete_elem(Elem *e) override
virtual element_iterator active_not_local_elements_end() override
virtual element_iterator pid_elements_end(processor_id_type proc_id) override
virtual node_iterator active_nodes_begin() override
virtual element_iterator active_subdomain_set_elements_end(std::set< subdomain_id_type > ss) override
virtual element_iterator active_elements_begin() override
A geometric point in (x,y,z) space.
virtual element_iterator active_subdomain_elements_end(subdomain_id_type subdomain_id) override
virtual element_iterator active_unpartitioned_elements_begin() override
virtual element_iterator not_subactive_elements_begin() override
virtual element_iterator facelocal_elements_begin() override
virtual SimpleRange< const_element_iterator > element_ptr_range() const override
virtual SimpleRange< element_iterator > active_local_element_ptr_range() override
virtual element_iterator level_elements_end(unsigned int level) override
virtual element_iterator ghost_elements_begin() override
virtual element_iterator ghost_elements_end() override
virtual SimpleRange< element_iterator > element_ptr_range() override