optimization for bilinear quads

This commit is contained in:
Joachim Schöberl 2018-11-19 10:57:03 +01:00
parent 7a4d1f81fc
commit f6a26637de

View File

@ -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;
}