Commit dbd68a89 authored by 's avatar
Browse files

if statement to prevent null CAD

parent abdeefd2
...@@ -113,7 +113,9 @@ void ProcessPerAlign::Process() ...@@ -113,7 +113,9 @@ void ProcessPerAlign::Process()
if (tmp1.size() == 1) if (tmp1.size() == 1)
{ {
if (!dir.size() && m_mesh->m_spaceDim == 2) //if the direction is not specified and its a 2D mesh and there is CAD
//it can figure out the dir on its own
if (!dir.size() && m_mesh->m_spaceDim == 2 && m_mesh->m_cad)
{ {
Array<OneD, NekDouble> T = Array<OneD, NekDouble> T =
m_mesh->m_cad->GetPeriodicTranslationVector(surf1, surf2); m_mesh->m_cad->GetPeriodicTranslationVector(surf1, surf2);
......
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