add safety check for FindEdges

This commit is contained in:
Christopher Lackner 2020-04-19 19:26:44 +02:00
parent b46ec8dc7b
commit 83a48af36a

View File

@ -1256,6 +1256,9 @@ namespace netgen
*testout << "inv: " << endl << refedgesinv << endl;
}
if(refedges.Size() == 0)
throw Exception("No edges found, something wrong.");
NgBitArray todelete(refedges.Size());
todelete.Clear();