mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
fix (recent) edge index error
This commit is contained in:
parent
2b7c1af813
commit
32320a48c1
@ -2285,7 +2285,7 @@ namespace netgen
|
||||
for (int j = 0; j < eledges.Size(); j++)
|
||||
{
|
||||
int vi1, vi2;
|
||||
GetEdgeVertices (eledges[j], vi1, vi2);
|
||||
GetEdgeVertices (eledges[j]+1, vi1, vi2);
|
||||
|
||||
bool has1 = 0;
|
||||
bool has2 = 0;
|
||||
@ -2307,13 +2307,13 @@ namespace netgen
|
||||
if(withorientation)
|
||||
{
|
||||
if(w1==vi1 && w2==vi2)
|
||||
fedges[k] = eledges[j];
|
||||
fedges[k] = eledges[j]+1;
|
||||
if(w1==vi2 && w2==vi1)
|
||||
fedges[k] = -eledges[j];
|
||||
fedges[k] = -eledges[j]+1;
|
||||
}
|
||||
else
|
||||
if((w1==vi1 && w2==vi2) || (w1==vi2 && w2==vi1))
|
||||
fedges[k] = eledges[j];
|
||||
fedges[k] = eledges[j]+1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user