HPRefinement: curve new elements only if coarse el was curved

This commit is contained in:
Matthias Hochsteger 2020-02-11 16:04:13 +01:00
parent dff550a48c
commit 34ac3b200d

View File

@ -1407,6 +1407,7 @@ namespace netgen
el.SetIndex(hpel.index);
if(setorders)
el.SetOrder(act_ref+1,act_ref+1,0);
if((*mesh.coarsemesh)[SurfaceElementIndex{hpel.coarse_elnr}].IsCurved())
el.SetCurved(true);
mesh.AddSurfaceElement(el);
break;
@ -1423,6 +1424,7 @@ namespace netgen
el.hp_elnr = i;
if(setorders)
el.SetOrder(act_ref+1,act_ref+1,act_ref+1);
if((*mesh.coarsemesh)[ElementIndex{hpel.coarse_elnr}].IsCurved())
el.SetCurved(true);
mesh.AddVolumeElement(el);
break;