mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
fix 1->2 simd trafos
This commit is contained in:
parent
c50bd79beb
commit
7027df2f73
@ -780,16 +780,16 @@ namespace netgen
|
||||
{
|
||||
double hxi[4][1];
|
||||
double hx[4][2];
|
||||
double hdxdxi[4][4];
|
||||
double hdxdxi[4][2];
|
||||
for (int j = 0; j < 4; j++)
|
||||
for (int k = 0; k < 1; k++)
|
||||
hxi[j][k] = ((double*)&(xi[k]))[j];
|
||||
MultiElementTransformation<1,2> (elnr, 4, &hxi[0][0], 1, &hx[0][0], 2, &hdxdxi[0][0], 4);
|
||||
MultiElementTransformation<1,2> (elnr, 4, &hxi[0][0], 1, &hx[0][0], 2, &hdxdxi[0][0], 2);
|
||||
for (int j = 0; j < 4; j++)
|
||||
for (int k = 0; k < 2; k++)
|
||||
((double*)&(x[k]))[j] = hx[j][k];
|
||||
for (int j = 0; j < 4; j++)
|
||||
for (int k = 0; k < 4; k++)
|
||||
for (int k = 0; k < 2; k++)
|
||||
((double*)&(dxdxi[k]))[j] = hdxdxi[j][k];
|
||||
|
||||
xi += sxi;
|
||||
|
Loading…
Reference in New Issue
Block a user