mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
fixed another bug
This commit is contained in:
parent
fe782670f8
commit
57215cc707
@ -382,7 +382,7 @@ namespace netgen
|
|||||||
// loop through segments to assign default BC to unmarked edges
|
// loop through segments to assign default BC to unmarked edges
|
||||||
int bccounter_tmp = bccounter;
|
int bccounter_tmp = bccounter;
|
||||||
for(int index=1; index <= mesh.GetNSeg(); index++){
|
for(int index=1; index <= mesh.GetNSeg(); index++){
|
||||||
Segment & seg = mesh.LineSegment(get<0>(element_map[index]));
|
Segment & seg = mesh.LineSegment(index);
|
||||||
if(seg.si == -1){
|
if(seg.si == -1){
|
||||||
seg.si = bccounter + 1;
|
seg.si = bccounter + 1;
|
||||||
if(bccounter_tmp == bccounter) mesh.SetBCName(bccounter, "default"); // could be more efficient
|
if(bccounter_tmp == bccounter) mesh.SetBCName(bccounter, "default"); // could be more efficient
|
||||||
|
Loading…
Reference in New Issue
Block a user