mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
fix alignment issue for SIMD code
This commit is contained in:
parent
5f29387c0b
commit
3a70d212fb
@ -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++)
|
||||||
|
Loading…
Reference in New Issue
Block a user