VTK  9.7.20260921
QuadGnBasis.h
Go to the documentation of this file.
1WORKSPACE(RealT, rterm, order + 1);
2WORKSPACE(RealT, sterm, order + 1);
3
4// Since the order is the same along each axis, we can use one loop to compute terms.
5for (int ii = 0; ii <= order; ++ii)
6{
7 rterm[ii] = 1.;
8 sterm[ii] = 1.;
9 for (int jj = 0; jj <= order; ++jj)
10 {
11 if (ii == jj)
12 {
13 continue;
14 }
15 rterm[ii] *= (rr - gaussPoint(order, jj)) / (gaussPoint(order, ii) - gaussPoint(order, jj));
16 sterm[ii] *= (ss - gaussPoint(order, jj)) / (gaussPoint(order, ii) - gaussPoint(order, jj));
17 }
18}
19
20int term = 0;
21// Now apply terms to compute basis functions
22for (int jj = 0; jj <= order; ++jj)
23{
24 for (int ii = 0; ii <= order; ++ii)
25 {
26 basis[term++] = rterm[ii] * sterm[jj];
27 }
28}
basis[0]
Definition CellC0Basis.h:1
int term
Definition HexGnBasis.h:23
WORKSPACE(RealT, rterm, order+1)