fix index error in cgns import

This commit is contained in:
Matthias Hochsteger 2020-10-27 14:54:25 +01:00
parent f51ad8eed5
commit 47632a06aa

View File

@ -677,7 +677,7 @@ namespace netgen
for (auto sei : Range(mesh.SurfaceElements())) for (auto sei : Range(mesh.SurfaceElements()))
{ {
int ei0, ei1; int ei0, ei1;
topo.GetSurface2VolumeElement (sei, ei0, ei1); topo.GetSurface2VolumeElement (sei+1, ei0, ei1);
auto si = mesh.SurfaceElement(sei).GetIndex(); auto si = mesh.SurfaceElement(sei).GetIndex();
auto & fd = mesh.GetFaceDescriptor(si); auto & fd = mesh.GetFaceDescriptor(si);