libMesh
|
The DistributedMesh
class is derived from the MeshBase
class, and is intended to provide identical functionality to the user but be distributed rather than replicated across distributed-memory systems.
More...
#include <distributed_mesh.h>
Public Types | |
typedef Predicates::multi_predicate | Predicate |
We need an empty, generic class to act as a predicate for this and derived mesh classes. More... | |
Public Member Functions | |
DistributedMesh (const Parallel::Communicator &comm_in, unsigned char dim=1) | |
Constructor. More... | |
DistributedMesh (const UnstructuredMesh &other_mesh) | |
Copy-constructor. More... | |
DistributedMesh (const DistributedMesh &other_mesh) | |
Copy-constructor, possibly specialized for a distributed mesh. More... | |
DistributedMesh (DistributedMesh &&)=default | |
Move-constructor. More... | |
DistributedMesh & | operator= (const DistributedMesh &)=delete |
Copy and move assignment are not allowed. More... | |
DistributedMesh & | operator= (DistributedMesh &&)=delete |
virtual std::unique_ptr< MeshBase > | clone () const override |
Virtual copy-constructor, creates a copy of this mesh. More... | |
virtual | ~DistributedMesh () |
Destructor. More... | |
virtual void | clear () override |
Clear all internal data. More... | |
virtual void | redistribute () override |
Redistribute elements between processors. More... | |
virtual void | update_post_partitioning () override |
Recalculate cached data after elements and nodes have been repartitioned. More... | |
virtual bool | is_serial () const override |
virtual bool | is_serial_on_zero () const override |
virtual void | set_distributed () override |
Asserts that not all elements and nodes of the mesh necessarily exist on the current processor. More... | |
virtual bool | is_replicated () const override |
template<typename T > | |
void | libmesh_assert_valid_parallel_object_ids (const mapvector< T *, dof_id_type > &) const |
Verify id, processor_id, and if applicable unique_id consistency of a parallel objects container. More... | |
virtual void | libmesh_assert_valid_parallel_ids () const override |
Verify id and processor_id consistency of our elements and nodes containers. More... | |
void | libmesh_assert_valid_parallel_p_levels () const |
Verify p_level consistency of our elements containers. More... | |
void | libmesh_assert_valid_parallel_flags () const |
Verify refinement_flag and p_refinement_flag consistency of our elements containers. More... | |
template<typename T > | |
dof_id_type | renumber_dof_objects (mapvector< T *, dof_id_type > &) |
Renumber a parallel objects container. More... | |
virtual void | renumber_nodes_and_elements () override |
Remove nullptr elements from arrays. More... | |
virtual void | allgather () override |
Gathers all elements and nodes of the mesh onto every processor. More... | |
virtual void | gather_to_zero () override |
Gathers all elements and nodes of the mesh onto processor zero. More... | |
virtual void | delete_remote_elements () override |
Deletes all nonlocal elements of the mesh except for "ghosts" which touch a local element, and deletes all nodes which are not part of a local or ghost element. More... | |
virtual void | add_extra_ghost_elem (Elem *e) |
Inserts the element and adds it to a list of elements that should not get deleted or have their descendants deleted by delete_remote_elements. More... | |
virtual void | clear_extra_ghost_elems () |
Clears extra ghost elements. More... | |
virtual void | clear_extra_ghost_elems (const std::set< Elem * > &extra_ghost_elems) |
Clears specified extra ghost elements. More... | |
const std::set< Elem * > & | extra_ghost_elems () const |
Const accessor to the ghosted elements. More... | |
virtual dof_id_type | n_nodes () const override |
virtual dof_id_type | max_node_id () const override |
virtual void | reserve_nodes (const dof_id_type) override |
Reserves space for a known number of nodes. More... | |
virtual dof_id_type | n_elem () const override |
virtual dof_id_type | n_active_elem () const override |
virtual dof_id_type | max_elem_id () const override |
virtual void | reserve_elem (const dof_id_type) override |
Reserves space for a known number of elements. More... | |
virtual void | update_parallel_id_counts () override |
Updates parallel caches so that methods like n_elem() accurately reflect changes on other processors. More... | |
virtual dof_id_type | parallel_n_nodes () const override |
dof_id_type | parallel_max_node_id () const |
virtual dof_id_type | parallel_n_elem () const override |
dof_id_type | parallel_max_elem_id () const |
virtual unique_id_type | parallel_max_unique_id () const override |
virtual const Point & | point (const dof_id_type i) const override |
virtual const Node * | node_ptr (const dof_id_type i) const override |
virtual Node * | node_ptr (const dof_id_type i) override |
virtual const Node * | query_node_ptr (const dof_id_type i) const override |
virtual Node * | query_node_ptr (const dof_id_type i) override |
virtual const Elem * | elem_ptr (const dof_id_type i) const override |
virtual Elem * | elem_ptr (const dof_id_type i) override |
virtual const Elem * | query_elem_ptr (const dof_id_type i) const override |
virtual Elem * | query_elem_ptr (const dof_id_type i) 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 |
functions for adding /deleting nodes elements. More... | |
virtual Node * | add_node (Node *n) override |
Add Node n to the end of the vertex array. More... | |
virtual Node * | insert_node (Node *n) override |
Calls add_node(). More... | |
virtual void | own_node (Node &n) override |
Takes ownership of node n on this partition of a distributed mesh, by setting n.processor_id() to this->processor_id(), as well as changing n.id() and moving it in the mesh's internal container to give it a new authoritative id. More... | |
virtual void | delete_node (Node *n) override |
Removes the Node n from the mesh. More... | |
virtual void | renumber_node (dof_id_type old_id, dof_id_type new_id) override |
Changes the id of node old_id , both by changing node(old_id)->id() and by moving node(old_id) in the mesh's internal container. More... | |
virtual Elem * | add_elem (Elem *e) override |
Add elem e to the end of the element array. More... | |
virtual Elem * | insert_elem (Elem *e) override |
Insert elem e to the element array, preserving its id and replacing/deleting any existing element with the same id. More... | |
virtual void | delete_elem (Elem *e) override |
Removes element e from the mesh. More... | |
virtual void | renumber_elem (dof_id_type old_id, dof_id_type new_id) override |
Changes the id of element old_id , both by changing elem(old_id)->id() and by moving elem(old_id) in the mesh's internal container. More... | |
virtual void | fix_broken_node_and_element_numbering () override |
There is no reason for a user to ever call this function. More... | |
virtual element_iterator | elements_begin () override |
Elem iterator accessor functions. More... | |
virtual element_iterator | elements_end () override |
virtual const_element_iterator | elements_begin () const override |
virtual const_element_iterator | elements_end () const override |
virtual SimpleRange< element_iterator > | element_ptr_range () override |
virtual SimpleRange< const_element_iterator > | element_ptr_range () const override |
virtual element_iterator | active_elements_begin () override |
Active, local, and negation forms of the element iterators described above. More... | |
virtual element_iterator | active_elements_end () override |
virtual const_element_iterator | active_elements_begin () const override |
virtual const_element_iterator | active_elements_end () const override |
virtual SimpleRange< element_iterator > | active_element_ptr_range () override |
virtual SimpleRange< const_element_iterator > | active_element_ptr_range () const override |
virtual element_iterator | ancestor_elements_begin () override |
Iterate over elements for which elem->ancestor() is true. More... | |
virtual element_iterator | ancestor_elements_end () override |
virtual const_element_iterator | ancestor_elements_begin () const override |
virtual const_element_iterator | ancestor_elements_end () const override |
virtual element_iterator | subactive_elements_begin () override |
Iterate over elements for which elem->subactive() is true. More... | |
virtual element_iterator | subactive_elements_end () override |
virtual const_element_iterator | subactive_elements_begin () const override |
virtual const_element_iterator | subactive_elements_end () const override |
virtual element_iterator | not_active_elements_begin () override |
virtual element_iterator | not_active_elements_end () override |
virtual const_element_iterator | not_active_elements_begin () const override |
virtual const_element_iterator | not_active_elements_end () const override |
virtual element_iterator | not_ancestor_elements_begin () override |
virtual element_iterator | not_ancestor_elements_end () override |
virtual const_element_iterator | not_ancestor_elements_begin () const override |
virtual const_element_iterator | not_ancestor_elements_end () const override |
virtual element_iterator | not_subactive_elements_begin () override |
virtual element_iterator | not_subactive_elements_end () override |
virtual const_element_iterator | not_subactive_elements_begin () const override |
virtual const_element_iterator | not_subactive_elements_end () const override |
virtual element_iterator | local_elements_begin () override |
virtual element_iterator | local_elements_end () override |
virtual const_element_iterator | local_elements_begin () const override |
virtual const_element_iterator | local_elements_end () const override |
virtual element_iterator | semilocal_elements_begin () override |
Iterate over elements for which elem->is_semilocal() is true for the current processor. More... | |
virtual element_iterator | semilocal_elements_end () override |
virtual const_element_iterator | semilocal_elements_begin () const override |
virtual const_element_iterator | semilocal_elements_end () const override |
virtual element_iterator | active_semilocal_elements_begin () override |
virtual element_iterator | active_semilocal_elements_end () override |
virtual const_element_iterator | active_semilocal_elements_begin () const override |
virtual const_element_iterator | active_semilocal_elements_end () const override |
virtual element_iterator | facelocal_elements_begin () override |
Iterate over elements which are on or have a neighbor on the current processor. More... | |
virtual element_iterator | facelocal_elements_end () override |
virtual const_element_iterator | facelocal_elements_begin () const override |
virtual const_element_iterator | facelocal_elements_end () const override |
virtual element_iterator | not_local_elements_begin () override |
virtual element_iterator | not_local_elements_end () override |
virtual const_element_iterator | not_local_elements_begin () const override |
virtual const_element_iterator | not_local_elements_end () const override |
virtual element_iterator | active_local_elements_begin () override |
virtual element_iterator | active_local_elements_end () override |
virtual const_element_iterator | active_local_elements_begin () const override |
virtual const_element_iterator | active_local_elements_end () const override |
virtual SimpleRange< element_iterator > | active_local_element_ptr_range () override |
virtual SimpleRange< const_element_iterator > | active_local_element_ptr_range () const override |
virtual element_iterator | active_not_local_elements_begin () override |
virtual element_iterator | active_not_local_elements_end () override |
virtual const_element_iterator | active_not_local_elements_begin () const override |
virtual const_element_iterator | active_not_local_elements_end () const override |
virtual element_iterator | level_elements_begin (unsigned int level) override |
Iterate over elements of a given level. More... | |
virtual element_iterator | level_elements_end (unsigned int level) override |
virtual const_element_iterator | level_elements_begin (unsigned int level) const override |
virtual const_element_iterator | level_elements_end (unsigned int level) const override |
virtual element_iterator | not_level_elements_begin (unsigned int level) override |
virtual element_iterator | not_level_elements_end (unsigned int level) override |
virtual const_element_iterator | not_level_elements_begin (unsigned int level) const override |
virtual const_element_iterator | not_level_elements_end (unsigned int level) const override |
virtual element_iterator | local_level_elements_begin (unsigned int level) override |
virtual element_iterator | local_level_elements_end (unsigned int level) override |
virtual const_element_iterator | local_level_elements_begin (unsigned int level) const override |
virtual const_element_iterator | local_level_elements_end (unsigned int level) const override |
virtual element_iterator | local_not_level_elements_begin (unsigned int level) override |
virtual element_iterator | local_not_level_elements_end (unsigned int level) override |
virtual const_element_iterator | local_not_level_elements_begin (unsigned int level) const override |
virtual const_element_iterator | local_not_level_elements_end (unsigned int level) const override |
virtual element_iterator | pid_elements_begin (processor_id_type proc_id) override |
Iterate over all elements with a specified processor id. More... | |
virtual element_iterator | pid_elements_end (processor_id_type proc_id) override |
virtual const_element_iterator | pid_elements_begin (processor_id_type proc_id) const override |
virtual const_element_iterator | pid_elements_end (processor_id_type proc_id) const override |
virtual element_iterator | type_elements_begin (ElemType type) override |
Iterate over all elements with a specified geometric type. More... | |
virtual element_iterator | type_elements_end (ElemType type) override |
virtual const_element_iterator | type_elements_begin (ElemType type) const override |
virtual const_element_iterator | type_elements_end (ElemType type) const override |
virtual element_iterator | active_type_elements_begin (ElemType type) override |
virtual element_iterator | active_type_elements_end (ElemType type) override |
virtual const_element_iterator | active_type_elements_begin (ElemType type) const override |
virtual const_element_iterator | active_type_elements_end (ElemType type) const override |
virtual element_iterator | active_pid_elements_begin (processor_id_type proc_id) override |
virtual element_iterator | active_pid_elements_end (processor_id_type proc_id) override |
virtual const_element_iterator | active_pid_elements_begin (processor_id_type proc_id) const override |
virtual const_element_iterator | active_pid_elements_end (processor_id_type proc_id) const override |
virtual element_iterator | unpartitioned_elements_begin () override |
Iterate over unpartitioned elements in the Mesh. More... | |
virtual element_iterator | unpartitioned_elements_end () override |
virtual const_element_iterator | unpartitioned_elements_begin () const override |
virtual const_element_iterator | unpartitioned_elements_end () const override |
virtual element_iterator | active_unpartitioned_elements_begin () override |
Iterate over active unpartitioned elements in the Mesh. More... | |
virtual element_iterator | active_unpartitioned_elements_end () override |
virtual const_element_iterator | active_unpartitioned_elements_begin () const override |
virtual const_element_iterator | active_unpartitioned_elements_end () const override |
virtual element_iterator | active_local_subdomain_elements_begin (subdomain_id_type subdomain_id) override |
virtual element_iterator | active_local_subdomain_elements_end (subdomain_id_type subdomain_id) override |
virtual const_element_iterator | active_local_subdomain_elements_begin (subdomain_id_type subdomain_id) const override |
virtual const_element_iterator | active_local_subdomain_elements_end (subdomain_id_type subdomain_id) const override |
virtual SimpleRange< element_iterator > | active_local_subdomain_elements_ptr_range (subdomain_id_type subdomain_id) override |
virtual SimpleRange< const_element_iterator > | active_local_subdomain_elements_ptr_range (subdomain_id_type subdomain_id) const override |
virtual element_iterator | active_subdomain_elements_begin (subdomain_id_type subdomain_id) override |
virtual element_iterator | active_subdomain_elements_end (subdomain_id_type subdomain_id) override |
virtual const_element_iterator | active_subdomain_elements_begin (subdomain_id_type subdomain_id) const override |
virtual const_element_iterator | active_subdomain_elements_end (subdomain_id_type subdomain_id) const override |
virtual SimpleRange< element_iterator > | active_subdomain_elements_ptr_range (subdomain_id_type subdomain_id) override |
virtual SimpleRange< const_element_iterator > | active_subdomain_elements_ptr_range (subdomain_id_type subdomain_id) const override |
virtual element_iterator | active_subdomain_set_elements_begin (std::set< subdomain_id_type > ss) override |
virtual element_iterator | active_subdomain_set_elements_end (std::set< subdomain_id_type > ss) override |
virtual const_element_iterator | active_subdomain_set_elements_begin (std::set< subdomain_id_type > ss) const override |
virtual const_element_iterator | active_subdomain_set_elements_end (std::set< subdomain_id_type > ss) const override |
virtual SimpleRange< element_iterator > | active_subdomain_set_elements_ptr_range (std::set< subdomain_id_type > ss) override |
virtual SimpleRange< const_element_iterator > | active_subdomain_set_elements_ptr_range (std::set< subdomain_id_type > ss) const override |
virtual element_iterator | ghost_elements_begin () override |
Iterate over "ghost" elements in the Mesh. More... | |
virtual element_iterator | ghost_elements_end () override |
virtual const_element_iterator | ghost_elements_begin () const override |
virtual const_element_iterator | ghost_elements_end () const override |
virtual element_iterator | evaluable_elements_begin (const DofMap &dof_map, unsigned int var_num=libMesh::invalid_uint) override |
Iterate over elements in the Mesh where the solution (as distributed by the given DofMap) can be evaluated, for the given variable var_num, or for all variables by default. More... | |
virtual element_iterator | evaluable_elements_end (const DofMap &dof_map, unsigned int var_num=libMesh::invalid_uint) override |
virtual const_element_iterator | evaluable_elements_begin (const DofMap &dof_map, unsigned int var_num=libMesh::invalid_uint) const override |
virtual const_element_iterator | evaluable_elements_end (const DofMap &dof_map, unsigned int var_num=libMesh::invalid_uint) const override |
virtual element_iterator | flagged_elements_begin (unsigned char rflag) override |
Iterate over all elements with a specified refinement flag. More... | |
virtual element_iterator | flagged_elements_end (unsigned char rflag) override |
virtual const_element_iterator | flagged_elements_begin (unsigned char rflag) const override |
virtual const_element_iterator | flagged_elements_end (unsigned char rflag) const override |
virtual element_iterator | flagged_pid_elements_begin (unsigned char rflag, processor_id_type pid) override |
Iterate over all elements with a specified refinement flag on a specified processor. More... | |
virtual element_iterator | flagged_pid_elements_end (unsigned char rflag, processor_id_type pid) override |
virtual const_element_iterator | flagged_pid_elements_begin (unsigned char rflag, processor_id_type pid) const override |
virtual const_element_iterator | flagged_pid_elements_end (unsigned char rflag, processor_id_type pid) const override |
virtual node_iterator | nodes_begin () override |
Node iterator accessor functions. More... | |
virtual node_iterator | nodes_end () override |
virtual const_node_iterator | nodes_begin () const override |
virtual const_node_iterator | nodes_end () const override |
virtual SimpleRange< node_iterator > | node_ptr_range () override |
virtual SimpleRange< const_node_iterator > | node_ptr_range () const override |
virtual node_iterator | active_nodes_begin () override |
Iterate over only the active nodes in the Mesh. More... | |
virtual node_iterator | active_nodes_end () override |
virtual const_node_iterator | active_nodes_begin () const override |
virtual const_node_iterator | active_nodes_end () const override |
virtual node_iterator | local_nodes_begin () override |
Iterate over local nodes (nodes whose processor_id() matches the current processor). More... | |
virtual node_iterator | local_nodes_end () override |
virtual const_node_iterator | local_nodes_begin () const override |
virtual const_node_iterator | local_nodes_end () const override |
virtual SimpleRange< node_iterator > | local_node_ptr_range () override |
virtual SimpleRange< const_node_iterator > | local_node_ptr_range () const override |
virtual node_iterator | pid_nodes_begin (processor_id_type proc_id) override |
Iterate over nodes with processor_id() == proc_id. More... | |
virtual node_iterator | pid_nodes_end (processor_id_type proc_id) override |
virtual const_node_iterator | pid_nodes_begin (processor_id_type proc_id) const override |
virtual const_node_iterator | pid_nodes_end (processor_id_type proc_id) const override |
virtual node_iterator | bid_nodes_begin (boundary_id_type bndry_id) override |
Iterate over nodes for which BoundaryInfo::has_boundary_id(node, bndry_id) is true. More... | |
virtual node_iterator | bid_nodes_end (boundary_id_type bndry_id) override |
virtual const_node_iterator | bid_nodes_begin (boundary_id_type bndry_id) const override |
virtual const_node_iterator | bid_nodes_end (boundary_id_type bndry_id) const override |
virtual node_iterator | bnd_nodes_begin () override |
Iterate over nodes for which BoundaryInfo::n_boundary_ids(node) > 0. More... | |
virtual node_iterator | bnd_nodes_end () override |
virtual const_node_iterator | bnd_nodes_begin () const override |
virtual const_node_iterator | bnd_nodes_end () const override |
virtual node_iterator | evaluable_nodes_begin (const DofMap &dof_map, unsigned int var_num=libMesh::invalid_uint) override |
Iterate over nodes in the Mesh where the solution (as distributed by the given DofMap) can be evaluated, for the given variable var_num, or for all variables by default. More... | |
virtual node_iterator | evaluable_nodes_end (const DofMap &dof_map, unsigned int var_num=libMesh::invalid_uint) override |
virtual const_node_iterator | evaluable_nodes_begin (const DofMap &dof_map, unsigned int var_num=libMesh::invalid_uint) const override |
virtual const_node_iterator | evaluable_nodes_end (const DofMap &dof_map, unsigned int var_num=libMesh::invalid_uint) const override |
virtual void | read (const std::string &name, void *mesh_data=nullptr, bool skip_renumber_nodes_and_elements=false, bool skip_find_neighbors=false) override |
Reads the file specified by name . More... | |
virtual void | write (const std::string &name) override |
Write the file specified by name . More... | |
void | write (const std::string &name, const std::vector< Number > &values, const std::vector< std::string > &variable_names) |
Write to the file specified by name . More... | |
virtual void | all_first_order () override |
Converts a mesh with higher-order elements into a mesh with linear elements. More... | |
virtual void | all_second_order (const bool full_ordered=true) override |
Converts a (conforming, non-refined) mesh with linear elements into a mesh with second-order elements. More... | |
void | create_pid_mesh (UnstructuredMesh &pid_mesh, const processor_id_type pid) const |
Generates a new mesh containing all the elements which are assigned to processor pid . More... | |
void | create_submesh (UnstructuredMesh &new_mesh, const const_element_iterator &it, const const_element_iterator &it_end) const |
Constructs a mesh called "new_mesh" from the current mesh by iterating over the elements between it and it_end and adding them to the new mesh. More... | |
virtual void | copy_nodes_and_elements (const UnstructuredMesh &other_mesh, const bool skip_find_neighbors=false, dof_id_type element_id_offset=0, dof_id_type node_id_offset=0, unique_id_type unique_id_offset=0) |
Deep copy of nodes and elements from another unstructured mesh class (used by subclass copy constructors and by mesh merging operations) More... | |
virtual void | find_neighbors (const bool reset_remote_elements=false, const bool reset_current_list=true) override |
Other functions from MeshBase requiring re-definition. More... | |
virtual bool | contract () override |
Delete subactive (i.e. More... | |
virtual std::unique_ptr< Partitioner > & | partitioner () |
A partitioner to use at each prepare_for_use() More... | |
const BoundaryInfo & | get_boundary_info () const |
The information about boundary ids on the mesh. More... | |
BoundaryInfo & | get_boundary_info () |
Writable information about boundary ids on the mesh. More... | |
bool | is_prepared () const |
unsigned int | mesh_dimension () const |
void | set_mesh_dimension (unsigned char d) |
Resets the logical dimension of the mesh. More... | |
const std::set< unsigned char > & | elem_dimensions () const |
void | set_elem_dimensions (const std::set< unsigned char > &elem_dims) |
Most of the time you should not need to call this, as the element dimensions will be set automatically by a call to cache_elem_dims(), therefore only call this if you know what you're doing. More... | |
unsigned int | spatial_dimension () const |
void | set_spatial_dimension (unsigned char d) |
Sets the "spatial dimension" of the Mesh. More... | |
dof_id_type | n_nodes_on_proc (const processor_id_type proc) const |
dof_id_type | n_local_nodes () const |
dof_id_type | n_unpartitioned_nodes () const |
unique_id_type | next_unique_id () |
void | set_next_unique_id (unique_id_type id) |
Sets the next unique id to be used. More... | |
dof_id_type | n_elem_on_proc (const processor_id_type proc) const |
dof_id_type | n_local_elem () const |
dof_id_type | n_unpartitioned_elem () const |
dof_id_type | n_active_elem_on_proc (const processor_id_type proc) const |
dof_id_type | n_active_local_elem () const |
dof_id_type | n_sub_elem () const |
dof_id_type | n_active_sub_elem () const |
Same as n_sub_elem() , but only counts active elements. More... | |
virtual const Node & | node_ref (const dof_id_type i) const |
virtual Node & | node_ref (const dof_id_type i) |
virtual const Node & | node (const dof_id_type i) const |
virtual Node & | node (const dof_id_type i) |
virtual const Elem & | elem_ref (const dof_id_type i) const |
virtual Elem & | elem_ref (const dof_id_type i) |
virtual const Elem * | elem (const dof_id_type i) const |
virtual Elem * | elem (const dof_id_type i) |
virtual const Elem * | query_elem (const dof_id_type i) const |
virtual Elem * | query_elem (const dof_id_type i) |
ElemMappingType | default_mapping_type () const |
Returns the default master space to physical space mapping basis functions to be used on newly added elements. More... | |
void | set_default_mapping_type (const ElemMappingType type) |
Set the default master space to physical space mapping basis functions to be used on newly added elements. More... | |
unsigned char | default_mapping_data () const |
Returns any default data value used by the master space to physical space mapping. More... | |
void | set_default_mapping_data (const unsigned char data) |
Set the default master space to physical space mapping basis functions to be used on newly added elements. More... | |
unsigned int | add_elem_integer (const std::string &name, bool allocate_data=true) |
Register an integer datum (of type dof_id_type) to be added to each element in the mesh. More... | |
std::vector< unsigned int > | add_elem_integers (const std::vector< std::string > &names, bool allocate_data=true) |
Register integer data (of type dof_id_type) to be added to each element in the mesh, one string name for each new integer. More... | |
unsigned int | get_elem_integer_index (const std::string &name) const |
bool | has_elem_integer (const std::string &name) const |
const std::string & | get_elem_integer_name (unsigned int i) const |
unsigned int | n_elem_integers () const |
template<typename T > | |
unsigned int | add_elem_datum (const std::string &name, bool allocate_data=true) |
Register a datum (of type T) to be added to each element in the mesh. More... | |
template<typename T > | |
std::vector< unsigned int > | add_elem_data (const std::vector< std::string > &names, bool allocate_data=true) |
Register data (of type T) to be added to each element in the mesh. More... | |
unsigned int | add_node_integer (const std::string &name, bool allocate_data=true) |
Register an integer datum (of type dof_id_type) to be added to each node in the mesh. More... | |
std::vector< unsigned int > | add_node_integers (const std::vector< std::string > &names, bool allocate_data=true) |
Register integer data (of type dof_id_type) to be added to each node in the mesh. More... | |
unsigned int | get_node_integer_index (const std::string &name) const |
bool | has_node_integer (const std::string &name) const |
const std::string & | get_node_integer_name (unsigned int i) const |
unsigned int | n_node_integers () const |
template<typename T > | |
unsigned int | add_node_datum (const std::string &name, bool allocate_data=true) |
Register a datum (of type T) to be added to each node in the mesh. More... | |
template<typename T > | |
std::vector< unsigned int > | add_node_data (const std::vector< std::string > &name, bool allocate_data=true) |
Register data (of type T) to be added to each node in the mesh. More... | |
void | prepare_for_use (const bool skip_renumber_nodes_and_elements=false, const bool skip_find_neighbors=false) |
Prepare a newly ecreated (or read) mesh for use. More... | |
virtual void | partition (const unsigned int n_parts) |
Call the default partitioner (currently metis_partition() ). More... | |
void | partition () |
void | allow_renumbering (bool allow) |
If false is passed in then this mesh will no longer be renumbered when being prepared for use. More... | |
bool | allow_renumbering () const |
void | allow_remote_element_removal (bool allow) |
If false is passed in then this mesh will no longer have remote elements deleted when being prepared for use; i.e. More... | |
bool | allow_remote_element_removal () const |
void | skip_noncritical_partitioning (bool skip) |
If true is passed in then the elements on this mesh will no longer be (re)partitioned, and the nodes on this mesh will only be repartitioned if they are found "orphaned" via coarsening or other removal of the last element responsible for their node/element processor id consistency. More... | |
bool | skip_noncritical_partitioning () const |
void | skip_partitioning (bool skip) |
If true is passed in then nothing on this mesh will be (re)partitioned. More... | |
bool | skip_partitioning () const |
void | add_ghosting_functor (GhostingFunctor &ghosting_functor) |
Adds a functor which can specify ghosting requirements for use on distributed meshes. More... | |
void | add_ghosting_functor (std::shared_ptr< GhostingFunctor > ghosting_functor) |
Adds a functor which can specify ghosting requirements for use on distributed meshes. More... | |
void | remove_ghosting_functor (GhostingFunctor &ghosting_functor) |
Removes a functor which was previously added to the set of ghosting functors. More... | |
std::set< GhostingFunctor * >::const_iterator | ghosting_functors_begin () const |
Beginning of range of ghosting functors. More... | |
std::set< GhostingFunctor * >::const_iterator | ghosting_functors_end () const |
End of range of ghosting functors. More... | |
GhostingFunctor & | default_ghosting () |
Default ghosting functor. More... | |
void | subdomain_ids (std::set< subdomain_id_type > &ids) const |
Constructs a list of all subdomain identifiers in the global mesh. More... | |
subdomain_id_type | n_subdomains () const |
unsigned int | n_partitions () const |
std::string | get_info () const |
void | print_info (std::ostream &os=libMesh::out) const |
Prints relevant information about the mesh. More... | |
unsigned int | recalculate_n_partitions () |
In a few (very rare) cases, the user may have manually tagged the elements with specific processor IDs by hand, without using a partitioner. More... | |
const PointLocatorBase & | point_locator () const |
std::unique_ptr< PointLocatorBase > | sub_point_locator () const |
void | set_point_locator_close_to_point_tol (Real val) |
Set value used by PointLocatorBase::close_to_point_tol(). More... | |
Real | get_point_locator_close_to_point_tol () const |
void | clear_point_locator () |
Releases the current PointLocator object. More... | |
void | set_count_lower_dim_elems_in_point_locator (bool count_lower_dim_elems) |
In the point locator, do we count lower dimensional elements when we refine point locator regions? This is relevant in tree-based point locators, for example. More... | |
bool | get_count_lower_dim_elems_in_point_locator () const |
Get the current value of _count_lower_dim_elems_in_point_locator. More... | |
std::string & | subdomain_name (subdomain_id_type id) |
const std::string & | subdomain_name (subdomain_id_type id) const |
subdomain_id_type | get_id_by_name (const std::string &name) const |
std::map< subdomain_id_type, std::string > & | set_subdomain_name_map () |
const std::map< subdomain_id_type, std::string > & | get_subdomain_name_map () const |
void | cache_elem_dims () |
Search the mesh and cache the different dimensions of the elements present in the mesh. More... | |
void | detect_interior_parents () |
Search the mesh for elements that have a neighboring element of dim+1 and set that element as the interior parent. More... | |
const Parallel::Communicator & | comm () const |
processor_id_type | n_processors () const |
processor_id_type | processor_id () const |
Public Attributes | |
std::unique_ptr< BoundaryInfo > | boundary_info |
This class holds the boundary information. More... | |
Protected Member Functions | |
unsigned int & | set_n_partitions () |
void | size_elem_extra_integers () |
Size extra-integer arrays of all elements in the mesh. More... | |
void | size_node_extra_integers () |
Size extra-integer arrays of all nodes in the mesh. More... | |
std::pair< std::vector< unsigned int >, std::vector< unsigned int > > | merge_extra_integer_names (const MeshBase &other) |
Merge extra-integer arrays from an other mesh. More... | |
Protected Attributes | |
mapvector< Node *, dof_id_type > | _nodes |
The vertices (spatial coordinates) of the mesh. More... | |
mapvector< Elem *, dof_id_type > | _elements |
The elements in the mesh. More... | |
bool | _is_serial |
A boolean remembering whether we're serialized or not. More... | |
bool | _is_serial_on_proc_0 |
A boolean remembering whether we're serialized to proc 0 or not. More... | |
dof_id_type | _n_nodes |
Cached data from the last renumber_nodes_and_elements call. More... | |
dof_id_type | _n_elem |
dof_id_type | _max_node_id |
dof_id_type | _max_elem_id |
dof_id_type | _next_free_local_node_id |
Guaranteed globally unused IDs for use when adding new nodes or elements. More... | |
dof_id_type | _next_free_local_elem_id |
dof_id_type | _next_free_unpartitioned_node_id |
dof_id_type | _next_free_unpartitioned_elem_id |
unique_id_type | _next_unpartitioned_unique_id |
The next available unique id for assigning ids to unpartitioned DOF objects. More... | |
std::set< Elem * > | _extra_ghost_elems |
These are extra ghost elements that we want to make sure not to delete when we call delete_remote_elements() More... | |
unsigned int | _n_parts |
The number of partitions the mesh has. More... | |
ElemMappingType | _default_mapping_type |
The default mapping type (typically Lagrange) between master and physical space to assign to newly added elements. More... | |
unsigned char | _default_mapping_data |
The default mapping data (unused with Lagrange, used for nodal weight lookup index with rational bases) to assign to newly added elements. More... | |
bool | _is_prepared |
Flag indicating if the mesh has been prepared for use. More... | |
std::unique_ptr< PointLocatorBase > | _point_locator |
A PointLocator class for this mesh. More... | |
bool | _count_lower_dim_elems_in_point_locator |
Do we count lower dimensional elements in point locator refinement? This is relevant in tree-based point locators, for example. More... | |
std::unique_ptr< Partitioner > | _partitioner |
A partitioner to use at each prepare_for_use(). More... | |
unique_id_type | _next_unique_id |
The next available unique id for assigning ids to DOF objects. More... | |
bool | _skip_noncritical_partitioning |
If this is true then no partitioning should be done with the possible exception of orphaned nodes. More... | |
bool | _skip_all_partitioning |
If this is true then no partitioning should be done. More... | |
bool | _skip_renumber_nodes_and_elements |
If this is true then renumbering will be kept to a minimum. More... | |
bool | _allow_remote_element_removal |
If this is false then even on DistributedMesh remote elements will not be deleted during mesh preparation. More... | |
std::map< subdomain_id_type, std::string > | _block_id_to_name |
This structure maintains the mapping of named blocks for file formats that support named blocks. More... | |
std::set< unsigned char > | _elem_dims |
We cache the dimension of the elements present in the mesh. More... | |
unsigned char | _spatial_dimension |
The "spatial dimension" of the Mesh. More... | |
std::vector< std::string > | _elem_integer_names |
The array of names for integer data associated with each element in the mesh. More... | |
std::vector< std::string > | _node_integer_names |
The array of names for integer data associated with each node in the mesh. More... | |
std::unique_ptr< GhostingFunctor > | _default_ghosting |
The default geometric GhostingFunctor, used to implement standard libMesh element ghosting behavior. More... | |
std::set< GhostingFunctor * > | _ghosting_functors |
The list of all GhostingFunctor objects to be used when distributing a DistributedMesh. More... | |
std::map< GhostingFunctor *, std::shared_ptr< GhostingFunctor > > | _shared_functors |
Hang on to references to any GhostingFunctor objects we were passed in shared_ptr form. More... | |
Real | _point_locator_close_to_point_tol |
If nonzero, we will call PointLocatorBase::set_close_to_point_tol() on any PointLocators that we create. More... | |
const Parallel::Communicator & | _communicator |
Private Types | |
typedef mapvector< Elem *, dof_id_type >::veclike_iterator | elem_iterator_imp |
Typedefs for the container implementation. More... | |
typedef mapvector< Elem *, dof_id_type >::const_veclike_iterator | const_elem_iterator_imp |
typedef mapvector< Node *, dof_id_type >::veclike_iterator | node_iterator_imp |
Typedefs for the container implementation. More... | |
typedef mapvector< Node *, dof_id_type >::const_veclike_iterator | const_node_iterator_imp |
The DistributedMesh
class is derived from the MeshBase
class, and is intended to provide identical functionality to the user but be distributed rather than replicated across distributed-memory systems.
Mesh data structure which is distributed across all processors.
Definition at line 50 of file distributed_mesh.h.
|
private |
Definition at line 601 of file distributed_mesh.h.
|
private |
Definition at line 608 of file distributed_mesh.h.
|
private |
Typedefs for the container implementation.
In this case, it's just a std::vector<Elem *>.
Definition at line 600 of file distributed_mesh.h.
|
private |
Typedefs for the container implementation.
In this case, it's just a std::vector<Node *>.
Definition at line 607 of file distributed_mesh.h.
|
inherited |
We need an empty, generic class to act as a predicate for this and derived mesh classes.
Definition at line 1209 of file mesh_base.h.
|
explicit |
Constructor.
Takes dim
, the dimension of the mesh. The mesh dimension can be changed (and may automatically be changed by mesh generation/loading) later.
Definition at line 40 of file distributed_mesh.C.
References libMesh::MeshBase::_next_unique_id, libMesh::MeshBase::_partitioner, and libMesh::ParallelObject::processor_id().
libMesh::DistributedMesh::DistributedMesh | ( | const UnstructuredMesh & | other_mesh | ) |
Copy-constructor.
This should be able to take a replicated or distributed mesh.
Definition at line 132 of file distributed_mesh.C.
References libMesh::MeshBase::_next_unique_id, libMesh::UnstructuredMesh::copy_nodes_and_elements(), libMesh::MeshBase::get_boundary_info(), libMesh::MeshBase::get_subdomain_name_map(), libMesh::MeshBase::parallel_max_unique_id(), libMesh::MeshBase::set_subdomain_name_map(), and update_parallel_id_counts().
libMesh::DistributedMesh::DistributedMesh | ( | const DistributedMesh & | other_mesh | ) |
Copy-constructor, possibly specialized for a distributed mesh.
Definition at line 72 of file distributed_mesh.C.
References _extra_ghost_elems, _max_elem_id, _max_node_id, _n_elem, _n_nodes, _next_free_local_elem_id, _next_free_local_node_id, _next_free_unpartitioned_elem_id, _next_free_unpartitioned_node_id, libMesh::MeshBase::_next_unique_id, _next_unpartitioned_unique_id, libMesh::UnstructuredMesh::copy_nodes_and_elements(), libMesh::MeshBase::elem(), elem_ptr(), libMesh::MeshBase::get_boundary_info(), libMesh::MeshBase::get_subdomain_name_map(), libMesh::DofObject::id(), max_elem_id(), max_node_id(), n_elem(), n_nodes(), and libMesh::MeshBase::set_subdomain_name_map().
|
default |
Move-constructor.
|
virtual |
Destructor.
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 316 of file distributed_mesh.h.
References active_elements_begin(), and active_elements_end().
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 315 of file distributed_mesh.h.
References active_elements_begin(), and active_elements_end().
Referenced by FETest< order, family, elem_type >::setUp().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Active, local, and negation forms of the element iterators described above.
An "active" element is an element without children (i.e. has not been refined). A "local" element is one whose processor_id() matches the current processor.
Implements libMesh::MeshBase.
Referenced by active_element_ptr_range().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
Referenced by active_element_ptr_range().
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 373 of file distributed_mesh.h.
References active_local_elements_begin(), and active_local_elements_end().
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 372 of file distributed_mesh.h.
References active_local_elements_begin(), and active_local_elements_end().
Referenced by RationalMapTest< elem_type >::setUp(), FETest< order, family, elem_type >::setUp(), ElemTest< elem_type >::test_bounding_box(), and SlitMeshRefinedSystemTest::testRestart().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
Referenced by active_local_element_ptr_range(), main(), and n_active_elem().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
Referenced by active_local_element_ptr_range(), and n_active_elem().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
Referenced by active_local_subdomain_elements_ptr_range().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
Referenced by active_local_subdomain_elements_ptr_range().
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 436 of file distributed_mesh.h.
References active_local_subdomain_elements_begin(), and active_local_subdomain_elements_end().
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 434 of file distributed_mesh.h.
References active_local_subdomain_elements_begin(), and active_local_subdomain_elements_end().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over only the active nodes in the Mesh.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
Referenced by n_active_elem().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
Referenced by n_active_elem().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
Referenced by active_subdomain_elements_ptr_range().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
Referenced by active_subdomain_elements_ptr_range().
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 445 of file distributed_mesh.h.
References active_subdomain_elements_begin(), and active_subdomain_elements_end().
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 443 of file distributed_mesh.h.
References active_subdomain_elements_begin(), and active_subdomain_elements_end().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
Referenced by active_subdomain_set_elements_ptr_range().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
Referenced by active_subdomain_set_elements_ptr_range().
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 454 of file distributed_mesh.h.
References active_subdomain_set_elements_begin(), and active_subdomain_set_elements_end().
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 452 of file distributed_mesh.h.
References active_subdomain_set_elements_begin(), and active_subdomain_set_elements_end().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over active unpartitioned elements in the Mesh.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
Add elem e
to the end of the element array.
To add an element locally, set e->processor_id() before adding it. To ensure a specific element id, call e->set_id() before adding it; only do this in parallel if you are manually keeping ids consistent.
Users should call MeshBase::prepare_for_use() after elements are added to and/or deleted from the mesh.
Implements libMesh::MeshBase.
Definition at line 436 of file distributed_mesh.C.
References libMesh::MeshBase::_elem_integer_names, _elements, _max_elem_id, _n_elem, _next_free_local_elem_id, _next_free_unpartitioned_elem_id, libMesh::MeshBase::_next_unique_id, _next_unpartitioned_unique_id, libMesh::DofObject::add_extra_integers(), libMesh::MeshBase::default_mapping_data(), libMesh::MeshBase::default_mapping_type(), libMesh::DofObject::id(), libMesh::DofObject::invalid_processor_id, libMesh::libmesh_assert(), libMesh::ParallelObject::n_processors(), libMesh::ParallelObject::processor_id(), libMesh::DofObject::processor_id(), libMesh::DofObject::set_id(), libMesh::Elem::set_mapping_data(), libMesh::Elem::set_mapping_type(), libMesh::DofObject::set_unique_id(), libMesh::DofObject::valid_id(), and libMesh::DofObject::valid_unique_id().
Referenced by add_extra_ghost_elem(), and SlitMeshTest::build_mesh().
|
inlineinherited |
Register data (of type T) to be added to each element in the mesh.
If the mesh already has elements, data is allocated in each.
If type T is larger than dof_id_type, each datum will end up spanning multiple index values, but will be queried with the starting index number.
No type checking is done with this function! If you add data of type T, don't try to access it with a call specifying type U.
Definition at line 1992 of file mesh_base.h.
References libMesh::MeshBase::_elem_integer_names, libMesh::index_range(), and libMesh::MeshBase::size_elem_extra_integers().
|
inlineinherited |
Register a datum (of type T) to be added to each element in the mesh.
If the mesh already has elements, data by default is allocated in each of them. This may be expensive to do repeatedly; use add_elem_data instead.
If type T is larger than dof_id_type, its data will end up spanning multiple index values, but will be queried with the starting index number.
No type checking is done with this function! If you add data of type T, don't try to access it with a call specifying type U.
Definition at line 1973 of file mesh_base.h.
References libMesh::MeshBase::_elem_integer_names, libMesh::MeshBase::add_elem_integer(), and libMesh::MeshBase::size_elem_extra_integers().
Referenced by ExtraIntegersTest::build_mesh().
|
inherited |
Register an integer datum (of type dof_id_type) to be added to each element in the mesh.
If the mesh already has elements, data by default is allocated in each of them. This may be expensive to do repeatedly; use add_elem_integers instead.
Definition at line 176 of file mesh_base.C.
References libMesh::MeshBase::_elem_integer_names, libMesh::index_range(), libMesh::Quality::name(), and libMesh::MeshBase::size_elem_extra_integers().
Referenced by libMesh::MeshBase::add_elem_datum(), ExtraIntegersTest::build_mesh(), ExtraIntegersTest::checkpoint_helper(), libMesh::CheckpointIO::read_header(), and ExtraIntegersTest::test_helper().
|
inherited |
Register integer data (of type dof_id_type) to be added to each element in the mesh, one string name for each new integer.
If the mesh already has elements, data by default is allocated in each of them.
Definition at line 191 of file mesh_base.C.
References libMesh::MeshBase::_elem_integer_names, libMesh::index_range(), and libMesh::Quality::name().
Referenced by MeshStitchTest::testMeshStitch().
|
virtual |
Inserts the element and adds it to a list of elements that should not get deleted or have their descendants deleted by delete_remote_elements.
This is handy for inserting otherwise off-processor elements that you want to keep track of on this processor.
Definition at line 1475 of file distributed_mesh.C.
References _extra_ghost_elems, and add_elem().
|
inlineinherited |
Adds a functor which can specify ghosting requirements for use on distributed meshes.
Multiple ghosting functors can be added; any element which is required by any functor will be ghosted.
GhostingFunctor memory must be managed by the code which calls this function; the GhostingFunctor lifetime is expected to extend until either the functor is removed or the Mesh is destructed.
Definition at line 1089 of file mesh_base.h.
References libMesh::MeshBase::_ghosting_functors.
Referenced by libMesh::DofMap::add_algebraic_ghosting_functor(), libMesh::DofMap::add_coupling_functor(), libMesh::MeshBase::add_ghosting_functor(), main(), and EquationSystemsTest::testDisableDefaultGhosting().
|
inlineinherited |
Adds a functor which can specify ghosting requirements for use on distributed meshes.
Multiple ghosting functors can be added; any element which is required by any functor will be ghosted.
GhostingFunctor memory when using this method is managed by the shared_ptr mechanism.
Definition at line 1100 of file mesh_base.h.
References libMesh::MeshBase::_shared_functors, and libMesh::MeshBase::add_ghosting_functor().
Add Node
n
to the end of the vertex array.
Implements libMesh::MeshBase.
Definition at line 663 of file distributed_mesh.C.
References _max_node_id, _n_nodes, _next_free_local_node_id, _next_free_unpartitioned_node_id, libMesh::MeshBase::_next_unique_id, _next_unpartitioned_unique_id, libMesh::MeshBase::_node_integer_names, _nodes, libMesh::DofObject::add_extra_integers(), libMesh::DofObject::id(), libMesh::DofObject::invalid_processor_id, libMesh::libmesh_assert(), libMesh::ParallelObject::n_processors(), libMesh::ParallelObject::processor_id(), libMesh::DofObject::processor_id(), libMesh::DofObject::set_id(), libMesh::DofObject::set_unique_id(), libMesh::DofObject::valid_id(), and libMesh::DofObject::valid_unique_id().
Referenced by add_point(), insert_node(), and own_node().
|
inlineinherited |
Register data (of type T) to be added to each node in the mesh.
If the mesh already has nodes, data by default is allocated in each.
If type T is larger than dof_id_type, its data will end up spanning multiple index values, but will be queried with the starting index number.
No type checking is done with this function! If you add data of type T, don't try to access it with a call specifying type U.
Definition at line 2030 of file mesh_base.h.
References libMesh::MeshBase::_node_integer_names, libMesh::index_range(), and libMesh::MeshBase::size_node_extra_integers().
|
inlineinherited |
Register a datum (of type T) to be added to each node in the mesh.
If the mesh already has nodes, data by default is allocated in each of them. This may be expensive to do repeatedly; use add_node_data instead.
If type T is larger than dof_id_type, its data will end up spanning multiple index values, but will be queried with the starting index number.
No type checking is done with this function! If you add data of type T, don't try to access it with a call specifying type U.
Definition at line 2011 of file mesh_base.h.
References libMesh::MeshBase::_node_integer_names, libMesh::MeshBase::add_node_integer(), and libMesh::MeshBase::size_node_extra_integers().
Referenced by ExtraIntegersTest::build_mesh(), libMesh::DynaIO::read_mesh(), RationalMapTest< elem_type >::setUp(), and FETest< order, family, elem_type >::setUp().
|
inherited |
Register an integer datum (of type dof_id_type) to be added to each node in the mesh.
If the mesh already has nodes, data by default is allocated in each of them. This may be expensive to do repeatedly; use add_node_integers instead.
Definition at line 247 of file mesh_base.C.
References libMesh::index_range(), and libMesh::Quality::name().
Referenced by libMesh::MeshBase::add_node_datum(), ExtraIntegersTest::build_mesh(), ExtraIntegersTest::checkpoint_helper(), libMesh::CheckpointIO::read_header(), RationalMapTest< elem_type >::setUp(), FETest< order, family, elem_type >::setUp(), and ExtraIntegersTest::test_helper().
|
inherited |
Register integer data (of type dof_id_type) to be added to each node in the mesh.
If the mesh already has nodes, data by default is allocated in each.
Definition at line 262 of file mesh_base.C.
References libMesh::index_range(), and libMesh::Quality::name().
Referenced by MeshStitchTest::testMeshStitch().
|
overridevirtual |
functions for adding /deleting nodes elements.
Implements libMesh::MeshBase.
Definition at line 625 of file distributed_mesh.C.
References _nodes, add_node(), libMesh::Node::build(), libMesh::DofObject::id(), libMesh::libmesh_assert(), and libMesh::DofObject::processor_id().
Referenced by SlitMeshTest::build_mesh().
|
overridevirtualinherited |
Converts a mesh with higher-order elements into a mesh with linear elements.
For example, a mesh consisting of Tet10
will be converted to a mesh with Tet4
etc.
Prepare to identify (and then delete) a bunch of no-longer-used nodes.
If the second order element had any boundary conditions they should be transferred to the first-order element. The old boundary conditions will be removed from the BoundaryInfo data structure by insert_elem.
Implements libMesh::MeshBase.
Definition at line 860 of file unstructured_mesh.C.
References libMesh::MeshBase::_is_prepared, libMesh::Elem::add_child(), libMesh::Elem::build(), libMesh::Elem::child_ptr(), libMesh::BoundaryInfo::copy_boundary_ids(), libMesh::MeshBase::delete_node(), libMesh::MeshBase::element_ptr_range(), libMesh::Elem::first_order_equivalent_type(), libMesh::MeshBase::get_boundary_info(), libMesh::DofObject::id(), libMesh::MeshBase::insert_elem(), libMesh::libmesh_assert(), libMesh::MeshBase::max_node_id(), libMesh::Elem::n_vertices(), libMesh::MeshBase::node(), libMesh::Elem::node_id(), libMesh::MeshBase::node_ptr_range(), libMesh::Elem::parent(), libMesh::MeshBase::prepare_for_use(), libMesh::DofObject::processor_id(), libMesh::BoundaryInfo::regenerate_id_sets(), libMesh::remote_elem, libMesh::MeshBase::renumber_nodes_and_elements(), libMesh::Elem::replace_child(), libMesh::DofObject::set_id(), libMesh::Elem::set_neighbor(), libMesh::Elem::set_node(), libMesh::Partitioner::set_node_processor_ids(), libMesh::Elem::set_p_level(), libMesh::Elem::set_p_refinement_flag(), libMesh::Elem::set_parent(), libMesh::Elem::set_refinement_flag(), libMesh::DofObject::set_unique_id(), and libMesh::Elem::subdomain_id().
|
overridevirtualinherited |
Converts a (conforming, non-refined) mesh with linear elements into a mesh with second-order elements.
For example, a mesh consisting of Tet4
will be converted to a mesh with Tet10
etc.
Hex8
there exist two higher order equivalents, Hex20
and Hex27
. When full_ordered
is true
(default), then Hex27
is built. Otherwise, Hex20
is built. The same holds obviously for Quad4
, Prism6
, etc. On distributed meshes we currently only support unpartitioned meshes (where we'll add every node in sync) or completely-partitioned meshes (where we'll sync nodes later); let's keep track to make sure we're not in any in-between state.
Loop over the low-ordered elements in the elements vector. First make sure they _are indeed low-order, and then replace them with an equivalent second-order element. Don't forget to delete the low-order element, or else it will leak!
If the linear element had any boundary conditions they should be transferred to the second-order element. The old boundary conditions will be removed from the BoundaryInfo data structure by insert_elem.
Also, prepare_for_use() will reconstruct most of our neighbor links, but if we have any remote_elem links in a distributed mesh, they need to be preserved. We do that in the same loop here.
Implements libMesh::MeshBase.
Definition at line 998 of file unstructured_mesh.C.
References libMesh::MeshBase::_is_prepared, libMesh::MeshBase::add_point(), libMesh::Elem::build(), libMesh::ParallelObject::comm(), libMesh::BoundaryInfo::copy_boundary_ids(), libMesh::Elem::default_order(), libMesh::MeshBase::elements_begin(), libMesh::MeshBase::elements_end(), libMesh::FIRST, libMesh::MeshBase::get_boundary_info(), libMesh::DofObject::id(), libMesh::MeshBase::insert_elem(), libMesh::DofObject::invalid_id, libMesh::DofObject::invalid_processor_id, libMesh::MeshBase::is_replicated(), libMesh::MeshBase::is_serial(), libMesh::Elem::level(), libMesh::libmesh_assert(), libMesh::MeshBase::mesh_dimension(), libMesh::MeshBase::MeshCommunication, libMesh::MeshBase::n_elem(), libMesh::MeshBase::n_nodes(), libMesh::Elem::n_nodes(), libMesh::Elem::n_second_order_adjacent_vertices(), libMesh::MeshBase::n_unpartitioned_elem(), libMesh::Elem::n_vertices(), libMesh::Elem::neighbor_ptr(), libMesh::Elem::node_id(), libMesh::Elem::node_ptr(), libMesh::MeshBase::own_node(), libMesh::MeshBase::point(), libMesh::MeshBase::prepare_for_use(), libMesh::ParallelObject::processor_id(), libMesh::DofObject::processor_id(), libMesh::remote_elem, libMesh::MeshBase::renumber_nodes_and_elements(), libMesh::MeshBase::reserve_nodes(), libMesh::Elem::second_order_adjacent_vertex(), libMesh::Elem::second_order_equivalent_type(), libMesh::DofObject::set_id(), libMesh::Elem::set_neighbor(), libMesh::Elem::set_node(), libMesh::DofObject::set_unique_id(), libMesh::Elem::side_index_range(), libMesh::Elem::subdomain_id(), libMesh::Elem::type(), and libMesh::DofObject::unique_id().
|
overridevirtual |
Gathers all elements and nodes of the mesh onto every processor.
Reimplemented from libMesh::MeshBase.
Definition at line 1495 of file distributed_mesh.C.
References _is_serial, _is_serial_on_proc_0, libMesh::MeshTools::libmesh_assert_valid_neighbors(), libmesh_assert_valid_parallel_flags(), libmesh_assert_valid_parallel_ids(), max_elem_id(), max_node_id(), libMesh::MeshBase::MeshCommunication, n_elem(), n_nodes(), parallel_max_elem_id(), parallel_max_node_id(), parallel_n_elem(), and parallel_n_nodes().
|
inlineinherited |
Definition at line 1035 of file mesh_base.h.
References libMesh::MeshBase::_allow_remote_element_removal.
Referenced by libMesh::UnstructuredMesh::copy_nodes_and_elements().
|
inlineinherited |
If false is passed in then this mesh will no longer have remote elements deleted when being prepared for use; i.e.
even a DistributedMesh will remain (if it is already) serialized. This may adversely affect performance and memory use.
Definition at line 1034 of file mesh_base.h.
References libMesh::MeshBase::_allow_remote_element_removal.
Referenced by libMesh::DynaIO::add_spline_constraints(), AllSecondOrderTest::allSecondOrder(), libMesh::UnstructuredMesh::copy_nodes_and_elements(), main(), MeshInputTest::testDynaReadElem(), and MeshInputTest::testDynaReadPatch().
|
inlineinherited |
Definition at line 1026 of file mesh_base.h.
References libMesh::MeshBase::_skip_renumber_nodes_and_elements.
Referenced by libMesh::UnstructuredMesh::copy_nodes_and_elements(), and libMesh::UnstructuredMesh::read().
|
inlineinherited |
If false is passed in then this mesh will no longer be renumbered when being prepared for use.
This may slightly adversely affect performance during subsequent element access, particularly when using a distributed mesh.
Important! When allow_renumbering(false) is set, ReplicatedMesh::n_elem() and ReplicatedMesh::n_nodes() will return wrong values whenever adaptive refinement is followed by adaptive coarsening. (Uniform refinement followed by uniform coarsening is OK.) This is due to the fact that n_elem() and n_nodes() are currently O(1) functions that just return the size of the respective underlying vectors, and this size is wrong when the numbering includes "gaps" from nodes and elements that have been deleted. We plan to implement a caching mechanism in the near future that will fix this incorrect behavior.
Definition at line 1025 of file mesh_base.h.
References libMesh::MeshBase::_skip_renumber_nodes_and_elements.
Referenced by libMesh::DynaIO::add_spline_constraints(), GetBoundaryPointsTest::build_mesh(), SlitMeshTest::build_mesh(), libMesh::UnstructuredMesh::copy_nodes_and_elements(), main(), libMesh::RBEIMEvaluation::RBEIMEvaluation(), libMesh::NameBasedIO::read(), libMesh::GMVIO::read(), MeshInputTest::testDynaReadElem(), MeshInputTest::testDynaReadPatch(), SystemsTest::testProjectMatrix1D(), SystemsTest::testProjectMatrix2D(), SystemsTest::testProjectMatrix3D(), EquationSystemsTest::testRefineThenReinitPreserveFlags(), EquationSystemsTest::testRepartitionThenReinit(), WriteSidesetData::testWrite(), and WriteVecAndScalar::testWrite().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over elements for which elem->ancestor() is true.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over nodes for which BoundaryInfo::has_boundary_id(node, bndry_id) is true.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over nodes for which BoundaryInfo::n_boundary_ids(node) > 0.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
inherited |
Search the mesh and cache the different dimensions of the elements present in the mesh.
This is done in prepare_for_use(), but can be done manually by other classes after major mesh modifications.
Definition at line 753 of file mesh_base.C.
Referenced by libMesh::MeshBase::set_elem_dimensions().
|
overridevirtual |
Clear all internal data.
Reimplemented from libMesh::MeshBase.
Definition at line 832 of file distributed_mesh.C.
References _elements, _is_serial, _is_serial_on_proc_0, _max_elem_id, _max_node_id, _n_elem, _n_nodes, _next_free_local_elem_id, _next_free_local_node_id, _next_free_unpartitioned_elem_id, _next_free_unpartitioned_node_id, _nodes, libMesh::MeshBase::clear(), libMesh::MeshBase::elem(), libMesh::ParallelObject::n_processors(), libMesh::MeshBase::node(), and libMesh::ParallelObject::processor_id().
Referenced by libMesh::BoundaryMesh::~BoundaryMesh().
|
inlinevirtual |
Clears extra ghost elements.
Definition at line 216 of file distributed_mesh.h.
References _extra_ghost_elems.
|
virtual |
Clears specified extra ghost elements.
Definition at line 1486 of file distributed_mesh.C.
References _extra_ghost_elems, and extra_ghost_elems().
|
inherited |
Releases the current PointLocator
object.
Definition at line 696 of file mesh_base.C.
Referenced by libMesh::UnstructuredMesh::contract(), and libMesh::MeshCommunication::delete_remote_elements().
|
inlineoverridevirtual |
Virtual copy-constructor, creates a copy of this mesh.
Implements libMesh::MeshBase.
Reimplemented in libMesh::ParallelMesh.
Definition at line 89 of file distributed_mesh.h.
|
inlineinherited |
Parallel::Communicator
object used by this mesh. Definition at line 94 of file parallel_object.h.
References libMesh::ParallelObject::_communicator.
Referenced by libMesh::__libmesh_petsc_diff_solver_jacobian(), libMesh::__libmesh_petsc_diff_solver_monitor(), libMesh::__libmesh_petsc_diff_solver_residual(), libMesh::__libmesh_tao_equality_constraints(), libMesh::__libmesh_tao_equality_constraints_jacobian(), libMesh::__libmesh_tao_gradient(), libMesh::__libmesh_tao_hessian(), libMesh::__libmesh_tao_inequality_constraints(), libMesh::__libmesh_tao_inequality_constraints_jacobian(), libMesh::__libmesh_tao_objective(), libMesh::MeshRefinement::_coarsen_elements(), libMesh::ExactSolution::_compute_error(), libMesh::UniformRefinementEstimator::_estimate_error(), libMesh::BoundaryInfo::_find_id_maps(), libMesh::PetscLinearSolver< Number >::_petsc_shell_matrix_get_diagonal(), libMesh::SlepcEigenSolver< libMesh::Number >::_petsc_shell_matrix_get_diagonal(), libMesh::PetscLinearSolver< Number >::_petsc_shell_matrix_mult(), libMesh::SlepcEigenSolver< libMesh::Number >::_petsc_shell_matrix_mult(), libMesh::PetscLinearSolver< Number >::_petsc_shell_matrix_mult_add(), libMesh::EquationSystems::_read_impl(), libMesh::MeshRefinement::_refine_elements(), libMesh::MeshRefinement::_smooth_flags(), libMesh::DofMap::add_constraints_to_send_list(), add_cube_convex_hull_to_mesh(), libMesh::PetscDMWrapper::add_dofs_helper(), libMesh::PetscDMWrapper::add_dofs_to_section(), libMesh::TransientRBConstruction::add_IC_to_RB_space(), libMesh::ImplicitSystem::add_matrix(), libMesh::RBConstruction::add_scaled_matrix_and_vector(), libMesh::DynaIO::add_spline_constraints(), libMesh::System::add_vector(), libMesh::UnstructuredMesh::all_second_order(), libMesh::MeshTools::Modification::all_tri(), libMesh::LaplaceMeshSmoother::allgather_graph(), libMesh::DofMap::allgather_recursive_constraints(), libMesh::TransientRBConstruction::allocate_data_structures(), libMesh::RBConstruction::allocate_data_structures(), libMesh::TransientRBConstruction::assemble_affine_expansion(), libMesh::FEMSystem::assemble_qoi(), libMesh::MeshCommunication::assign_global_indices(), libMesh::DofMap::attach_matrix(), libMesh::MeshTools::Generation::build_extrusion(), libMesh::BoundaryInfo::build_node_list_from_side_list(), libMesh::EquationSystems::build_parallel_elemental_solution_vector(), libMesh::EquationSystems::build_parallel_solution_vector(), libMesh::PetscDMWrapper::build_section(), libMesh::PetscDMWrapper::build_sf(), libMesh::System::calculate_norm(), libMesh::DofMap::check_dirichlet_bcid_consistency(), libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::compute_max_error_bound(), libMesh::Nemesis_IO_Helper::compute_num_global_elem_blocks(), libMesh::Nemesis_IO_Helper::compute_num_global_nodesets(), libMesh::Nemesis_IO_Helper::compute_num_global_sidesets(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBConstruction::compute_residual_dual_norm_slow(), libMesh::RBSCMConstruction::compute_SCM_bounds_on_training_set(), libMesh::Problem_Interface::computeF(), libMesh::Problem_Interface::computeJacobian(), libMesh::Problem_Interface::computePreconditioner(), libMesh::ExodusII_IO::copy_elemental_solution(), libMesh::ExodusII_IO::copy_scalar_solution(), libMesh::MeshTools::correct_node_proc_ids(), libMesh::MeshTools::create_bounding_box(), libMesh::DofMap::create_dof_constraints(), libMesh::MeshTools::create_nodal_bounding_box(), libMesh::MeshRefinement::create_parent_error_vector(), libMesh::MeshTools::create_processor_bounding_box(), libMesh::MeshTools::create_subdomain_bounding_box(), libMesh::MeshCommunication::delete_remote_elements(), libMesh::DofMap::distribute_dofs(), DMlibMeshFunction(), DMlibMeshJacobian(), DMlibMeshSetSystem_libMesh(), DMVariableBounds_libMesh(), libMesh::DTKSolutionTransfer::DTKSolutionTransfer(), libMesh::MeshRefinement::eliminate_unrefined_patches(), libMesh::RBEIMConstruction::enrich_RB_space(), libMesh::TransientRBConstruction::enrich_RB_space(), libMesh::RBConstruction::enrich_RB_space(), libMesh::EpetraVector< T >::EpetraVector(), AssembleOptimization::equality_constraints(), libMesh::WeightedPatchRecoveryErrorEstimator::estimate_error(), libMesh::PatchRecoveryErrorEstimator::estimate_error(), libMesh::JumpErrorEstimator::estimate_error(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::ExactErrorEstimator::estimate_error(), libMesh::RBEIMConstruction::evaluate_mesh_function(), libMesh::MeshRefinement::flag_elements_by_elem_fraction(), libMesh::MeshRefinement::flag_elements_by_error_fraction(), libMesh::MeshRefinement::flag_elements_by_error_tolerance(), libMesh::MeshRefinement::flag_elements_by_mean_stddev(), libMesh::MeshRefinement::flag_elements_by_nelem_target(), libMesh::DofMap::gather_constraints(), libMesh::MeshfreeInterpolation::gather_remote_data(), libMesh::CondensedEigenSystem::get_eigenpair(), libMesh::DofMap::get_info(), libMesh::ImplicitSystem::get_linear_solver(), AssembleOptimization::inequality_constraints(), AssembleOptimization::inequality_constraints_jacobian(), libMesh::LocationMap< T >::init(), libMesh::TimeSolver::init(), libMesh::SystemSubsetBySubdomain::init(), libMesh::PetscDMWrapper::init_and_attach_petscdm(), libMesh::EigenSystem::init_matrices(), libMesh::OptimizationSystem::initialize_equality_constraints_storage(), libMesh::OptimizationSystem::initialize_inequality_constraints_storage(), libMesh::RBEIMConstruction::initialize_rb_construction(), integrate_function(), libMesh::MeshTools::libmesh_assert_consistent_distributed(), libMesh::MeshTools::libmesh_assert_consistent_distributed_nodes(), libMesh::MeshTools::libmesh_assert_contiguous_dof_ids(), libMesh::MeshTools::libmesh_assert_parallel_consistent_new_node_procids(), libMesh::MeshTools::libmesh_assert_parallel_consistent_procids< Elem >(), libMesh::MeshTools::libmesh_assert_parallel_consistent_procids< Node >(), libMesh::MeshTools::libmesh_assert_topology_consistent_procids< Node >(), libMesh::MeshTools::libmesh_assert_valid_boundary_ids(), libMesh::MeshTools::libmesh_assert_valid_dof_ids(), libMesh::MeshTools::libmesh_assert_valid_neighbors(), libmesh_assert_valid_parallel_flags(), libmesh_assert_valid_parallel_object_ids(), libmesh_assert_valid_parallel_p_levels(), libMesh::MeshTools::libmesh_assert_valid_refinement_flags(), libMesh::MeshTools::libmesh_assert_valid_unique_ids(), libMesh::libmesh_petsc_preconditioner_apply(), libMesh::libmesh_petsc_snes_fd_residual(), libMesh::libmesh_petsc_snes_jacobian(), libMesh::libmesh_petsc_snes_mffd_residual(), libMesh::libmesh_petsc_snes_postcheck(), libMesh::libmesh_petsc_snes_residual(), libMesh::libmesh_petsc_snes_residual_helper(), libMesh::MeshRefinement::limit_level_mismatch_at_edge(), libMesh::MeshRefinement::limit_level_mismatch_at_node(), libMesh::MeshRefinement::limit_overrefined_boundary(), libMesh::MeshRefinement::limit_underrefined_boundary(), main(), libMesh::MeshRefinement::make_coarsening_compatible(), libMesh::MeshCommunication::make_elems_parallel_consistent(), libMesh::MeshRefinement::make_flags_parallel_consistent(), libMesh::MeshCommunication::make_new_node_proc_ids_parallel_consistent(), libMesh::MeshCommunication::make_new_nodes_parallel_consistent(), libMesh::MeshCommunication::make_node_ids_parallel_consistent(), libMesh::MeshCommunication::make_node_proc_ids_parallel_consistent(), libMesh::MeshCommunication::make_node_unique_ids_parallel_consistent(), libMesh::MeshCommunication::make_nodes_parallel_consistent(), libMesh::MeshCommunication::make_p_levels_parallel_consistent(), libMesh::MeshRefinement::make_refinement_compatible(), libMesh::TransientRBConstruction::mass_matrix_scaled_matvec(), libMesh::FEMSystem::mesh_position_set(), LinearElasticityWithContact::move_mesh(), n_active_elem(), libMesh::MeshTools::n_active_levels(), libMesh::BoundaryInfo::n_boundary_conds(), libMesh::DofMap::n_constrained_dofs(), libMesh::BoundaryInfo::n_edge_conds(), libMesh::CondensedEigenSystem::n_global_non_condensed_dofs(), libMesh::MeshTools::n_levels(), libMesh::BoundaryInfo::n_nodeset_conds(), libMesh::MeshTools::n_p_levels(), libMesh::BoundaryInfo::n_shellface_conds(), parallel_max_elem_id(), parallel_max_node_id(), libMesh::ReplicatedMesh::parallel_max_unique_id(), parallel_max_unique_id(), parallel_n_elem(), parallel_n_nodes(), libMesh::SparsityPattern::Build::parallel_sync(), libMesh::MeshTools::paranoid_n_levels(), libMesh::petsc_auto_fieldsplit(), libMesh::System::point_gradient(), libMesh::System::point_hessian(), libMesh::System::point_value(), libMesh::DofMap::print_dof_constraints(), FEMParameters::read(), libMesh::Nemesis_IO::read(), libMesh::XdrIO::read(), libMesh::CheckpointIO::read_header(), libMesh::XdrIO::read_header(), libMesh::System::read_header(), libMesh::RBEvaluation::read_in_vectors_from_multiple_files(), libMesh::System::read_legacy_data(), libMesh::TransientRBConstruction::read_riesz_representors_from_files(), libMesh::RBConstruction::read_riesz_representors_from_files(), libMesh::System::read_SCALAR_dofs(), libMesh::XdrIO::read_serialized_bc_names(), libMesh::XdrIO::read_serialized_bcs_helper(), libMesh::System::read_serialized_blocked_dof_objects(), libMesh::XdrIO::read_serialized_connectivity(), libMesh::XdrIO::read_serialized_nodes(), libMesh::XdrIO::read_serialized_nodesets(), libMesh::XdrIO::read_serialized_subdomain_names(), libMesh::System::read_serialized_vector(), libMesh::MeshRefinement::refine_and_coarsen_elements(), renumber_dof_objects(), LinearElasticityWithContact::residual_and_jacobian(), OverlappingAlgebraicGhostingTest::run_ghosting_test(), OverlappingCouplingGhostingTest::run_sparsity_pattern_test(), libMesh::DofMap::scatter_constraints(), libMesh::CheckpointIO::select_split_config(), libMesh::TransientRBConstruction::set_error_temporal_data(), libMesh::RBEIMConstruction::set_explicit_sys_subvector(), libMesh::DofMap::set_nonlocal_dof_objects(), libMesh::PetscDMWrapper::set_point_range_in_section(), libMesh::PetscDiffSolver::setup_petsc_data(), libMesh::LaplaceMeshSmoother::smooth(), libMesh::split_mesh(), libMesh::BoundaryInfo::sync(), libMesh::MeshRefinement::test_level_one(), MeshfunctionDFEM::test_mesh_function_dfem(), MeshfunctionDFEM::test_mesh_function_dfem_grad(), MeshFunctionTest::test_p_level(), libMesh::MeshRefinement::test_unflagged(), SystemsTest::testBlockRestrictedVarNDofs(), PointLocatorTest::testLocator(), BoundaryInfoTest::testMesh(), SystemsTest::testProjectCubeWithMeshFunction(), CheckpointIOTest::testSplitter(), libMesh::MeshTools::total_weight(), libMesh::MeshFunctionSolutionTransfer::transfer(), libMesh::MeshfreeSolutionTransfer::transfer(), libMesh::TransientRBConstruction::truth_assembly(), libMesh::RBConstruction::truth_assembly(), libMesh::MeshRefinement::uniformly_coarsen(), libMesh::TransientRBConstruction::update_RB_initial_condition_all_N(), libMesh::RBEIMConstruction::update_RB_system_matrices(), libMesh::TransientRBConstruction::update_RB_system_matrices(), libMesh::RBConstruction::update_RB_system_matrices(), libMesh::TransientRBConstruction::update_residual_terms(), libMesh::RBConstruction::update_residual_terms(), libMesh::NameBasedIO::write(), libMesh::XdrIO::write(), libMesh::VTKIO::write_nodal_data(), libMesh::RBEvaluation::write_out_vectors(), libMesh::TransientRBConstruction::write_riesz_representors_to_files(), libMesh::RBConstruction::write_riesz_representors_to_files(), libMesh::System::write_SCALAR_dofs(), libMesh::XdrIO::write_serialized_bcs_helper(), libMesh::System::write_serialized_blocked_dof_objects(), libMesh::XdrIO::write_serialized_connectivity(), libMesh::XdrIO::write_serialized_nodes(), libMesh::XdrIO::write_serialized_nodesets(), libMesh::RBDataSerialization::RBEvaluationSerialization::write_to_file(), libMesh::RBDataSerialization::TransientRBEvaluationSerialization::write_to_file(), libMesh::RBDataSerialization::RBEIMEvaluationSerialization::write_to_file(), and libMesh::RBDataSerialization::RBSCMEvaluationSerialization::write_to_file().
|
overridevirtualinherited |
Delete subactive (i.e.
children of coarsened) elements. This removes all elements descended from currently active elements in the mesh.
Implements libMesh::MeshBase.
Definition at line 797 of file unstructured_mesh.C.
References libMesh::Elem::active(), libMesh::Elem::ancestor(), libMesh::as_range(), libMesh::MeshBase::clear_point_locator(), libMesh::Elem::contract(), libMesh::MeshBase::delete_elem(), libMesh::MeshBase::elem(), libMesh::MeshBase::element_ptr_range(), libMesh::MeshBase::ghosting_functors_begin(), libMesh::MeshBase::ghosting_functors_end(), libMesh::libmesh_assert(), libMesh::Elem::parent(), libMesh::MeshBase::renumber_nodes_and_elements(), and libMesh::Elem::subactive().
|
virtualinherited |
Deep copy of nodes and elements from another unstructured mesh class (used by subclass copy constructors and by mesh merging operations)
This will not copy most "high level" data in the mesh; that is done separately by constructors. An exception is that, if the other_mesh
has element or node extra_integer data, any names for that data which do not already exist on this
mesh are added so that all such data can be copied.
Definition at line 61 of file unstructured_mesh.C.
References libMesh::MeshBase::_elem_integer_names, libMesh::MeshBase::_is_prepared, libMesh::MeshBase::_n_parts, libMesh::MeshBase::_node_integer_names, libMesh::MeshBase::_skip_all_partitioning, libMesh::MeshBase::_skip_noncritical_partitioning, libMesh::Elem::add_child(), libMesh::MeshBase::add_elem(), libMesh::DofObject::add_extra_integers(), libMesh::MeshBase::add_point(), libMesh::MeshBase::allow_remote_element_removal(), libMesh::MeshBase::allow_renumbering(), libMesh::Elem::build(), libMesh::MeshBase::elem_ptr(), libMesh::MeshBase::element_ptr_range(), libMesh::MeshTools::libmesh_assert_valid_amr_elem_ids(), libMesh::MeshBase::merge_extra_integer_names(), libMesh::MeshBase::n_elem(), libMesh::MeshBase::n_nodes(), libMesh::Elem::neighbor_ptr(), libMesh::MeshBase::node_ptr(), libMesh::MeshBase::node_ptr_range(), libMesh::Elem::parent(), libMesh::MeshBase::prepare_for_use(), libMesh::DofObject::processor_id(), libMesh::remote_elem, libMesh::MeshBase::reserve_elem(), libMesh::MeshBase::reserve_nodes(), libMesh::Elem::set_neighbor(), libMesh::MeshBase::skip_noncritical_partitioning(), libMesh::MeshBase::skip_partitioning(), and libMesh::Elem::subdomain_id().
Referenced by DistributedMesh(), libMesh::ReplicatedMesh::ReplicatedMesh(), and libMesh::ReplicatedMesh::stitching_helper().
|
inherited |
Generates a new mesh containing all the elements which are assigned to processor pid
.
This mesh is written to the pid_mesh reference which you must create and pass to the function.
Definition at line 672 of file unstructured_mesh.C.
References libMesh::MeshBase::active_pid_elements_begin(), libMesh::MeshBase::active_pid_elements_end(), libMesh::UnstructuredMesh::create_submesh(), libMesh::ParallelObject::n_processors(), and libMesh::out.
|
inherited |
Constructs a mesh called "new_mesh" from the current mesh by iterating over the elements between it and it_end and adding them to the new mesh.
Definition at line 707 of file unstructured_mesh.C.
References libMesh::MeshBase::_elem_integer_names, libMesh::MeshBase::_node_integer_names, libMesh::MeshBase::add_elem(), libMesh::DofObject::add_extra_integers(), libMesh::MeshBase::add_point(), libMesh::BoundaryInfo::add_side(), libMesh::as_range(), libMesh::BoundaryInfo::boundary_ids(), libMesh::Elem::build(), libMesh::MeshBase::clear(), libMesh::MeshBase::delete_remote_elements(), libMesh::MeshBase::get_boundary_info(), libMesh::MeshBase::is_serial(), libMesh::libmesh_assert(), libMesh::MeshBase::merge_extra_integer_names(), libMesh::MeshBase::n_elem(), libMesh::MeshBase::n_nodes(), libMesh::MeshBase::node_ptr(), libMesh::MeshBase::prepare_for_use(), libMesh::DofObject::processor_id(), libMesh::MeshBase::query_node_ptr(), libMesh::DofObject::set_extra_integer(), libMesh::DofObject::set_id(), libMesh::Elem::set_node(), libMesh::DofObject::set_unique_id(), and libMesh::Elem::subdomain_id().
Referenced by libMesh::UnstructuredMesh::create_pid_mesh().
|
inlineinherited |
Default ghosting functor.
Definition at line 1125 of file mesh_base.h.
References libMesh::MeshBase::_default_ghosting.
|
inlineinherited |
Returns any default data value used by the master space to physical space mapping.
Definition at line 724 of file mesh_base.h.
References libMesh::MeshBase::_default_mapping_data.
Referenced by libMesh::ReplicatedMesh::add_elem(), add_elem(), libMesh::ReplicatedMesh::insert_elem(), insert_elem(), MeshInputTest::testDynaReadElem(), and MeshInputTest::testDynaReadPatch().
|
inlineinherited |
Returns the default master space to physical space mapping basis functions to be used on newly added elements.
Definition at line 708 of file mesh_base.h.
References libMesh::MeshBase::_default_mapping_type.
Referenced by libMesh::ReplicatedMesh::add_elem(), add_elem(), libMesh::ReplicatedMesh::insert_elem(), insert_elem(), MeshInputTest::testDynaReadElem(), and MeshInputTest::testDynaReadPatch().
|
overridevirtual |
Removes element e
from the mesh.
This method must be implemented in derived classes in such a way that it does not invalidate element iterators. Users should call MeshBase::prepare_for_use() after elements are added to and/or deleted from the mesh.
Implements libMesh::MeshBase.
Definition at line 582 of file distributed_mesh.C.
References _elements, _n_elem, libMesh::MeshBase::get_boundary_info(), libMesh::DofObject::id(), libMesh::DofObject::invalid_processor_id, libMesh::libmesh_assert(), libMesh::ParallelObject::processor_id(), libMesh::DofObject::processor_id(), and libMesh::BoundaryInfo::remove().
Referenced by insert_elem().
|
overridevirtual |
Removes the Node n from the mesh.
Implements libMesh::MeshBase.
Definition at line 768 of file distributed_mesh.C.
References _n_nodes, _nodes, libMesh::MeshBase::get_boundary_info(), libMesh::DofObject::id(), libMesh::DofObject::invalid_processor_id, libMesh::libmesh_assert(), libMesh::ParallelObject::processor_id(), libMesh::DofObject::processor_id(), and libMesh::BoundaryInfo::remove().
|
overridevirtual |
Deletes all nonlocal elements of the mesh except for "ghosts" which touch a local element, and deletes all nodes which are not part of a local or ghost element.
Reimplemented from libMesh::MeshBase.
Definition at line 1406 of file distributed_mesh.C.
References _elements, _extra_ghost_elems, _is_serial, _is_serial_on_proc_0, _nodes, libMesh::MeshTools::libmesh_assert_valid_neighbors(), libmesh_assert_valid_parallel_flags(), libmesh_assert_valid_parallel_ids(), libMesh::MeshTools::libmesh_assert_valid_refinement_tree(), max_elem_id(), max_node_id(), libMesh::MeshBase::MeshCommunication, n_elem(), n_nodes(), parallel_max_elem_id(), parallel_max_node_id(), parallel_n_elem(), parallel_n_nodes(), and update_parallel_id_counts().
|
inherited |
Search the mesh for elements that have a neighboring element of dim+1 and set that element as the interior parent.
Definition at line 812 of file mesh_base.C.
References dim.
|
inlinevirtualinherited |
Definition at line 569 of file mesh_base.h.
References libMesh::MeshBase::elem_ptr().
|
inlinevirtualinherited |
Definition at line 554 of file mesh_base.h.
References libMesh::MeshBase::elem_ptr().
Referenced by libMesh::ReplicatedMesh::clear(), clear(), libMesh::UnstructuredMesh::contract(), DistributedMesh(), libMesh::ReplicatedMesh::get_boundary_points(), libMesh::ReplicatedMesh::get_disconnected_subdomains(), renumber_nodes_and_elements(), and libMesh::ReplicatedMesh::stitching_helper().
|
inlineinherited |
Definition at line 225 of file mesh_base.h.
References libMesh::MeshBase::_elem_dims.
Referenced by libMesh::System::calculate_norm(), and libMesh::TreeNode< N >::insert().
|
overridevirtual |
Implements libMesh::MeshBase.
Definition at line 382 of file distributed_mesh.C.
References _elements, and libMesh::libmesh_assert().
Referenced by DistributedMesh().
|
overridevirtual |
Implements libMesh::MeshBase.
Definition at line 393 of file distributed_mesh.C.
References _elements, and libMesh::libmesh_assert().
|
inlinevirtualinherited |
Definition at line 530 of file mesh_base.h.
References libMesh::MeshBase::elem_ptr().
|
inlinevirtualinherited |
Definition at line 521 of file mesh_base.h.
References libMesh::MeshBase::elem_ptr().
Referenced by libMesh::SyncRefinementFlags::act_on_data(), libMesh::AbaqusIO::assign_sideset_ids(), libMesh::AbaqusIO::assign_subdomain_ids(), libMesh::Nemesis_IO_Helper::build_element_and_node_maps(), libMesh::InfElemBuilder::build_inf_elem(), MixedDimensionNonUniformRefinement::build_mesh(), MixedDimensionNonUniformRefinementTriangle::build_mesh(), MixedDimensionNonUniformRefinement3D::build_mesh(), libMesh::Nemesis_IO_Helper::compute_num_global_sidesets(), libMesh::GenericProjector< FFunctor, GFunctor, FValue, ProjectionAction >::SubFunctor::find_dofs_to_send(), libMesh::SyncRefinementFlags::gather_data(), main(), libMesh::MeshRefinement::make_coarsening_compatible(), libMesh::ExodusII_IO::read(), libMesh::CheckpointIO::read_remote_elem(), SystemsTest::testDofCouplingWithVarGroups(), MeshExtruderTest::testExtruder(), MixedDimensionMeshTest::testMesh(), SlitMeshTest::testMesh(), MixedDimensionNonUniformRefinement::testMesh(), MixedDimensionNonUniformRefinementTriangle::testMesh(), MixedDimensionNonUniformRefinement3D::testMesh(), libMesh::MeshRefinement::uniformly_coarsen(), libMesh::FroIO::write(), libMesh::Nemesis_IO_Helper::write_elements(), and libMesh::GmshIO::write_mesh().
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 309 of file distributed_mesh.h.
References elements_begin(), and elements_end().
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 308 of file distributed_mesh.h.
References elements_begin(), and elements_end().
Referenced by renumber_nodes_and_elements(), and RationalMapTest< elem_type >::setUp().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
Referenced by element_ptr_range().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over elements in the Mesh where the solution (as distributed by the given DofMap) can be evaluated, for the given variable var_num, or for all variables by default.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over nodes in the Mesh where the solution (as distributed by the given DofMap) can be evaluated, for the given variable var_num, or for all variables by default.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
inline |
Const accessor to the ghosted elements.
Definition at line 226 of file distributed_mesh.h.
References _extra_ghost_elems.
Referenced by clear_extra_ghost_elems().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over elements which are on or have a neighbor on the current processor.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtualinherited |
Other functions from MeshBase requiring re-definition.
Here we look at all of the child elements which don't already have valid neighbors.
If a child element has a nullptr neighbor it is either because it is on the boundary or because its neighbor is at a different level. In the latter case we must get the neighbor from the parent.
If a child element has a remote_elem neighbor on a boundary it shares with its parent, that info may have become out-dated through coarsening of the neighbor's parent. In this case, if the parent's neighbor is active then the child should share it.
Furthermore, that neighbor better be active, otherwise we missed a child somewhere.
We also need to look through children ordered by increasing refinement level in order to add new interior_parent() links in boundary elements which have just been generated by refinement, and fix links in boundary elements whose previous interior_parent() has just been coarsened away.
Implements libMesh::MeshBase.
Definition at line 257 of file unstructured_mesh.C.
References libMesh::Elem::active(), libMesh::Elem::ancestor(), libMesh::as_range(), libMesh::Elem::centroid(), libMesh::Elem::child_ptr(), libMesh::Elem::child_ref_range(), libMesh::MeshBase::element_ptr_range(), libMesh::err, libMesh::Elem::has_children(), libMesh::Elem::hmin(), libMesh::DofObject::id(), libMesh::Elem::interior_parent(), libMesh::Elem::is_ancestor_of(), libMesh::Elem::is_child_on_side(), libMesh::Elem::level(), libMesh::MeshBase::level_elements_begin(), libMesh::MeshBase::level_elements_end(), libMesh::libmesh_assert(), libMesh::MeshTools::libmesh_assert_valid_amr_interior_parents(), libMesh::MeshTools::libmesh_assert_valid_neighbors(), libMesh::Elem::n_children(), libMesh::MeshTools::n_levels(), libMesh::Elem::neighbor_ptr(), libMesh::Elem::neighbor_ptr_range(), libMesh::Elem::parent(), libMesh::ParallelObject::processor_id(), libMesh::DofObject::processor_id(), libMesh::Real, libMesh::remote_elem, libMesh::Elem::set_interior_parent(), libMesh::Elem::set_neighbor(), libMesh::Elem::side_ptr(), libMesh::Elem::subactive(), libMesh::TOLERANCE, libMesh::Elem::which_child_am_i(), and libMesh::NameBasedIO::write().
Referenced by libMesh::TriangleWrapper::copy_tri_to_mesh(), and redistribute().
|
overridevirtual |
There is no reason for a user to ever call this function.
This function restores a previously broken element/node numbering such that mesh.node_ref(n)
.id() == n.
Implements libMesh::MeshBase.
Definition at line 1365 of file distributed_mesh.C.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over all elements with a specified refinement flag.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over all elements with a specified refinement flag on a specified processor.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Gathers all elements and nodes of the mesh onto processor zero.
Reimplemented from libMesh::MeshBase.
Definition at line 1526 of file distributed_mesh.C.
References _is_serial_on_proc_0, and libMesh::MeshBase::MeshCommunication.
|
inlineinherited |
Writable information about boundary ids on the mesh.
Definition at line 137 of file mesh_base.h.
References libMesh::MeshBase::boundary_info.
|
inlineinherited |
The information about boundary ids on the mesh.
Definition at line 132 of file mesh_base.h.
References libMesh::MeshBase::boundary_info.
Referenced by libMesh::MeshRefinement::_coarsen_elements(), libMesh::MeshTools::Subdivision::add_boundary_ghosts(), libMesh::RBConstruction::add_scaled_matrix_and_vector(), libMesh::UnstructuredMesh::all_first_order(), libMesh::UnstructuredMesh::all_second_order(), libMesh::MeshTools::Subdivision::all_subdivision(), libMesh::MeshTools::Modification::all_tri(), LinearElasticity::assemble(), assemble_elasticity(), assemble_poisson(), assemble_shell(), libMesh::AbaqusIO::assign_boundary_node_ids(), libMesh::AbaqusIO::assign_sideset_ids(), AssemblyA0::boundary_assembly(), AssemblyF0::boundary_assembly(), AssemblyA1::boundary_assembly(), AssemblyF1::boundary_assembly(), AssemblyF2::boundary_assembly(), AssemblyA2::boundary_assembly(), libMesh::MeshTools::Generation::build_delaunay_square(), libMesh::MeshTools::Generation::build_extrusion(), libMesh::MeshTools::Modification::change_boundary_id(), libMesh::DofMap::check_dirichlet_bcid_consistency(), libMesh::Nemesis_IO_Helper::compute_num_global_nodesets(), libMesh::Nemesis_IO_Helper::compute_num_global_sidesets(), libMesh::FEGenericBase< FEOutputType< T >::type >::compute_periodic_constraints(), libMesh::TriangleWrapper::copy_tri_to_mesh(), libMesh::UnstructuredMesh::create_submesh(), libMesh::TetGenMeshInterface::delete_2D_hull_elements(), libMesh::ReplicatedMesh::delete_elem(), delete_elem(), libMesh::ReplicatedMesh::delete_node(), delete_node(), libMesh::MeshCommunication::delete_remote_elements(), DistributedMesh(), libMesh::MeshTools::Modification::flatten(), libMesh::UNVIO::groups_in(), LinearElasticityWithContact::initialize_contact_load_paths(), libMesh::MeshTools::libmesh_assert_valid_boundary_ids(), main(), AugmentSparsityOnInterface::mesh_reinit(), libMesh::Parallel::Packing< const Node * >::pack(), libMesh::Parallel::Packing< const Elem * >::pack(), libMesh::Parallel::Packing< const Node * >::packable_size(), libMesh::Parallel::Packing< const Elem * >::packable_size(), libMesh::TetGenMeshInterface::pointset_convexhull(), libMesh::Nemesis_IO::prepare_to_write_nodal_data(), libMesh::AbaqusIO::read(), libMesh::Nemesis_IO::read(), libMesh::ExodusII_IO::read(), libMesh::CheckpointIO::read_bcs(), libMesh::CheckpointIO::read_header(), libMesh::GmshIO::read_mesh(), libMesh::CheckpointIO::read_nodesets(), libMesh::XdrIO::read_serialized_bcs_helper(), libMesh::XdrIO::read_serialized_nodesets(), libMesh::ReplicatedMesh::renumber_nodes_and_elements(), renumber_nodes_and_elements(), libMesh::ReplicatedMesh::ReplicatedMesh(), libMesh::ReplicatedMesh::stitching_helper(), libMesh::BoundaryInfo::sync(), AllTriTest::test_helper_2D(), AllTriTest::test_helper_3D(), SystemsTest::testBoundaryProjectCube(), BoundaryInfoTest::testEdgeBoundaryConditions(), BoundaryInfoTest::testMesh(), BoundaryInfoTest::testShellFaceConstraints(), WriteEdgesetData::testWrite(), WriteSidesetData::testWrite(), libMesh::Parallel::Packing< Node * >::unpack(), libMesh::Parallel::Packing< Elem * >::unpack(), libMesh::FroIO::write(), libMesh::Nemesis_IO::write(), libMesh::ExodusII_IO::write(), libMesh::XdrIO::write(), libMesh::CheckpointIO::write(), libMesh::GmshIO::write_mesh(), libMesh::XdrIO::write_serialized_bcs_helper(), and libMesh::XdrIO::write_serialized_nodesets().
|
inherited |
Get the current value of _count_lower_dim_elems_in_point_locator.
Definition at line 710 of file mesh_base.C.
Referenced by libMesh::TreeNode< N >::insert().
|
inherited |
Definition at line 224 of file mesh_base.C.
References libMesh::index_range(), libMesh::invalid_uint, and libMesh::Quality::name().
|
inlineinherited |
Definition at line 818 of file mesh_base.h.
References libMesh::MeshBase::_elem_integer_names.
Referenced by libMesh::CheckpointIO::write().
|
inherited |
Elem::invalid_subdomain_id
otherwise. Definition at line 737 of file mesh_base.C.
References libMesh::Quality::name().
|
inherited |
Definition at line 551 of file mesh_base.C.
References libMesh::MeshTools::n_elem(), n_nodes, and libMesh::n_threads().
|
inherited |
Definition at line 295 of file mesh_base.C.
References libMesh::index_range(), libMesh::invalid_uint, and libMesh::Quality::name().
|
inlineinherited |
Definition at line 915 of file mesh_base.h.
References libMesh::MeshBase::_node_integer_names.
Referenced by libMesh::CheckpointIO::write().
|
inherited |
Definition at line 919 of file mesh_base.C.
|
inlineinherited |
Definition at line 1633 of file mesh_base.h.
References libMesh::MeshBase::_block_id_to_name.
Referenced by DistributedMesh(), libMesh::ReplicatedMesh::ReplicatedMesh(), libMesh::XdrIO::write_serialized_subdomain_names(), and libMesh::CheckpointIO::write_subdomain_names().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over "ghost" elements in the Mesh.
A ghost element is one which is not local, but is semilocal.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
inlineinherited |
Beginning of range of ghosting functors.
Definition at line 1113 of file mesh_base.h.
References libMesh::MeshBase::_ghosting_functors.
Referenced by libMesh::UnstructuredMesh::contract(), libMesh::MeshCommunication::delete_remote_elements(), libMesh::query_ghosting_functors(), and EquationSystemsTest::testDisableDefaultGhosting().
|
inlineinherited |
End of range of ghosting functors.
Definition at line 1119 of file mesh_base.h.
References libMesh::MeshBase::_ghosting_functors.
Referenced by libMesh::UnstructuredMesh::contract(), libMesh::MeshCommunication::delete_remote_elements(), libMesh::query_ghosting_functors(), and EquationSystemsTest::testDisableDefaultGhosting().
|
inherited |
|
inherited |
Insert elem e
to the element array, preserving its id and replacing/deleting any existing element with the same id.
Users should call MeshBase::prepare_for_use() after elements are added to and/or deleted from the mesh.
Implements libMesh::MeshBase.
Definition at line 540 of file distributed_mesh.C.
References libMesh::MeshBase::_elem_integer_names, _elements, _n_elem, libMesh::MeshBase::_next_unique_id, _next_unpartitioned_unique_id, libMesh::DofObject::add_extra_integers(), libMesh::MeshBase::default_mapping_data(), libMesh::MeshBase::default_mapping_type(), delete_elem(), libMesh::DofObject::id(), libMesh::DofObject::invalid_processor_id, libMesh::ParallelObject::n_processors(), libMesh::ParallelObject::processor_id(), libMesh::DofObject::processor_id(), libMesh::Elem::set_mapping_data(), libMesh::Elem::set_mapping_type(), libMesh::DofObject::set_unique_id(), and libMesh::DofObject::valid_unique_id().
Calls add_node().
Implements libMesh::MeshBase.
Definition at line 761 of file distributed_mesh.C.
References add_node().
|
inlineinherited |
true
if the mesh has been prepared via a call to prepare_for_use
, false
otherwise. Definition at line 152 of file mesh_base.h.
References libMesh::MeshBase::_is_prepared.
Referenced by libMesh::MeshRefinement::_refine_elements(), and libMesh::DofMap::create_dof_constraints().
|
inlineoverridevirtual |
true
if new elements and nodes can and should be created in synchronization on all processors, false
otherwise Reimplemented from libMesh::MeshBase.
Definition at line 141 of file distributed_mesh.h.
|
inlineoverridevirtual |
true
if all elements and nodes of the mesh exist on the current processor, false
otherwise Reimplemented from libMesh::MeshBase.
Definition at line 119 of file distributed_mesh.h.
References _is_serial.
Referenced by redistribute().
|
inlineoverridevirtual |
true
if all elements and nodes of the mesh exist on the processor 0, false
otherwise Reimplemented from libMesh::MeshBase.
Definition at line 126 of file distributed_mesh.h.
References _is_serial, and _is_serial_on_proc_0.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over elements of a given level.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
void libMesh::DistributedMesh::libmesh_assert_valid_parallel_flags | ( | ) | const |
Verify refinement_flag and p_refinement_flag consistency of our elements containers.
Calls libmesh_assert() on each possible failure.
Definition at line 999 of file distributed_mesh.C.
References _elements, libMesh::Elem::active(), libMesh::ParallelObject::comm(), libMesh::invalid_uint, libMesh::libmesh_assert(), libMesh::Elem::p_refinement_flag(), parallel_max_elem_id(), and libMesh::Elem::refinement_flag().
Referenced by allgather(), delete_remote_elements(), and renumber_nodes_and_elements().
|
overridevirtual |
Verify id and processor_id consistency of our elements and nodes containers.
Calls libmesh_assert() on each possible failure.
Reimplemented from libMesh::MeshBase.
Definition at line 968 of file distributed_mesh.C.
References _elements, _nodes, and libmesh_assert_valid_parallel_object_ids().
Referenced by libMesh::BoundaryInfo::add_elements(), allgather(), delete_remote_elements(), and renumber_nodes_and_elements().
void libMesh::DistributedMesh::libmesh_assert_valid_parallel_object_ids | ( | const mapvector< T *, dof_id_type > & | objects | ) | const |
Verify id, processor_id, and if applicable unique_id consistency of a parallel objects container.
Calls libmesh_assert() on each possible failure in that container.
Definition at line 912 of file distributed_mesh.C.
References libMesh::ParallelObject::comm(), libMesh::DofObject::invalid_id, libMesh::DofObject::invalid_processor_id, libMesh::libmesh_assert(), parallel_max_elem_id(), parallel_max_node_id(), and libMesh::ParallelObject::processor_id().
Referenced by libmesh_assert_valid_parallel_ids().
void libMesh::DistributedMesh::libmesh_assert_valid_parallel_p_levels | ( | ) | const |
Verify p_level consistency of our elements containers.
Calls libmesh_assert() on each possible failure.
Definition at line 976 of file distributed_mesh.C.
References _elements, libMesh::Elem::active(), libMesh::ParallelObject::comm(), libMesh::invalid_uint, libMesh::libmesh_assert(), libMesh::Elem::p_level(), and parallel_max_elem_id().
Referenced by renumber_nodes_and_elements().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 514 of file distributed_mesh.h.
References local_nodes_begin(), and local_nodes_end().
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 513 of file distributed_mesh.h.
References local_nodes_begin(), and local_nodes_end().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over local nodes (nodes whose processor_id() matches the current processor).
Implements libMesh::MeshBase.
Referenced by local_node_ptr_range(), and main().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
Referenced by local_node_ptr_range().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 234 of file distributed_mesh.h.
References _max_elem_id.
Referenced by allgather(), delete_remote_elements(), DistributedMesh(), and renumber_nodes_and_elements().
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 230 of file distributed_mesh.h.
References _max_node_id.
Referenced by allgather(), delete_remote_elements(), DistributedMesh(), and renumber_nodes_and_elements().
|
protectedinherited |
Merge extra-integer arrays from an other
mesh.
Returns two mappings from index values in other
to (possibly newly created) index values with the same string name in this
mesh, the first for element integers and the second for node integers.
Definition at line 944 of file mesh_base.C.
References libMesh::MeshBase::_elem_integer_names, and libMesh::MeshBase::_node_integer_names.
Referenced by libMesh::UnstructuredMesh::copy_nodes_and_elements(), and libMesh::UnstructuredMesh::create_submesh().
|
inherited |
Definition at line 135 of file mesh_base.C.
References libMesh::MeshBase::_elem_dims.
Referenced by libMesh::HPCoarsenTest::add_projection(), libMesh::UnstructuredMesh::all_second_order(), libMesh::MeshTools::Modification::all_tri(), assemble(), LinearElasticity::assemble(), assemble_1D(), AssembleOptimization::assemble_A_and_F(), assemble_biharmonic(), assemble_cd(), assemble_elasticity(), assemble_ellipticdg(), assemble_helmholtz(), assemble_laplace(), assemble_mass(), assemble_matrices(), assemble_poisson(), assemble_SchroedingerEquation(), assemble_shell(), assemble_stokes(), assemble_wave(), libMesh::EquationSystems::build_parallel_solution_vector(), libMesh::EquationSystems::build_variable_names(), compute_jacobian(), compute_residual(), LinearElasticityWithContact::compute_stresses(), LinearElasticity::compute_stresses(), compute_stresses(), LargeDeformationElasticity::compute_stresses(), libMesh::DofMap::create_dof_constraints(), libMesh::MeshTools::Modification::distort(), SolidSystem::element_time_derivative(), libMesh::MeshRefinement::flag_elements_by_elem_fraction(), libMesh::MeshRefinement::flag_elements_by_nelem_target(), libMesh::ReplicatedMesh::get_boundary_points(), libMesh::LaplaceMeshSmoother::init(), libMesh::PointLocatorTree::init(), SolidSystem::init_data(), libMesh::ExodusII_IO_Helper::initialize(), libMesh::RBEIMAssembly::initialize_fe(), integrate_function(), LaplaceYoung::jacobian(), LargeDeformationElasticity::jacobian(), main(), libMesh::Nemesis_IO::read(), libMesh::ExodusII_IO::read(), libMesh::GMVIO::read(), libMesh::VTKIO::read(), libMesh::System::read_header(), libMesh::UCDIO::read_implementation(), libMesh::XdrIO::read_serialized_connectivity(), LaplaceYoung::residual(), LargeDeformationElasticity::residual(), LinearElasticityWithContact::residual_and_jacobian(), SolidSystem::save_initial_mesh(), setup(), libMesh::MeshTools::Modification::smooth(), MeshSpatialDimensionTest::test1D(), MeshSpatialDimensionTest::test2D(), InfFERadialTest::testSingleOrder(), libMesh::BoundaryVolumeSolutionTransfer::transfer(), libMesh::DTKSolutionTransfer::transfer(), libMesh::DofMap::use_coupled_neighbor_dofs(), libMesh::PostscriptIO::write(), libMesh::CheckpointIO::write(), libMesh::TecplotIO::write_binary(), libMesh::GMVIO::write_binary(), libMesh::GMVIO::write_discontinuous_gmv(), libMesh::UCDIO::write_implementation(), libMesh::UCDIO::write_nodal_data(), libMesh::EnsightIO::write_scalar_ascii(), libMesh::GnuPlotIO::write_solution(), and libMesh::EnsightIO::write_vector_ascii().
|
overridevirtual |
Implemented in terms of active_element_iterators.
Implements libMesh::MeshBase.
Definition at line 1385 of file distributed_mesh.C.
References active_local_elements_begin(), active_local_elements_end(), active_pid_elements_begin(), active_pid_elements_end(), libMesh::ParallelObject::comm(), distance(), and libMesh::DofObject::invalid_processor_id.
|
inherited |
proc
. Definition at line 518 of file mesh_base.C.
References distance().
Referenced by libMesh::MeshBase::n_active_local_elem().
|
inlineinherited |
Definition at line 420 of file mesh_base.h.
References libMesh::MeshBase::n_active_elem_on_proc(), and libMesh::ParallelObject::processor_id().
Referenced by libMesh::VTKIO::cells_to_vtk().
|
inherited |
Same as n_sub_elem()
, but only counts active elements.
Definition at line 539 of file mesh_base.C.
Referenced by libMesh::TecplotIO::write_ascii(), libMesh::GMVIO::write_ascii_old_impl(), and libMesh::TecplotIO::write_binary().
|
inlineoverridevirtual |
The standard n_elem() function may return a cached value on distributed meshes, and so can be called by any processor at any time.
Implements libMesh::MeshBase.
Definition at line 232 of file distributed_mesh.h.
References _n_elem.
Referenced by allgather(), delete_remote_elements(), DistributedMesh(), renumber_nodes_and_elements(), SlitMeshTest::testMesh(), and MeshInputTest::testMeshMoveConstructor().
|
inlineinherited |
Definition at line 829 of file mesh_base.h.
References libMesh::MeshBase::_elem_integer_names.
Referenced by libMesh::CheckpointIO::read_connectivity(), and libMesh::CheckpointIO::write().
|
inherited |
proc
. Definition at line 505 of file mesh_base.C.
References distance(), and libMesh::libmesh_assert().
Referenced by libMesh::MeshBase::n_local_elem(), and libMesh::MeshBase::n_unpartitioned_elem().
|
inlineinherited |
Definition at line 403 of file mesh_base.h.
References libMesh::MeshBase::n_elem_on_proc(), and libMesh::ParallelObject::processor_id().
Referenced by libMesh::DTKAdapter::DTKAdapter(), and parallel_n_elem().
|
inlineinherited |
Definition at line 303 of file mesh_base.h.
References libMesh::MeshBase::n_nodes_on_proc(), and libMesh::ParallelObject::processor_id().
Referenced by libMesh::VTKIO::nodes_to_vtk(), and parallel_n_nodes().
|
inlineinherited |
Definition at line 926 of file mesh_base.h.
References libMesh::MeshBase::_node_integer_names.
Referenced by libMesh::CheckpointIO::read_nodes(), and libMesh::CheckpointIO::write().
|
inlineoverridevirtual |
This function and others must be defined in derived classes since the MeshBase class has no specific storage for nodes or elements. The standard n_nodes()
function may return a cached value on distributed meshes, and so can be called by any processor at any time.
Implements libMesh::MeshBase.
Definition at line 229 of file distributed_mesh.h.
References _n_nodes.
Referenced by allgather(), delete_remote_elements(), DistributedMesh(), renumber_nodes_and_elements(), and SlitMeshTest::testMesh().
|
inherited |
proc
. Definition at line 492 of file mesh_base.C.
References distance(), and libMesh::libmesh_assert().
Referenced by libMesh::MeshBase::n_local_nodes(), and libMesh::MeshBase::n_unpartitioned_nodes().
|
inlineinherited |
Definition at line 1153 of file mesh_base.h.
References libMesh::MeshBase::_n_parts.
Referenced by libMesh::BoundaryInfo::sync(), libMesh::NameBasedIO::write(), libMesh::GMVIO::write_ascii_new_impl(), and libMesh::GMVIO::write_ascii_old_impl().
|
inlineinherited |
Definition at line 100 of file parallel_object.h.
References libMesh::ParallelObject::_communicator.
Referenced by libMesh::BoundaryInfo::_find_id_maps(), libMesh::DofMap::add_constraints_to_send_list(), libMesh::PetscDMWrapper::add_dofs_to_section(), add_elem(), libMesh::DofMap::add_neighbors_to_send_list(), add_node(), libMesh::LaplaceMeshSmoother::allgather_graph(), libMesh::DofMap::allgather_recursive_constraints(), libMesh::FEMSystem::assembly(), libMesh::AztecLinearSolver< T >::AztecLinearSolver(), libMesh::BoundaryInfo::build_node_list_from_side_list(), libMesh::EquationSystems::build_parallel_elemental_solution_vector(), clear(), libMesh::Nemesis_IO_Helper::compute_border_node_ids(), libMesh::Nemesis_IO_Helper::construct_nemesis_filename(), libMesh::ExodusII_IO::copy_scalar_solution(), libMesh::UnstructuredMesh::create_pid_mesh(), libMesh::MeshTools::create_processor_bounding_box(), libMesh::DofMap::distribute_dofs(), libMesh::DofMap::distribute_local_dofs_node_major(), libMesh::DofMap::distribute_local_dofs_var_major(), libMesh::EnsightIO::EnsightIO(), libMesh::SystemSubsetBySubdomain::init(), libMesh::PetscDMWrapper::init_and_attach_petscdm(), libMesh::Nemesis_IO_Helper::initialize(), insert_elem(), libMesh::MeshTools::libmesh_assert_contiguous_dof_ids(), libMesh::MeshTools::libmesh_assert_parallel_consistent_new_node_procids(), libMesh::MeshTools::libmesh_assert_parallel_consistent_procids< Elem >(), libMesh::MeshTools::libmesh_assert_parallel_consistent_procids< Node >(), libMesh::MeshTools::libmesh_assert_topology_consistent_procids< Node >(), libMesh::MeshTools::libmesh_assert_valid_boundary_ids(), libMesh::MeshTools::libmesh_assert_valid_dof_ids(), libMesh::MeshTools::libmesh_assert_valid_neighbors(), libMesh::MeshTools::libmesh_assert_valid_refinement_flags(), libMesh::DofMap::local_variable_indices(), libMesh::MeshRefinement::make_coarsening_compatible(), libMesh::MeshBase::partition(), libMesh::System::point_gradient(), libMesh::System::point_hessian(), libMesh::System::point_value(), libMesh::DofMap::prepare_send_list(), libMesh::DofMap::print_dof_constraints(), libMesh::NameBasedIO::read(), libMesh::Nemesis_IO::read(), libMesh::CheckpointIO::read(), libMesh::CheckpointIO::read_connectivity(), libMesh::XdrIO::read_header(), libMesh::CheckpointIO::read_nodes(), libMesh::System::read_parallel_data(), libMesh::System::read_SCALAR_dofs(), libMesh::System::read_serialized_blocked_dof_objects(), libMesh::System::read_serialized_vector(), renumber_dof_objects(), OverlappingFunctorTest::run_partitioner_test(), libMesh::DofMap::scatter_constraints(), libMesh::DofMap::set_nonlocal_dof_objects(), libMesh::PetscDMWrapper::set_point_range_in_section(), CheckpointIOTest::testSplitter(), WriteVecAndScalar::testWrite(), libMesh::MeshRefinement::uniformly_coarsen(), update_parallel_id_counts(), libMesh::GMVIO::write_binary(), libMesh::GMVIO::write_discontinuous_gmv(), libMesh::VTKIO::write_nodal_data(), libMesh::System::write_parallel_data(), libMesh::System::write_SCALAR_dofs(), libMesh::XdrIO::write_serialized_bcs_helper(), libMesh::System::write_serialized_blocked_dof_objects(), libMesh::XdrIO::write_serialized_connectivity(), libMesh::XdrIO::write_serialized_nodes(), and libMesh::XdrIO::write_serialized_nodesets().
|
inherited |
For example, a 9-noded quadrilateral will be broken into 4 linear sub-elements for plotting purposes. Thus, for a mesh of 2 QUAD9
elements n_tecplot_elem()
will return 8. Implemented in terms of element_iterators.
Definition at line 527 of file mesh_base.C.
|
inherited |
Definition at line 477 of file mesh_base.C.
Referenced by libMesh::XdrIO::write(), and libMesh::NameBasedIO::write_nodal_data().
|
inlineinherited |
Definition at line 409 of file mesh_base.h.
References libMesh::DofObject::invalid_processor_id, and libMesh::MeshBase::n_elem_on_proc().
Referenced by libMesh::UnstructuredMesh::all_second_order(), and parallel_n_elem().
|
inlineinherited |
Definition at line 309 of file mesh_base.h.
References libMesh::DofObject::invalid_processor_id, and libMesh::MeshBase::n_nodes_on_proc().
Referenced by parallel_n_nodes().
|
inlineinherited |
Definition at line 322 of file mesh_base.h.
References libMesh::MeshBase::_next_unique_id.
|
inlinevirtualinherited |
Definition at line 485 of file mesh_base.h.
References libMesh::MeshBase::node_ptr().
|
inlinevirtualinherited |
Definition at line 471 of file mesh_base.h.
References libMesh::MeshBase::node_ptr().
Referenced by libMesh::UnstructuredMesh::all_first_order(), libMesh::ReplicatedMesh::clear(), clear(), libMesh::ReplicatedMesh::get_boundary_points(), libMesh::ReplicatedMesh::renumber_nodes_and_elements(), renumber_nodes_and_elements(), and libMesh::ReplicatedMesh::stitching_helper().
|
overridevirtual |
Implements libMesh::MeshBase.
Definition at line 328 of file distributed_mesh.C.
References _nodes, and libMesh::libmesh_assert().
Referenced by SlitMeshTest::build_mesh().
|
overridevirtual |
Implements libMesh::MeshBase.
Definition at line 339 of file distributed_mesh.C.
References _nodes, and libMesh::libmesh_assert().
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 502 of file distributed_mesh.h.
References nodes_begin(), and nodes_end().
|
inlineoverridevirtual |
Implements libMesh::MeshBase.
Definition at line 501 of file distributed_mesh.h.
References nodes_begin(), and nodes_end().
Referenced by RationalMapTest< elem_type >::setUp(), and WriteVecAndScalar::testWrite().
|
inlinevirtualinherited |
Definition at line 459 of file mesh_base.h.
References libMesh::MeshBase::node_ptr().
|
inlinevirtualinherited |
Definition at line 451 of file mesh_base.h.
References libMesh::MeshBase::node_ptr().
Referenced by libMesh::SyncNodalPositions::act_on_data(), LinearElasticityWithContact::add_contact_edge_elements(), libMesh::DynaIO::add_spline_constraints(), assemble_matrix_and_rhs(), libMesh::InfElemBuilder::build_inf_elem(), libMesh::MeshTools::correct_node_proc_ids(), libMesh::DTKAdapter::DTKAdapter(), fill_dirichlet_bc(), main(), libMesh::ReplicatedMesh::point(), point(), libMesh::XdrIO::read_serialized_nodes(), LinearElasticityWithContact::residual_and_jacobian(), libMesh::LaplaceMeshSmoother::smooth(), libMesh::MeshTools::Modification::smooth(), libMesh::ReplicatedMesh::stitching_helper(), libMesh::DTKAdapter::update_variable_values(), and libMesh::GmshIO::write_mesh().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
Referenced by node_ptr_range().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
delete |
Copy and move assignment are not allowed.
|
delete |
|
overridevirtual |
Takes ownership of node n
on this partition of a distributed mesh, by setting n.processor_id() to this->processor_id(), as well as changing n.id() and moving it in the mesh's internal container to give it a new authoritative id.
Reimplemented from libMesh::MeshBase.
Definition at line 649 of file distributed_mesh.C.
References _nodes, add_node(), libMesh::DofObject::id(), libMesh::DofObject::invalid_id, libMesh::libmesh_assert(), libMesh::ParallelObject::processor_id(), libMesh::DofObject::processor_id(), and libMesh::DofObject::set_id().
dof_id_type libMesh::DistributedMesh::parallel_max_elem_id | ( | ) | const |
Definition at line 233 of file distributed_mesh.C.
References _elements, and libMesh::ParallelObject::comm().
Referenced by allgather(), delete_remote_elements(), libmesh_assert_valid_parallel_flags(), libmesh_assert_valid_parallel_object_ids(), libmesh_assert_valid_parallel_p_levels(), renumber_nodes_and_elements(), and update_parallel_id_counts().
dof_id_type libMesh::DistributedMesh::parallel_max_node_id | ( | ) | const |
Definition at line 291 of file distributed_mesh.C.
References _nodes, and libMesh::ParallelObject::comm().
Referenced by allgather(), delete_remote_elements(), libmesh_assert_valid_parallel_object_ids(), renumber_nodes_and_elements(), and update_parallel_id_counts().
|
overridevirtual |
Implements libMesh::MeshBase.
Definition at line 264 of file distributed_mesh.C.
References libMesh::MeshBase::_next_unique_id, _next_unpartitioned_unique_id, and libMesh::ParallelObject::comm().
Referenced by update_parallel_id_counts().
|
overridevirtual |
The parallel_n_elem() function computes a parallel-synchronized value on distributed meshes, and so must be called in parallel only.
Implements libMesh::MeshBase.
Definition at line 220 of file distributed_mesh.C.
References libMesh::ParallelObject::comm(), libMesh::MeshBase::n_local_elem(), and libMesh::MeshBase::n_unpartitioned_elem().
Referenced by allgather(), delete_remote_elements(), renumber_nodes_and_elements(), and update_parallel_id_counts().
|
overridevirtual |
This function and others must be overridden in derived classes since the MeshBase class has no specific storage for nodes or elements. The parallel_n_nodes()
function computes a parallel-synchronized value on distributed meshes, and so must be called in parallel only.
Implements libMesh::MeshBase.
Definition at line 278 of file distributed_mesh.C.
References libMesh::ParallelObject::comm(), libMesh::MeshBase::n_local_nodes(), and libMesh::MeshBase::n_unpartitioned_nodes().
Referenced by allgather(), delete_remote_elements(), renumber_nodes_and_elements(), and update_parallel_id_counts().
|
inlineinherited |
|
virtualinherited |
Call the default partitioner (currently metis_partition()
).
Definition at line 599 of file mesh_base.C.
References libMesh::MeshTools::correct_node_proc_ids(), libMesh::ReferenceElem::get(), and libMesh::libmesh_assert().
Referenced by main(), libMesh::split_mesh(), ExtraIntegersTest::test_helper(), MappedSubdomainPartitionerTest::testMappedSubdomainPartitioner(), EquationSystemsTest::testRepartitionThenReinit(), and CheckpointIOTest::testSplitter().
|
inlinevirtualinherited |
A partitioner to use at each prepare_for_use()
Definition at line 127 of file mesh_base.h.
References libMesh::MeshBase::_partitioner.
Referenced by main(), libMesh::BoundaryInfo::sync(), MappedSubdomainPartitionerTest::testMappedSubdomainPartitioner(), and MeshInputTest::testMeshMoveConstructor().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over all elements with a specified processor id.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over nodes with processor_id() == proc_id.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
Definition at line 321 of file distributed_mesh.C.
References libMesh::MeshBase::node_ref().
|
inherited |
PointLocatorBase
object for this mesh, constructing a master PointLocator first if necessary.Definition at line 652 of file mesh_base.C.
References libMesh::Threads::in_threads, libMesh::libmesh_assert(), and libMesh::TREE_ELEMENTS.
|
inherited |
Prepare a newly ecreated (or read) mesh for use.
This involves 4 steps: 1.) call find_neighbors()
2.) call partition()
3.) call renumber_nodes_and_elements()
4.) call cache_elem_dims()
The argument to skip renumbering is now deprecated - to prevent a mesh from being renumbered, set allow_renumbering(false).
If this is a distributed mesh, local copies of remote elements will be deleted here - to keep those elements replicated during preparation, set allow_remote_element_removal(false).
Definition at line 318 of file mesh_base.C.
References libMesh::libmesh_assert(), libMesh::MeshTools::libmesh_assert_valid_boundary_ids(), and libMesh::MeshTools::libmesh_assert_valid_unique_ids().
Referenced by LinearElasticityWithContact::add_contact_edge_elements(), libMesh::UnstructuredMesh::all_first_order(), libMesh::UnstructuredMesh::all_second_order(), libMesh::MeshTools::Subdivision::all_subdivision(), libMesh::MeshTools::Modification::all_tri(), libMesh::MeshTools::Generation::build_extrusion(), libMesh::InfElemBuilder::build_inf_elem(), GetBoundaryPointsTest::build_mesh(), MixedDimensionMeshTest::build_mesh(), MeshfunctionDFEM::build_mesh(), SlitMeshTest::build_mesh(), MixedDimensionNonUniformRefinement::build_mesh(), MixedDimensionNonUniformRefinementTriangle::build_mesh(), MixedDimensionNonUniformRefinement3D::build_mesh(), libMesh::MeshRefinement::coarsen_elements(), libMesh::UnstructuredMesh::copy_nodes_and_elements(), libMesh::UnstructuredMesh::create_submesh(), libMesh::MeshTools::Modification::flatten(), main(), libMesh::MeshTools::Subdivision::prepare_subdivision_mesh(), libMesh::GMVIO::read(), libMesh::UnstructuredMesh::read(), libMesh::MeshRefinement::refine_and_coarsen_elements(), libMesh::MeshRefinement::refine_elements(), libMesh::ReplicatedMesh::stitching_helper(), libMesh::BoundaryInfo::sync(), MeshSpatialDimensionTest::test1D(), MeshSpatialDimensionTest::test2D(), SystemsTest::testBlockRestrictedVarNDofs(), SystemsTest::testDofCouplingWithVarGroups(), MeshInputTest::testDynaReadElem(), MeshInputTest::testDynaReadPatch(), MeshInputTest::testExodusCopyElementSolution(), MeshInputTest::testExodusWriteElementDataFromDiscontinuousNodalData(), EquationSystemsTest::testPostInitAddElem(), SystemsTest::testProjectMatrix3D(), EquationSystemsTest::testReinitWithNodeElem(), BoundaryInfoTest::testShellFaceConstraints(), WriteVecAndScalar::testWrite(), tetrahedralize_domain(), libMesh::TriangleInterface::triangulate(), libMesh::MeshRefinement::uniformly_coarsen(), and libMesh::MeshRefinement::uniformly_refine().
|
inherited |
Prints relevant information about the mesh.
Definition at line 585 of file mesh_base.C.
Referenced by assemble_and_solve(), libMesh::InfElemBuilder::build_inf_elem(), main(), and libMesh::operator<<().
|
inlineinherited |
Definition at line 106 of file parallel_object.h.
References libMesh::ParallelObject::_communicator.
Referenced by libMesh::BoundaryInfo::_find_id_maps(), libMesh::EquationSystems::_read_impl(), libMesh::PetscDMWrapper::add_dofs_to_section(), add_elem(), libMesh::BoundaryInfo::add_elements(), libMesh::DofMap::add_neighbors_to_send_list(), add_node(), libMesh::UnstructuredMesh::all_second_order(), libMesh::MeshTools::Modification::all_tri(), libMesh::DofMap::allgather_recursive_constraints(), libMesh::FEMSystem::assembly(), libMesh::Nemesis_IO_Helper::build_element_and_node_maps(), libMesh::InfElemBuilder::build_inf_elem(), libMesh::BoundaryInfo::build_node_list_from_side_list(), libMesh::EquationSystems::build_parallel_elemental_solution_vector(), clear(), libMesh::ExodusII_IO_Helper::close(), libMesh::Nemesis_IO_Helper::compute_border_node_ids(), libMesh::Nemesis_IO_Helper::compute_communication_map_parameters(), libMesh::Nemesis_IO_Helper::compute_internal_and_border_elems_and_internal_nodes(), libMesh::RBConstruction::compute_max_error_bound(), libMesh::Nemesis_IO_Helper::compute_node_communication_maps(), libMesh::Nemesis_IO_Helper::compute_num_global_elem_blocks(), libMesh::Nemesis_IO_Helper::compute_num_global_nodesets(), libMesh::Nemesis_IO_Helper::compute_num_global_sidesets(), libMesh::Nemesis_IO_Helper::construct_nemesis_filename(), libMesh::ExodusII_IO::copy_scalar_solution(), libMesh::MeshTools::correct_node_proc_ids(), libMesh::ExodusII_IO_Helper::create(), delete_elem(), delete_node(), libMesh::MeshCommunication::delete_remote_elements(), libMesh::DofMap::distribute_dofs(), libMesh::DofMap::distribute_local_dofs_node_major(), libMesh::DofMap::distribute_local_dofs_var_major(), DistributedMesh(), libMesh::DofMap::end_dof(), libMesh::DofMap::end_old_dof(), libMesh::EnsightIO::EnsightIO(), libMesh::RBEIMConstruction::evaluate_mesh_function(), libMesh::MeshFunction::find_element(), libMesh::MeshFunction::find_elements(), libMesh::UnstructuredMesh::find_neighbors(), libMesh::DofMap::first_dof(), libMesh::DofMap::first_old_dof(), libMesh::Nemesis_IO_Helper::get_cmap_params(), libMesh::Nemesis_IO_Helper::get_eb_info_global(), libMesh::Nemesis_IO_Helper::get_elem_cmap(), libMesh::Nemesis_IO_Helper::get_elem_map(), libMesh::DofMap::get_info(), libMesh::Nemesis_IO_Helper::get_init_global(), libMesh::Nemesis_IO_Helper::get_init_info(), libMesh::Nemesis_IO_Helper::get_loadbal_param(), libMesh::DofMap::get_local_constraints(), libMesh::Nemesis_IO_Helper::get_node_cmap(), libMesh::Nemesis_IO_Helper::get_node_map(), libMesh::Nemesis_IO_Helper::get_ns_param_global(), libMesh::Nemesis_IO_Helper::get_ss_param_global(), libMesh::SparsityPattern::Build::handle_vi_vj(), libMesh::SystemSubsetBySubdomain::init(), libMesh::PetscDMWrapper::init_and_attach_petscdm(), HeatSystem::init_data(), libMesh::ExodusII_IO_Helper::initialize(), libMesh::ExodusII_IO_Helper::initialize_element_variables(), libMesh::ExodusII_IO_Helper::initialize_global_variables(), libMesh::ExodusII_IO_Helper::initialize_nodal_variables(), insert_elem(), libMesh::DofMap::is_evaluable(), libMesh::SparsityPattern::Build::join(), libMesh::DofMap::last_dof(), libMesh::TransientRBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBEIMEvaluation::legacy_write_offline_data_to_files(), libMesh::RBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBSCMEvaluation::legacy_write_offline_data_to_files(), libMesh::RBEIMEvaluation::legacy_write_out_interpolation_points_elem(), libMesh::MeshTools::libmesh_assert_consistent_distributed(), libMesh::MeshTools::libmesh_assert_consistent_distributed_nodes(), libMesh::MeshTools::libmesh_assert_contiguous_dof_ids(), libMesh::MeshTools::libmesh_assert_parallel_consistent_procids< Elem >(), libMesh::MeshTools::libmesh_assert_valid_neighbors(), libmesh_assert_valid_parallel_object_ids(), libMesh::DofMap::local_variable_indices(), main(), libMesh::MeshRefinement::make_coarsening_compatible(), AugmentSparsityOnInterface::mesh_reinit(), libMesh::MeshBase::n_active_local_elem(), libMesh::BoundaryInfo::n_boundary_conds(), libMesh::BoundaryInfo::n_edge_conds(), libMesh::DofMap::n_local_dofs(), libMesh::System::n_local_dofs(), libMesh::MeshBase::n_local_elem(), libMesh::MeshBase::n_local_nodes(), libMesh::BoundaryInfo::n_nodeset_conds(), libMesh::BoundaryInfo::n_shellface_conds(), libMesh::SparsityPattern::Build::operator()(), own_node(), libMesh::System::point_gradient(), libMesh::System::point_hessian(), libMesh::System::point_value(), libMesh::DofMap::print_dof_constraints(), libMesh::Nemesis_IO_Helper::put_cmap_params(), libMesh::Nemesis_IO_Helper::put_elem_cmap(), libMesh::Nemesis_IO_Helper::put_elem_map(), libMesh::Nemesis_IO_Helper::put_loadbal_param(), libMesh::Nemesis_IO_Helper::put_node_cmap(), libMesh::Nemesis_IO_Helper::put_node_map(), libMesh::NameBasedIO::read(), libMesh::Nemesis_IO::read(), libMesh::XdrIO::read(), libMesh::CheckpointIO::read(), libMesh::ExodusII_IO_Helper::read_elem_num_map(), libMesh::ExodusII_IO_Helper::read_global_values(), libMesh::CheckpointIO::read_header(), libMesh::XdrIO::read_header(), libMesh::System::read_header(), libMesh::RBEvaluation::read_in_vectors_from_multiple_files(), libMesh::System::read_legacy_data(), libMesh::ExodusII_IO_Helper::read_node_num_map(), libMesh::System::read_parallel_data(), libMesh::TransientRBConstruction::read_riesz_representors_from_files(), libMesh::RBConstruction::read_riesz_representors_from_files(), libMesh::System::read_SCALAR_dofs(), libMesh::XdrIO::read_serialized_bc_names(), libMesh::XdrIO::read_serialized_bcs_helper(), libMesh::System::read_serialized_blocked_dof_objects(), libMesh::XdrIO::read_serialized_connectivity(), libMesh::System::read_serialized_data(), libMesh::XdrIO::read_serialized_nodes(), libMesh::XdrIO::read_serialized_nodesets(), libMesh::XdrIO::read_serialized_subdomain_names(), libMesh::System::read_serialized_vector(), libMesh::System::read_serialized_vectors(), renumber_dof_objects(), libMesh::DofMap::scatter_constraints(), libMesh::CheckpointIO::select_split_config(), libMesh::DofMap::set_nonlocal_dof_objects(), libMesh::PetscDMWrapper::set_point_range_in_section(), libMesh::LaplaceMeshSmoother::smooth(), DefaultCouplingTest::testCoupling(), PointNeighborCouplingTest::testCoupling(), MeshInputTest::testDynaReadElem(), MeshInputTest::testDynaReadPatch(), MeshInputTest::testExodusCopyElementSolution(), MeshInputTest::testExodusWriteElementDataFromDiscontinuousNodalData(), SystemsTest::testProjectMatrix1D(), SystemsTest::testProjectMatrix2D(), SystemsTest::testProjectMatrix3D(), BoundaryInfoTest::testShellFaceConstraints(), CheckpointIOTest::testSplitter(), WriteVecAndScalar::testWrite(), libMesh::MeshTools::total_weight(), libMesh::MeshRefinement::uniformly_coarsen(), libMesh::Parallel::Packing< Node * >::unpack(), libMesh::Parallel::Packing< Elem * >::unpack(), update_parallel_id_counts(), libMesh::DTKAdapter::update_variable_values(), libMesh::NameBasedIO::write(), libMesh::XdrIO::write(), libMesh::CheckpointIO::write(), libMesh::EquationSystems::write(), libMesh::GMVIO::write_discontinuous_gmv(), libMesh::ExodusII_IO::write_element_data(), libMesh::ExodusII_IO_Helper::write_element_values(), libMesh::ExodusII_IO_Helper::write_element_values_element_major(), libMesh::ExodusII_IO_Helper::write_elements(), libMesh::ExodusII_IO::write_global_data(), libMesh::ExodusII_IO_Helper::write_global_values(), libMesh::System::write_header(), libMesh::ExodusII_IO::write_information_records(), libMesh::ExodusII_IO_Helper::write_information_records(), libMesh::ExodusII_IO_Helper::write_nodal_coordinates(), libMesh::VTKIO::write_nodal_data(), libMesh::UCDIO::write_nodal_data(), libMesh::ExodusII_IO::write_nodal_data(), libMesh::ExodusII_IO::write_nodal_data_discontinuous(), libMesh::ExodusII_IO_Helper::write_nodal_values(), libMesh::Nemesis_IO_Helper::write_nodesets(), libMesh::ExodusII_IO_Helper::write_nodesets(), libMesh::RBEvaluation::write_out_vectors(), write_output_solvedata(), libMesh::System::write_parallel_data(), libMesh::RBConstruction::write_riesz_representors_to_files(), libMesh::System::write_SCALAR_dofs(), libMesh::XdrIO::write_serialized_bc_names(), libMesh::XdrIO::write_serialized_bcs_helper(), libMesh::System::write_serialized_blocked_dof_objects(), libMesh::XdrIO::write_serialized_connectivity(), libMesh::System::write_serialized_data(), libMesh::XdrIO::write_serialized_nodes(), libMesh::XdrIO::write_serialized_nodesets(), libMesh::XdrIO::write_serialized_subdomain_names(), libMesh::System::write_serialized_vector(), libMesh::System::write_serialized_vectors(), libMesh::ExodusII_IO_Helper::write_sideset_data(), libMesh::Nemesis_IO_Helper::write_sidesets(), libMesh::ExodusII_IO_Helper::write_sidesets(), libMesh::ExodusII_IO::write_timestep(), libMesh::ExodusII_IO_Helper::write_timestep(), and libMesh::ExodusII_IO::write_timestep_discontinuous().
|
inlinevirtualinherited |
Definition at line 609 of file mesh_base.h.
References libMesh::MeshBase::query_elem_ptr().
|
inlinevirtualinherited |
Definition at line 595 of file mesh_base.h.
References libMesh::MeshBase::query_elem_ptr().
|
overridevirtual |
Implements libMesh::MeshBase.
Definition at line 404 of file distributed_mesh.C.
References _elements, libMesh::DofObject::id(), and libMesh::libmesh_assert().
Referenced by SlitMeshTest::testMesh().
|
overridevirtual |
Implements libMesh::MeshBase.
Definition at line 420 of file distributed_mesh.C.
References _elements, libMesh::DofObject::id(), and libMesh::libmesh_assert().
|
overridevirtual |
nullptr
if no such node exists in this processor's mesh data structure. Implements libMesh::MeshBase.
Definition at line 350 of file distributed_mesh.C.
References _nodes, libMesh::DofObject::id(), and libMesh::libmesh_assert().
|
overridevirtual |
nullptr
if no such node exists in this processor's mesh data structure. Implements libMesh::MeshBase.
Definition at line 366 of file distributed_mesh.C.
References _nodes, libMesh::DofObject::id(), and libMesh::libmesh_assert().
|
overridevirtualinherited |
Reads the file specified by name
.
Attempts to figure out the proper method by the file extension. This is now the only way to read a mesh. The UnstructuredMesh
then initializes its data structures and is ready for use.
The skip_renumber_nodes_and_elements argument is now deprecated - to disallow renumbering, set MeshBase::allow_renumbering(false)
.
Set skip_find_neighbors=true to skip the find-neighbors operation during prepare_for_use. This operation isn't always necessary and it can be time-consuming, which is why we provide an option to skip it.
Implements libMesh::MeshBase.
Definition at line 620 of file unstructured_mesh.C.
References libMesh::MeshBase::allow_renumbering(), libMesh::Quality::name(), libMesh::MeshBase::prepare_for_use(), and libMesh::NameBasedIO::read().
Referenced by ExtraIntegersTest::checkpoint_helper(), libMesh::RBEIMEvaluation::legacy_read_in_interpolation_points_elem(), main(), and SlitMeshRefinedSystemTest::testRestart().
|
inherited |
In a few (very rare) cases, the user may have manually tagged the elements with specific processor IDs by hand, without using a partitioner.
In this case, the Mesh will not know that the total number of partitions, _n_parts, has changed, unless you call this function. This is an O(N active elements) calculation. The return value is the number of partitions, and _n_parts is also set by this function.
Definition at line 631 of file mesh_base.C.
|
overridevirtual |
Redistribute elements between processors.
This gets called automatically by the Partitioner, and is a no-op in the case of a serialized mesh.
Reimplemented from libMesh::MeshBase.
Definition at line 871 of file distributed_mesh.C.
References libMesh::UnstructuredMesh::find_neighbors(), is_serial(), libMesh::MeshCommunication::redistribute(), and update_parallel_id_counts().
|
inherited |
Removes a functor which was previously added to the set of ghosting functors.
Definition at line 450 of file mesh_base.C.
Referenced by libMesh::DofMap::clear(), libMesh::DofMap::remove_algebraic_ghosting_functor(), libMesh::DofMap::remove_coupling_functor(), EquationSystemsTest::testDisableDefaultGhosting(), and libMesh::DofMap::~DofMap().
dof_id_type libMesh::DistributedMesh::renumber_dof_objects | ( | mapvector< T *, dof_id_type > & | objects | ) |
Renumber a parallel objects container.
Definition at line 1029 of file distributed_mesh.C.
References libMesh::mapvector< Val, index_t >::begin(), libMesh::ParallelObject::comm(), data, libMesh::mapvector< Val, index_t >::end(), end, libMesh::mapvector< Val, index_t >::erase(), libMesh::index_range(), libMesh::DofObject::invalid_processor_id, libMesh::DofObject::invalid_unique_id, libMesh::libmesh_assert(), libMesh::ParallelObject::n_processors(), libMesh::MeshTools::Subdivision::next, and libMesh::ParallelObject::processor_id().
Referenced by renumber_nodes_and_elements().
|
overridevirtual |
Changes the id of element old_id
, both by changing elem(old_id)->id() and by moving elem(old_id) in the mesh's internal container.
No element with the id new_id
should already exist.
Implements libMesh::MeshBase.
Definition at line 610 of file distributed_mesh.C.
References _elements, libMesh::DofObject::id(), libMesh::libmesh_assert(), and libMesh::DofObject::set_id().
|
overridevirtual |
Changes the id of node old_id
, both by changing node(old_id)->id() and by moving node(old_id) in the mesh's internal container.
No element with the id new_id
should already exist.
Implements libMesh::MeshBase.
Definition at line 797 of file distributed_mesh.C.
References _nodes, libMesh::DofObject::id(), libMesh::libmesh_assert(), and libMesh::DofObject::set_id().
|
overridevirtual |
Remove nullptr elements from arrays.
Implements libMesh::MeshBase.
Definition at line 1279 of file distributed_mesh.C.
References _elements, _n_elem, _n_nodes, _nodes, libMesh::MeshBase::_skip_renumber_nodes_and_elements, libMesh::MeshBase::elem(), element_ptr_range(), end, libMesh::MeshBase::get_boundary_info(), libMesh::DofObject::id(), libMesh::MeshTools::libmesh_assert_valid_elem_ids(), libmesh_assert_valid_parallel_flags(), libmesh_assert_valid_parallel_ids(), libmesh_assert_valid_parallel_p_levels(), max_elem_id(), max_node_id(), n_elem(), n_nodes(), libMesh::MeshBase::node(), libMesh::Elem::node_ref_range(), parallel_max_elem_id(), parallel_max_node_id(), parallel_n_elem(), parallel_n_nodes(), libMesh::BoundaryInfo::remove(), renumber_dof_objects(), and update_parallel_id_counts().
|
inlineoverridevirtual |
Reserves space for a known number of elements.
Mesh
implementation. If you know the number of elements you will add and call this method before repeatedly calling add_point()
the implementation will be more efficient. Implements libMesh::MeshBase.
Definition at line 235 of file distributed_mesh.h.
|
inlineoverridevirtual |
Reserves space for a known number of nodes.
Mesh
implementation. If you know the number of nodes you will add and call this method before repeatedly calling add_point()
the implementation will be more efficient. Implements libMesh::MeshBase.
Definition at line 231 of file distributed_mesh.h.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over elements for which elem->is_semilocal() is true for the current processor.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
inherited |
In the point locator, do we count lower dimensional elements when we refine point locator regions? This is relevant in tree-based point locators, for example.
Definition at line 703 of file mesh_base.C.
|
inlineinherited |
Set the default master space to physical space mapping basis functions to be used on newly added elements.
Definition at line 732 of file mesh_base.h.
References libMesh::MeshBase::_default_mapping_data, and data.
Referenced by libMesh::DynaIO::read_mesh(), RationalMapTest< elem_type >::setUp(), and FETest< order, family, elem_type >::setUp().
|
inlineinherited |
Set the default master space to physical space mapping basis functions to be used on newly added elements.
Definition at line 716 of file mesh_base.h.
References libMesh::MeshBase::_default_mapping_type.
Referenced by libMesh::DynaIO::read_mesh(), and RationalMapTest< elem_type >::setUp().
|
inlineoverridevirtual |
Asserts that not all elements and nodes of the mesh necessarily exist on the current processor.
Reimplemented from libMesh::MeshBase.
Definition at line 133 of file distributed_mesh.h.
References _is_serial, and _is_serial_on_proc_0.
|
inherited |
Most of the time you should not need to call this, as the element dimensions will be set automatically by a call to cache_elem_dims(), therefore only call this if you know what you're doing.
In some specialized situations, for example when adding a single Elem on all procs, it can be faster to skip calling cache_elem_dims() and simply specify the element dimensions manually, which is why this setter exists.
Definition at line 144 of file mesh_base.C.
References libMesh::MeshBase::_elem_dims, and libMesh::MeshBase::cache_elem_dims().
|
inlineinherited |
Resets the logical dimension of the mesh.
If the mesh has elements of multiple dimensions, this should be set to the largest dimension. E.g. if the mesh has 1D and 2D elements, this should be set to 2. If the mesh has 2D and 3D elements, this should be set to 3.
Definition at line 218 of file mesh_base.h.
References libMesh::MeshBase::_elem_dims.
Referenced by libMesh::MeshTools::Generation::build_delaunay_square(), MixedDimensionMeshTest::build_mesh(), MeshfunctionDFEM::build_mesh(), SlitMeshTest::build_mesh(), MixedDimensionNonUniformRefinement::build_mesh(), MixedDimensionNonUniformRefinementTriangle::build_mesh(), MixedDimensionNonUniformRefinement3D::build_mesh(), libMesh::TriangleWrapper::copy_tri_to_mesh(), libMesh::AbaqusIO::read(), libMesh::Nemesis_IO::read(), libMesh::ExodusII_IO::read(), libMesh::GMVIO::read(), libMesh::VTKIO::read(), libMesh::CheckpointIO::read_connectivity(), libMesh::CheckpointIO::read_header(), libMesh::UCDIO::read_implementation(), libMesh::GmshIO::read_mesh(), libMesh::XdrIO::read_serialized_connectivity(), libMesh::OFFIO::read_stream(), libMesh::MatlabIO::read_stream(), and libMesh::TriangleInterface::triangulate().
|
inlineprotectedinherited |
Definition at line 1667 of file mesh_base.h.
References libMesh::MeshBase::_n_parts.
Referenced by libMesh::BoundaryInfo::sync().
|
inlineinherited |
Sets the next unique id to be used.
Definition at line 327 of file mesh_base.h.
References libMesh::MeshBase::_next_unique_id.
|
inherited |
Set value used by PointLocatorBase::close_to_point_tol().
Defaults to 0.0. If nonzero, calls close_to_point_tol() whenever a new PointLocator is built for use by this Mesh. Since the Mesh controls the creation and destruction of the PointLocator, if there are any parameters we need to customize on it, the Mesh will need to know about them.
Definition at line 905 of file mesh_base.C.
|
inherited |
Sets the "spatial dimension" of the Mesh.
See the documentation for Mesh::spatial_dimension() for more information.
Definition at line 166 of file mesh_base.C.
References libMesh::MeshBase::_spatial_dimension.
Referenced by MeshSpatialDimensionTest::test2D().
|
inlineinherited |
Definition at line 1631 of file mesh_base.h.
References libMesh::MeshBase::_block_id_to_name.
Referenced by DistributedMesh(), libMesh::CheckpointIO::read_header(), libMesh::XdrIO::read_serialized_subdomain_names(), libMesh::CheckpointIO::read_subdomain_names(), and libMesh::ReplicatedMesh::ReplicatedMesh().
|
protectedinherited |
Size extra-integer arrays of all elements in the mesh.
Definition at line 926 of file mesh_base.C.
Referenced by libMesh::MeshBase::add_elem_data(), libMesh::MeshBase::add_elem_datum(), and libMesh::MeshBase::add_elem_integer().
|
protectedinherited |
Size extra-integer arrays of all nodes in the mesh.
Definition at line 935 of file mesh_base.C.
Referenced by libMesh::MeshBase::add_node_data(), and libMesh::MeshBase::add_node_datum().
|
inlineinherited |
Definition at line 1061 of file mesh_base.h.
References libMesh::MeshBase::_partitioner, libMesh::MeshBase::_skip_all_partitioning, and libMesh::MeshBase::_skip_noncritical_partitioning.
Referenced by libMesh::UnstructuredMesh::copy_nodes_and_elements().
|
inlineinherited |
If true is passed in then the elements on this mesh will no longer be (re)partitioned, and the nodes on this mesh will only be repartitioned if they are found "orphaned" via coarsening or other removal of the last element responsible for their node/element processor id consistency.
It is also possible, for backwards-compatibility purposes, to skip noncritical partitioning by resetting the partitioner() pointer for this mesh.
Definition at line 1058 of file mesh_base.h.
References libMesh::MeshBase::_skip_noncritical_partitioning.
Referenced by libMesh::MeshTools::correct_node_proc_ids().
|
inlineinherited |
Definition at line 1078 of file mesh_base.h.
References libMesh::MeshBase::_skip_all_partitioning.
Referenced by libMesh::UnstructuredMesh::copy_nodes_and_elements().
|
inlineinherited |
If true is passed in then nothing on this mesh will be (re)partitioned.
Definition at line 1076 of file mesh_base.h.
References libMesh::MeshBase::_skip_all_partitioning.
|
inherited |
The spatial dimension is defined as:
1 - for an exactly x-aligned mesh of 1D elements 2 - for an exactly x-y planar mesh of 2D elements 3 - otherwise
No tolerance checks are performed to determine whether the Mesh is x-aligned or x-y planar, only strict equality with zero in the higher dimensions is checked. Also, x-z and y-z planar meshes are considered to have spatial dimension == 3.
The spatial dimension is updated during prepare_for_use() based on the dimensions of the various elements present in the Mesh, but is never automatically decreased by this function.
For example, if the user calls set_spatial_dimension(2) and then later inserts 3D elements into the mesh, Mesh::spatial_dimension() will return 3 after the next call to prepare_for_use(). On the other hand, if the user calls set_spatial_dimension(3) and then inserts only x-aligned 1D elements into the Mesh, mesh.spatial_dimension() will remain 3.
Definition at line 159 of file mesh_base.C.
References libMesh::MeshBase::_spatial_dimension.
Referenced by MeshSpatialDimensionTest::test1D(), and MeshSpatialDimensionTest::test2D().
|
inherited |
PointLocatorBase
object for this mesh, constructing a master PointLocator first if necessary. This should not be used in threaded or non-parallel_only code unless the master has already been constructed. Definition at line 672 of file mesh_base.C.
References libMesh::Threads::in_threads, libMesh::libmesh_assert(), and libMesh::TREE_ELEMENTS.
Referenced by MeshfunctionDFEM::build_mesh(), libMesh::DofMap::create_dof_constraints(), libMesh::MeshFunction::init(), libMesh::MeshTools::libmesh_assert_consistent_distributed_nodes(), libMesh::MeshRefinement::make_coarsening_compatible(), libMesh::MeshRefinement::make_refinement_compatible(), libMesh::DefaultCoupling::mesh_reinit(), libMesh::PointNeighborCoupling::mesh_reinit(), libMesh::MeshRefinement::test_level_one(), PointLocatorTest::testLocator(), MixedDimensionMeshTest::testPointLocatorTree(), SystemsTest::testProjectCube(), SystemsTest::testProjectLine(), and SystemsTest::testProjectSquare().
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over elements for which elem->subactive() is true.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
inherited |
Constructs a list of all subdomain identifiers in the global mesh.
Subdomains correspond to separate subsets of the mesh which could correspond e.g. to different materials in a solid mechanics application, or regions where different physical processes are important. The subdomain mapping is independent from the parallel decomposition.
Definition at line 461 of file mesh_base.C.
Referenced by libMesh::ReplicatedMesh::get_disconnected_subdomains(), and libMesh::TecplotIO::TecplotIO().
|
inherited |
Definition at line 717 of file mesh_base.C.
Referenced by libMesh::AbaqusIO::assign_subdomain_ids(), DMlibMeshSetSystem_libMesh(), libMesh::UNVIO::groups_in(), libMesh::ExodusII_IO::read(), libMesh::GmshIO::read_mesh(), and libMesh::TecplotIO::write_binary().
|
inherited |
Definition at line 722 of file mesh_base.C.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over all elements with a specified geometric type.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Iterate over unpartitioned elements in the Mesh.
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Implements libMesh::MeshBase.
|
overridevirtual |
Updates parallel caches so that methods like n_elem() accurately reflect changes on other processors.
Implements libMesh::MeshBase.
Definition at line 178 of file distributed_mesh.C.
References _max_elem_id, _max_node_id, _n_elem, _n_nodes, _next_free_local_elem_id, _next_free_local_node_id, _next_free_unpartitioned_elem_id, _next_free_unpartitioned_node_id, libMesh::MeshBase::_next_unique_id, _next_unpartitioned_unique_id, libMesh::ParallelObject::n_processors(), parallel_max_elem_id(), parallel_max_node_id(), parallel_max_unique_id(), parallel_n_elem(), parallel_n_nodes(), and libMesh::ParallelObject::processor_id().
Referenced by delete_remote_elements(), DistributedMesh(), redistribute(), renumber_nodes_and_elements(), and update_post_partitioning().
|
overridevirtual |
Recalculate cached data after elements and nodes have been repartitioned.
Reimplemented from libMesh::MeshBase.
Definition at line 901 of file distributed_mesh.C.
References update_parallel_id_counts().
|
overridevirtualinherited |
Write the file specified by name
.
Attempts to figure out the proper method by the file extension.
Implements libMesh::MeshBase.
Definition at line 650 of file unstructured_mesh.C.
References libMesh::Quality::name(), and libMesh::NameBasedIO::write().
Referenced by libMesh::RBEIMEvaluation::legacy_write_out_interpolation_points_elem(), and main().
|
inherited |
Write to the file specified by name
.
Attempts to figure out the proper method by the file extension. Also writes data.
Definition at line 659 of file unstructured_mesh.C.
References libMesh::Quality::name(), and libMesh::NameBasedIO::write_nodal_data().
|
protectedinherited |
If this is false then even on DistributedMesh remote elements will not be deleted during mesh preparation.
This is true by default.
Definition at line 1754 of file mesh_base.h.
Referenced by libMesh::MeshBase::allow_remote_element_removal().
|
protectedinherited |
This structure maintains the mapping of named blocks for file formats that support named blocks.
Currently this is only implemented for ExodusII
Definition at line 1761 of file mesh_base.h.
Referenced by libMesh::MeshBase::get_subdomain_name_map(), and libMesh::MeshBase::set_subdomain_name_map().
|
protectedinherited |
Definition at line 112 of file parallel_object.h.
Referenced by libMesh::EquationSystems::build_parallel_elemental_solution_vector(), libMesh::EquationSystems::build_parallel_solution_vector(), libMesh::ParallelObject::comm(), libMesh::ParallelObject::n_processors(), libMesh::ParallelObject::operator=(), and libMesh::ParallelObject::processor_id().
|
protectedinherited |
Do we count lower dimensional elements in point locator refinement? This is relevant in tree-based point locators, for example.
Definition at line 1713 of file mesh_base.h.
|
protectedinherited |
The default geometric GhostingFunctor, used to implement standard libMesh element ghosting behavior.
We use a base class pointer here to avoid dragging in more header dependencies.
Definition at line 1812 of file mesh_base.h.
Referenced by libMesh::MeshBase::default_ghosting(), and libMesh::MeshBase::MeshBase().
|
protectedinherited |
The default mapping data (unused with Lagrange, used for nodal weight lookup index with rational bases) to assign to newly added elements.
Definition at line 1693 of file mesh_base.h.
Referenced by libMesh::MeshBase::default_mapping_data(), and libMesh::MeshBase::set_default_mapping_data().
|
protectedinherited |
The default mapping type (typically Lagrange) between master and physical space to assign to newly added elements.
Definition at line 1686 of file mesh_base.h.
Referenced by libMesh::MeshBase::default_mapping_type(), and libMesh::MeshBase::set_default_mapping_type().
|
protectedinherited |
We cache the dimension of the elements present in the mesh.
So, if we have a mesh with 1D and 2D elements, this structure will contain 1 and 2.
Definition at line 1768 of file mesh_base.h.
Referenced by libMesh::MeshBase::elem_dimensions(), libMesh::MeshBase::mesh_dimension(), libMesh::MeshBase::MeshBase(), libMesh::MeshBase::set_elem_dimensions(), and libMesh::MeshBase::set_mesh_dimension().
|
protectedinherited |
The array of names for integer data associated with each element in the mesh.
Definition at line 1780 of file mesh_base.h.
Referenced by libMesh::ReplicatedMesh::add_elem(), add_elem(), libMesh::MeshBase::add_elem_data(), libMesh::MeshBase::add_elem_datum(), libMesh::MeshBase::add_elem_integer(), libMesh::MeshBase::add_elem_integers(), libMesh::UnstructuredMesh::copy_nodes_and_elements(), libMesh::UnstructuredMesh::create_submesh(), libMesh::MeshBase::get_elem_integer_name(), libMesh::ReplicatedMesh::insert_elem(), insert_elem(), libMesh::MeshBase::merge_extra_integer_names(), and libMesh::MeshBase::n_elem_integers().
|
protected |
The elements in the mesh.
Definition at line 555 of file distributed_mesh.h.
Referenced by add_elem(), clear(), delete_elem(), delete_remote_elements(), elem_ptr(), fix_broken_node_and_element_numbering(), insert_elem(), libmesh_assert_valid_parallel_flags(), libmesh_assert_valid_parallel_ids(), libmesh_assert_valid_parallel_p_levels(), parallel_max_elem_id(), query_elem_ptr(), renumber_elem(), and renumber_nodes_and_elements().
|
protected |
These are extra ghost elements that we want to make sure not to delete when we call delete_remote_elements()
Definition at line 592 of file distributed_mesh.h.
Referenced by add_extra_ghost_elem(), clear_extra_ghost_elems(), delete_remote_elements(), DistributedMesh(), and extra_ghost_elems().
|
protectedinherited |
The list of all GhostingFunctor objects to be used when distributing a DistributedMesh.
Basically unused by ReplicatedMesh for now, but belongs to MeshBase because the cost is trivial.
Definition at line 1821 of file mesh_base.h.
Referenced by libMesh::MeshBase::add_ghosting_functor(), libMesh::MeshBase::ghosting_functors_begin(), libMesh::MeshBase::ghosting_functors_end(), and libMesh::MeshBase::MeshBase().
|
protectedinherited |
Flag indicating if the mesh has been prepared for use.
Definition at line 1698 of file mesh_base.h.
Referenced by libMesh::UnstructuredMesh::all_first_order(), libMesh::UnstructuredMesh::all_second_order(), libMesh::UnstructuredMesh::copy_nodes_and_elements(), and libMesh::MeshBase::is_prepared().
|
protected |
A boolean remembering whether we're serialized or not.
Definition at line 560 of file distributed_mesh.h.
Referenced by allgather(), clear(), delete_remote_elements(), is_serial(), is_serial_on_zero(), and set_distributed().
|
protected |
A boolean remembering whether we're serialized to proc 0 or not.
Definition at line 565 of file distributed_mesh.h.
Referenced by allgather(), clear(), delete_remote_elements(), gather_to_zero(), is_serial_on_zero(), and set_distributed().
|
protected |
Definition at line 570 of file distributed_mesh.h.
Referenced by add_elem(), clear(), DistributedMesh(), max_elem_id(), and update_parallel_id_counts().
|
protected |
Definition at line 570 of file distributed_mesh.h.
Referenced by add_node(), clear(), DistributedMesh(), max_node_id(), and update_parallel_id_counts().
|
protected |
Definition at line 570 of file distributed_mesh.h.
Referenced by add_elem(), clear(), delete_elem(), DistributedMesh(), insert_elem(), n_elem(), renumber_nodes_and_elements(), and update_parallel_id_counts().
|
protected |
Cached data from the last renumber_nodes_and_elements call.
Definition at line 570 of file distributed_mesh.h.
Referenced by add_node(), clear(), delete_node(), DistributedMesh(), n_nodes(), renumber_nodes_and_elements(), and update_parallel_id_counts().
|
protectedinherited |
The number of partitions the mesh has.
This is set by the partitioners, and may not be changed directly by the user.
Definition at line 1680 of file mesh_base.h.
Referenced by libMesh::UnstructuredMesh::copy_nodes_and_elements(), libMesh::MeshBase::n_partitions(), and libMesh::MeshBase::set_n_partitions().
|
protected |
Definition at line 576 of file distributed_mesh.h.
Referenced by add_elem(), clear(), DistributedMesh(), and update_parallel_id_counts().
|
protected |
Guaranteed globally unused IDs for use when adding new nodes or elements.
Definition at line 576 of file distributed_mesh.h.
Referenced by add_node(), clear(), DistributedMesh(), and update_parallel_id_counts().
|
protected |
Definition at line 578 of file distributed_mesh.h.
Referenced by add_elem(), clear(), DistributedMesh(), and update_parallel_id_counts().
|
protected |
Definition at line 578 of file distributed_mesh.h.
Referenced by add_node(), clear(), DistributedMesh(), and update_parallel_id_counts().
|
protectedinherited |
The next available unique id for assigning ids to DOF objects.
Definition at line 1727 of file mesh_base.h.
Referenced by libMesh::ReplicatedMesh::add_elem(), add_elem(), libMesh::ReplicatedMesh::add_node(), add_node(), libMesh::ReplicatedMesh::add_point(), DistributedMesh(), libMesh::ReplicatedMesh::insert_elem(), insert_elem(), libMesh::ReplicatedMesh::insert_node(), libMesh::MeshBase::next_unique_id(), libMesh::ReplicatedMesh::parallel_max_unique_id(), parallel_max_unique_id(), libMesh::ReplicatedMesh::ReplicatedMesh(), libMesh::MeshBase::set_next_unique_id(), libMesh::ReplicatedMesh::update_parallel_id_counts(), and update_parallel_id_counts().
|
protected |
The next available unique id for assigning ids to unpartitioned DOF objects.
Definition at line 585 of file distributed_mesh.h.
Referenced by add_elem(), add_node(), DistributedMesh(), insert_elem(), parallel_max_unique_id(), and update_parallel_id_counts().
|
protectedinherited |
The array of names for integer data associated with each node in the mesh.
Definition at line 1786 of file mesh_base.h.
Referenced by libMesh::ReplicatedMesh::add_node(), add_node(), libMesh::MeshBase::add_node_data(), libMesh::MeshBase::add_node_datum(), libMesh::ReplicatedMesh::add_point(), libMesh::UnstructuredMesh::copy_nodes_and_elements(), libMesh::UnstructuredMesh::create_submesh(), libMesh::MeshBase::get_node_integer_name(), libMesh::ReplicatedMesh::insert_node(), libMesh::MeshBase::merge_extra_integer_names(), and libMesh::MeshBase::n_node_integers().
|
protected |
The vertices (spatial coordinates) of the mesh.
Definition at line 550 of file distributed_mesh.h.
Referenced by add_node(), add_point(), clear(), delete_node(), delete_remote_elements(), fix_broken_node_and_element_numbering(), libmesh_assert_valid_parallel_ids(), node_ptr(), own_node(), parallel_max_node_id(), query_node_ptr(), renumber_node(), and renumber_nodes_and_elements().
|
protectedinherited |
A partitioner to use at each prepare_for_use().
This will be built in the constructor of each derived class, but can be replaced by the user through the partitioner() accessor.
Definition at line 1721 of file mesh_base.h.
Referenced by DistributedMesh(), libMesh::MeshBase::MeshBase(), libMesh::MeshBase::partitioner(), libMesh::ReplicatedMesh::ReplicatedMesh(), and libMesh::MeshBase::skip_noncritical_partitioning().
|
mutableprotectedinherited |
A PointLocator
class for this mesh.
This will not actually be built unless needed. Further, since we want our point_locator()
method to be const
(yet do the dynamic allocating) this needs to be mutable. Since the PointLocatorBase::build() member is used, and it operates on a constant reference to the mesh, this is OK.
Definition at line 1707 of file mesh_base.h.
|
protectedinherited |
If nonzero, we will call PointLocatorBase::set_close_to_point_tol() on any PointLocators that we create.
Definition at line 1833 of file mesh_base.h.
|
protectedinherited |
Hang on to references to any GhostingFunctor objects we were passed in shared_ptr form.
Definition at line 1827 of file mesh_base.h.
Referenced by libMesh::MeshBase::add_ghosting_functor().
|
protectedinherited |
If this is true then no partitioning should be done.
Definition at line 1739 of file mesh_base.h.
Referenced by libMesh::UnstructuredMesh::copy_nodes_and_elements(), libMesh::MeshBase::skip_noncritical_partitioning(), and libMesh::MeshBase::skip_partitioning().
|
protectedinherited |
If this is true then no partitioning should be done with the possible exception of orphaned nodes.
Definition at line 1734 of file mesh_base.h.
Referenced by libMesh::UnstructuredMesh::copy_nodes_and_elements(), and libMesh::MeshBase::skip_noncritical_partitioning().
|
protectedinherited |
If this is true then renumbering will be kept to a minimum.
This is set when prepare_for_use() is called.
Definition at line 1746 of file mesh_base.h.
Referenced by libMesh::MeshBase::allow_renumbering(), libMesh::ReplicatedMesh::renumber_nodes_and_elements(), and renumber_nodes_and_elements().
|
protectedinherited |
The "spatial dimension" of the Mesh.
See the documentation for Mesh::spatial_dimension() for more information.
Definition at line 1774 of file mesh_base.h.
Referenced by libMesh::MeshBase::set_spatial_dimension(), and libMesh::MeshBase::spatial_dimension().
|
inherited |
This class holds the boundary information.
It can store nodes, edges, and faces with a corresponding id that facilitates setting boundary conditions.
Direct access to this class will be removed in future libMesh versions. Use the get_boundary_info()
accessor instead.
Definition at line 1659 of file mesh_base.h.
Referenced by libMesh::MeshBase::get_boundary_info(), and MeshInputTest::testMeshMoveConstructor().