basisGradient[0] = -3. + 4. * rr + 4. * ss + 4. * tt;
basisGradient[1] = -3. + 4. * rr + 4. * ss + 4. * tt;
basisGradient[2] = -3. + 4. * rr + 4. * ss + 4. * tt;

basisGradient[3] = -1. + 4. * rr;
basisGradient[4] = 0.;
basisGradient[5] = 0.;

basisGradient[6] = 0.;
basisGradient[7] = -1. + 4. * ss;
basisGradient[8] = 0.;

basisGradient[9] = 0.;
basisGradient[10] = 0.;
basisGradient[11] = -1. + 4. * tt;

basisGradient[12] = -4. * (-1. + 2 * rr + ss + tt);
basisGradient[13] = -4. * rr;
basisGradient[14] = -4. * rr;

basisGradient[15] = 4. * ss;
basisGradient[16] = 4. * rr;
basisGradient[17] = 0.;

basisGradient[18] = -4. * ss;
basisGradient[19] = -4. * (-1. + rr + 2 * ss + tt);
basisGradient[20] = -4. * ss;

basisGradient[21] = -4. * tt;
basisGradient[22] = -4. * tt;
basisGradient[23] = -4. * (-1. + rr + ss + 2 * tt);

basisGradient[24] = 4. * tt;
basisGradient[25] = 0.;
basisGradient[26] = 4. * rr;

basisGradient[27] = 0.;
basisGradient[28] = 4. * tt;
basisGradient[29] = 4. * ss;
