diff --git a/libsrc/general/mysimd.hpp b/libsrc/general/mysimd.hpp index 37a66c5c..621ea5a3 100644 --- a/libsrc/general/mysimd.hpp +++ b/libsrc/general/mysimd.hpp @@ -52,7 +52,7 @@ namespace netgen static constexpr type value = type(); }; -#ifdef __AVX2__ +#ifdef __AVX__ template<> class alignas(32) SIMD diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 37ad38e8..87de9aa4 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -140,6 +140,7 @@ DLL_HEADER void ExportNetgenMeshing() tmp->SetIndex(index); return tmp; } + throw NgException ("cannot create element"); }), bp::default_call_policies(), // need it to use arguments (bp::arg("index")=1,bp::arg("vertices"))),