Commit edbfd8e7 authored by 's avatar
Browse files

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

parents 2a4b9889 76c66bd7
...@@ -47,6 +47,7 @@ v4.4.1 ...@@ -47,6 +47,7 @@ v4.4.1
- Add manifold meshing option (!756) - Add manifold meshing option (!756)
- Fix issue with older rea input files (!765) - Fix issue with older rea input files (!765)
- Fix memory leak in variational optimiser, add small optimisations (!785) - Fix memory leak in variational optimiser, add small optimisations (!785)
- Check the dimensionality of the CAD system before running the 2D generator (!780)
**IncNavierStokesSolver** **IncNavierStokesSolver**
- Fix an initialisation issue when using an additional advective field (!779) - Fix an initialisation issue when using an additional advective field (!779)
......
...@@ -72,6 +72,10 @@ Generator2D::~Generator2D() ...@@ -72,6 +72,10 @@ Generator2D::~Generator2D()
void Generator2D::Process() 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) if (m_mesh->m_verbose)
{ {
cout << endl << "2D meshing" << endl; 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