mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
add safety check for FindEdges
This commit is contained in:
parent
b46ec8dc7b
commit
83a48af36a
@ -1256,6 +1256,9 @@ namespace netgen
|
|||||||
*testout << "inv: " << endl << refedgesinv << endl;
|
*testout << "inv: " << endl << refedgesinv << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(refedges.Size() == 0)
|
||||||
|
throw Exception("No edges found, something wrong.");
|
||||||
|
|
||||||
NgBitArray todelete(refedges.Size());
|
NgBitArray todelete(refedges.Size());
|
||||||
todelete.Clear();
|
todelete.Clear();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user