throw if surface is extruded that is not named (if map surface-> new

mat is given)
This commit is contained in:
Christopher Lackner 2024-01-31 12:27:03 +01:00
parent 6533663b7f
commit e155700bc3

View File

@ -1222,6 +1222,9 @@ namespace netgen
if(surfacefacs[sel.GetIndex()] > 0) Swap(points[0], points[2]);
for(auto i : Range(points))
el[sel.PNums().Size() + i] = points[i];
auto new_index = new_mat_nrs[sel.GetIndex()];
if(new_index == -1)
throw Exception("Boundary " + ToString(sel.GetIndex()) + " with name " + mesh.GetBCName(sel.GetIndex()-1) + " extruded, but no new material specified for it!");
el.SetIndex(new_mat_nrs[sel.GetIndex()]);
mesh.AddVolumeElement(el);
}