Commit a3ca3b8e authored by Julian Marcon's avatar Julian Marcon
Browse files

Check bounding box before meshing in 2D

parent 900acb8b
......@@ -72,6 +72,10 @@ Generator2D::~Generator2D()
void Generator2D::Process()
// Check that cad is 2D
Array<OneD, NekDouble> bndBox = m_mesh->m_cad->GetBoundingBox();
ASSERTL0(bndBox[4] == bndBox[5], "CAD isn't 2D");
if (m_mesh->m_verbose)
cout << endl << "2D meshing" << endl;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment