Skip to content
Snippets Groups Projects
Commit 2d4729b8 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[App/IO] Don't shadow outer loop variable.

The outer loop is also over variable named 'k'.
parent 76402563
No related branches found
No related tags found
No related merge requests found
......@@ -492,8 +492,9 @@ bool TetGenInterface::parseElements(std::ifstream& ins,
}
// insert new element into vector
auto** tet_nodes = new MeshLib::Node*[4];
for (unsigned k(0); k<4; k++) {
tet_nodes[k] = nodes[ids[k]];
for (int n = 0; n < 4; n++)
{
tet_nodes[n] = nodes[ids[n]];
}
elements.push_back (new MeshLib::Tet(tet_nodes));
materials.push_back(region);
......
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