81 const std::vector<dof_id_type> &
globalIDs()
const;
102 const std::vector<dof_id_type> &
110 const std::vector<dof_id_type> &
117 const std::vector<dof_id_type> &
const std::vector< dof_id_type > & globalIDs() const
Vector of all global node IDs (node numbers in the mesh)
void clear()
clear all data in readiness for adding global nodes and connections
dof_id_type globalID(dof_id_type sequential_node_ID) const
Return the global node ID (node number in the mesh) corresponding to the provided sequential node ID...
std::vector< dof_id_type > _sequential_id
bool _still_adding_global_nodes
dof_id_type _min_global_id
void addConnection(dof_id_type global_node_from, dof_id_type global_node_to)
Specifies that global_node_to is connected to global_node_from.
dof_id_type sequentialID(dof_id_type global_node_ID) const
Return the sequential node ID corresponding to the global node ID This is guaranteed to lie in the ra...
const std::vector< dof_id_type > & sequentialConnectionsToSequentialID(dof_id_type sequential_node_ID) const
Return all the nodes (sequential node IDs) connected to the given sequential node ID All elements of ...
void finalizeAddingConnections()
Signal that all global node IDs have been added to the internal data structures.
unsigned indexOfGlobalConnection(dof_id_type global_node_ID_from, dof_id_type global_node_ID_to) const
Return the index of global_node_ID_to in the globalConnectionsToGlobalID(global_node_ID_from) vector...
bool _still_adding_connections
const std::vector< dof_id_type > & globalConnectionsToSequentialID(dof_id_type sequential_node_ID) const
Return all the nodes (global node IDs) connected to the given sequential node ID. ...
std::size_t sizeSequential() const
Return the size of _sequential_id, for checking memory efficiency.
dof_id_type _max_global_id
const std::vector< dof_id_type > & sequentialConnectionsToGlobalID(dof_id_type global_node_ID) const
Return all the nodes (sequential node IDs) connected to the given global node ID All elements of the ...
std::vector< std::vector< dof_id_type > > _sequential_neighbors
std::vector< dof_id_type > _global_id
PorousFlowConnectedNodes()
std::size_t numNodes() const
number of nodes known by this class
std::vector< std::vector< dof_id_type > > _global_neighbors
std::set< dof_id_type > _set_of_global_ids
Class designed to hold node ID information and information about nodal connectivity.
std::vector< std::set< dof_id_type > > _neighbor_sets
const std::vector< dof_id_type > & globalConnectionsToGlobalID(dof_id_type global_node_ID) const
Return all the nodes (global node IDs) connected to the given global node ID.
void finalizeAddingGlobalNodes()
Signal that all global node IDs have been added to the internal data structures.
void addGlobalNode(dof_id_type global_node_ID)
Add the given global_node_ID to the internal data structures If the global node ID has already been a...
unsigned indexOfSequentialConnection(dof_id_type sequential_node_ID_from, dof_id_type sequential_node_ID_to) const
Return the index of sequential_node_ID_to in the sequentialConnectionsToSequentialID(sequential_node_...