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

[NL/DOF] Readability: p_mesh -> partitioned_mesh.

parent db74ada7
No related branches found
No related tags found
No related merge requests found
...@@ -339,9 +339,9 @@ void MeshComponentMap::createParallelMeshComponentMap( ...@@ -339,9 +339,9 @@ void MeshComponentMap::createParallelMeshComponentMap(
GlobalIndexType num_unknowns = 0; GlobalIndexType num_unknowns = 0;
for (auto const& c : components) for (auto const& c : components)
{ {
const MeshLib::NodePartitionedMesh& p_mesh = const MeshLib::NodePartitionedMesh& partitioned_mesh =
static_cast<const MeshLib::NodePartitionedMesh&>(c.getMesh()); static_cast<const MeshLib::NodePartitionedMesh&>(c.getMesh());
num_unknowns += p_mesh.getNumberOfGlobalNodes(); num_unknowns += partitioned_mesh.getNumberOfGlobalNodes();
} }
// construct dict (and here we number global_index by component type) // construct dict (and here we number global_index by component type)
...@@ -353,7 +353,7 @@ void MeshComponentMap::createParallelMeshComponentMap( ...@@ -353,7 +353,7 @@ void MeshComponentMap::createParallelMeshComponentMap(
assert(dynamic_cast<MeshLib::NodePartitionedMesh const*>( assert(dynamic_cast<MeshLib::NodePartitionedMesh const*>(
&c.getMesh()) != nullptr); &c.getMesh()) != nullptr);
std::size_t const mesh_id = c.getMeshID(); std::size_t const mesh_id = c.getMeshID();
const MeshLib::NodePartitionedMesh& p_mesh = const MeshLib::NodePartitionedMesh& partitioned_mesh =
static_cast<const MeshLib::NodePartitionedMesh&>(c.getMesh()); static_cast<const MeshLib::NodePartitionedMesh&>(c.getMesh());
// mesh items are ordered first by node, cell, .... // mesh items are ordered first by node, cell, ....
...@@ -362,8 +362,8 @@ void MeshComponentMap::createParallelMeshComponentMap( ...@@ -362,8 +362,8 @@ void MeshComponentMap::createParallelMeshComponentMap(
GlobalIndexType global_id = 0; GlobalIndexType global_id = 0;
global_id = static_cast<GlobalIndexType>( global_id = static_cast<GlobalIndexType>(
components.size() * p_mesh.getGlobalNodeID(j) + comp_id); components.size() * p_mesh.getGlobalNodeID(j) + comp_id);
const bool is_ghost = const bool is_ghost = partitioned_mesh.isGhostNode(
p_mesh.isGhostNode(p_mesh.getNode(j)->getID()); partitioned_mesh.getNode(j)->getID());
if (is_ghost) if (is_ghost)
{ {
_ghosts_indices.push_back(global_id); _ghosts_indices.push_back(global_id);
...@@ -380,7 +380,7 @@ void MeshComponentMap::createParallelMeshComponentMap( ...@@ -380,7 +380,7 @@ void MeshComponentMap::createParallelMeshComponentMap(
comp_id, global_id)); comp_id, global_id));
} }
_num_global_dof += p_mesh.getNumberOfGlobalNodes(); _num_global_dof += partitioned_mesh.getNumberOfGlobalNodes();
comp_id++; comp_id++;
} }
} }
......
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