fix alignment issue for SIMD code

This commit is contained in:
Matthias Hochsteger 2016-08-10 19:30:09 +02:00
parent 5f29387c0b
commit 3a70d212fb

View File

@ -3757,7 +3757,8 @@ namespace netgen
// Mat<3,2> dxdxic; // Mat<3,2> dxdxic;
if (dxdxi) if (dxdxi)
{ {
MatrixFixWidth<2,T> dlami(4); T mem_dlami[8]; // avoid alignment problems if T is SIMD
MatrixFixWidth<2,T> dlami(4, mem_dlami);
dlami = T(0.0); dlami = T(0.0);
for (int pi = 0; pi < npts; pi++) for (int pi = 0; pi < npts; pi++)