Skip to content

Commit

Permalink
Removed tests that always evaluate to true
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasbuykx committed Feb 6, 2024
1 parent 5e9d467 commit e9be073
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions libs/MeshKernel/src/CurvilinearGrid/CurvilinearGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,27 +195,19 @@ CurvilinearGrid::ConvertCurvilinearToNodesAndEdges() const
{
for (UInt n = 0; n < NumN(); n++)
{
if (nodeIndices(m, n) != constants::missing::uintValue &&
nodeIndices(m + 1, n) != constants::missing::uintValue)
{
edges[ind].first = nodeIndices(m, n);
edges[ind].second = nodeIndices(m + 1, n);
ind++;
}
edges[ind].first = nodeIndices(m, n);
edges[ind].second = nodeIndices(m + 1, n);
ind++;
}
}

for (UInt m = 0; m < NumM(); m++)
{
for (UInt n = 0; n < NumN() - 1; n++)
{
if (nodeIndices(m, n) != constants::missing::uintValue &&
nodeIndices(m, n + 1) != constants::missing::uintValue)
{
edges[ind].first = nodeIndices(m, n);
edges[ind].second = nodeIndices(m, n + 1);
ind++;
}
edges[ind].first = nodeIndices(m, n);
edges[ind].second = nodeIndices(m, n + 1);
ind++;
}
}
edges.resize(ind);
Expand Down

0 comments on commit e9be073

Please sign in to comment.