mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 22:00:33 +05:00
Fix bug in nginterface (discovered by gcc -Wall)
This commit is contained in:
parent
32e0026128
commit
0c1943c77b
@ -2246,11 +2246,8 @@ int Ng_GetClosureNodes (int nt, int nodenr, int nodeset, int * nodes)
|
|||||||
|
|
||||||
if (nodeset & 2) // Edges
|
if (nodeset & 2) // Edges
|
||||||
{
|
{
|
||||||
int edges[12];
|
auto edges = mesh->GetTopology().GetEdges (ElementIndex(nodenr));
|
||||||
// int ned;
|
for (int i = 0; i < edges.Size(); i++)
|
||||||
// ned = mesh->GetTopology().GetElementEdges (nodenr+1, edges, 0);
|
|
||||||
int ned = mesh->GetTopology().GetEdges (ElementIndex(nodenr)).Size();
|
|
||||||
for (int i = 0; i < ned; i++)
|
|
||||||
{
|
{
|
||||||
nodes[cnt++] = 1;
|
nodes[cnt++] = 1;
|
||||||
nodes[cnt++] = edges[i]-1;
|
nodes[cnt++] = edges[i]-1;
|
||||||
|
Loading…
Reference in New Issue
Block a user