From 5448157842027c650a5eab8a35588b1b6df7ebe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Sun, 7 Aug 2016 19:13:36 +0200 Subject: [PATCH] use SIMD also for AVX (not only AVX2) --- libsrc/general/mysimd.hpp | 2 +- libsrc/meshing/python_mesh.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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"))),