Commit 89a61aa4 authored by Michael Turner's avatar Michael Turner
Browse files

fix cad loading factory

parent 28eccab0
......@@ -66,7 +66,7 @@ void ProcessLoadCAD::Process()
cout << "Loading CAD for " << m_mesh->m_CADId << endl;
}
m_mesh->m_cad = MemoryManager<CADSystem>::AllocateSharedPtr(m_mesh->m_CADId);
m_mesh->m_cad = GetEngineFactory().CreateInstance("oce",m_mesh->m_CADId);
ASSERTL0(m_mesh->m_cad->LoadCAD(), "Failed to load CAD");
m_mesh->m_hasCAD = true;
......
......@@ -38,6 +38,8 @@
#include <NekMeshUtils/NekMeshUtilsDeclspec.h>
#include <iomanip>
#ifdef NEKTAR_USE_MESHGEN
#include <SpatialDomains/PointGeom.h>
#include <NekMeshUtils/CADSystem/CADSystem.h>
......
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