fixed another bug

This commit is contained in:
Julius Zimmermann 2019-07-23 23:23:10 +02:00
parent fe782670f8
commit 57215cc707

View File

@ -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