Skip to content
Snippets Groups Projects
Commit 79ac3d62 authored by Tom Fischer's avatar Tom Fischer Committed by Dmitri Naumov
Browse files

[NL/DOF] Readability: rename id -> index.

parent 9cdb7351
No related branches found
No related tags found
No related merge requests found
......@@ -359,20 +359,20 @@ void MeshComponentMap::createParallelMeshComponentMap(
// mesh items are ordered first by node, cell, ....
for (std::size_t j = 0; j < c.getNumberOfNodes(); j++)
{
GlobalIndexType global_id = static_cast<GlobalIndexType>(
GlobalIndexType global_index = static_cast<GlobalIndexType>(
components.size() * partitioned_mesh.getGlobalNodeID(j) +
comp_id);
const bool is_ghost = partitioned_mesh.isGhostNode(
partitioned_mesh.getNode(j)->getID());
if (is_ghost)
{
_ghosts_indices.push_back(global_id);
global_id = -global_id;
_ghosts_indices.push_back(global_index);
global_index = -global_index;
// If the ghost entry has an index of 0,
// its index is set to the negative value of unknowns.
if (global_id == 0)
if (global_index == 0)
{
global_id = -num_unknowns;
global_index = -num_unknowns;
}
}
else
......@@ -381,7 +381,7 @@ void MeshComponentMap::createParallelMeshComponentMap(
}
_dict.insert(Line(Location(mesh_id, MeshLib::MeshItemType::Node, j),
comp_id, global_id));
comp_id, global_index));
}
_num_global_dof += partitioned_mesh.getNumberOfGlobalNodes();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment