Go to the documentation of this file.
70 dof_id_type
globalID(dof_id_type sequential_node_ID)
const;
77 dof_id_type
sequentialID(dof_id_type global_node_ID)
const;
80 const std::vector<dof_id_type> &
globalIDs()
const;
91 void addConnection(dof_id_type global_node_from, dof_id_type global_node_to);
101 const std::vector<dof_id_type> &
109 const std::vector<dof_id_type> &
116 const std::vector<dof_id_type> &
121 dof_id_type global_node_ID_to)
const;
125 dof_id_type sequential_node_ID_to)
const;
std::vector< std::vector< dof_id_type > > _sequential_neighbors
std::vector< dof_id_type > _global_id
bool _still_adding_connections
Class designed to hold node ID information and information about nodal connectivity.
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 numNodes() const
number of nodes known by this class
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.
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 ...
std::vector< dof_id_type > _sequential_id
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_...
std::vector< std::vector< dof_id_type > > _global_neighbors
bool _still_adding_global_nodes
void clear()
clear all data in readiness for adding global nodes and connections
dof_id_type _min_global_id
dof_id_type _max_global_id
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.
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.
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 ...
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...
void finalizeAddingConnections()
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...
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.
const std::vector< dof_id_type > & globalIDs() const
Vector of all global node IDs (node numbers in the mesh)
PorousFlowConnectedNodes()
std::set< dof_id_type > _set_of_global_ids
std::vector< std::set< dof_id_type > > _neighbor_sets
std::size_t sizeSequential() const
Return the size of _sequential_id, for checking memory efficiency.