Commit edbfd8e7 by Michael Turner

Merge branch 'jmarcon/nektar-feature/2d-cad-check'

2 parents 2a4b9889 76c66bd7
......@@ -47,6 +47,7 @@ v4.4.1
- Add manifold meshing option (!756)
- Fix issue with older rea input files (!765)
- Fix memory leak in variational optimiser, add small optimisations (!785)
- Check the dimensionality of the CAD system before running the 2D generator (!780)
**IncNavierStokesSolver**
- Fix an initialisation issue when using an additional advective field (!779)
......
......@@ -72,6 +72,10 @@ Generator2D::~Generator2D()
void Generator2D::Process()
{
// Check that cad is 2D
Array<OneD, NekDouble> bndBox = m_mesh->m_cad->GetBoundingBox();
ASSERTL0(fabs(bndBox[5] - bndBox[4]) < 1.0e-7, "CAD isn't 2D");
if (m_mesh->m_verbose)
{
cout << endl << "2D meshing" << endl;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!