Skip to content

Commit

Permalink
Fix bug in nginterface (discovered by gcc -Wall)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhochsteger committed Dec 3, 2024
1 parent 32e0026 commit 0c1943c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libsrc/interface/nginterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2246,11 +2246,8 @@ int Ng_GetClosureNodes (int nt, int nodenr, int nodeset, int * nodes)

if (nodeset & 2) // Edges
{
int edges[12];
// int ned;
// ned = mesh->GetTopology().GetElementEdges (nodenr+1, edges, 0);
int ned = mesh->GetTopology().GetEdges (ElementIndex(nodenr)).Size();
for (int i = 0; i < ned; i++)
auto edges = mesh->GetTopology().GetEdges (ElementIndex(nodenr));
for (int i = 0; i < edges.Size(); i++)
{
nodes[cnt++] = 1;
nodes[cnt++] = edges[i]-1;
Expand Down

0 comments on commit 0c1943c

Please sign in to comment.