/// @file /// Test grad transpose with a 2D Simplex non-tensor H1 basis /// \test Test grad transposewith a 2D Simplex non-tensor H1 basis #include #include #include "t320-basis.h" int main(int argc, char **argv) { Ceed ceed; CeedVector In, Out; const CeedInt P = 6, Q = 4, dim = 2, ncomp = 3; CeedBasis b; CeedScalar qref[dim*Q], qweight[Q]; CeedScalar interp[P*Q], grad[dim*P*Q]; const CeedScalar *out; CeedScalar colsum[P], *in; buildmats(qref, qweight, interp, grad); CeedInit(argv[1], &ceed); for (int i=0; i 1e-14) // LCOV_EXCL_START printf("[%d] %f != %f\n", p, out[p+n*P], n*colsum[p]); // LCOV_EXCL_STOP CeedVectorRestoreArrayRead(Out, &out); CeedVectorDestroy(&In); CeedVectorDestroy(&Out); CeedBasisDestroy(&b); CeedDestroy(&ceed); return 0; }