throw exception on 1D mesh bisection

This commit is contained in:
Joachim Schöberl 2019-10-02 22:06:44 +02:00
parent 7e3b292bb8
commit f0eae10a24

View File

@ -1958,6 +1958,8 @@ namespace netgen
const NgArray< NgArray<int,PointIndex::BASE>* > & idmaps,
const string & refinfofile)
{
if (mesh.GetDimension() < 2)
throw Exception ("Mesh bisection is available in 2D and 3D");
// mtets.SetName ("bisection, tets");
// mprisms.SetName ("bisection, prisms");
// mtris.SetName ("bisection, trigs");