mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
optimization for bilinear quads
This commit is contained in:
parent
7a4d1f81fc
commit
f6a26637de
@ -2254,6 +2254,18 @@ namespace netgen
|
||||
}
|
||||
break;
|
||||
}
|
||||
case QUAD:
|
||||
{
|
||||
if (info.order >= 2) return false; // not yet supported
|
||||
AutoDiff<2,T> lami[4] = { (1-x)*(1-y), x*(1-y), x*y, (1-x)*y };
|
||||
for (int j = 0; j < 4; j++)
|
||||
{
|
||||
Point<3> p = mesh[el[j]];
|
||||
for (int k = 0; k < DIM_SPACE; k++)
|
||||
mapped_x[k] += p(k) * lami[j];
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user