/// @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; CeedBasis b; CeedScalar qref[dim*Q], qweight[Q]; CeedScalar interp[P*Q], grad[dim*P*Q]; const CeedScalar *out; CeedScalar colsum[P]; buildmats(qref, qweight, interp, grad); CeedInit(argv[1], &ceed); for (int i=0; i 1E-14) // LCOV_EXCL_START printf("[%d] %f != %f\n", i, out[i], colsum[i]); // LCOV_EXCL_STOP CeedVectorRestoreArrayRead(Out, &out); CeedVectorDestroy(&In); CeedVectorDestroy(&Out); CeedBasisDestroy(&b); CeedDestroy(&ceed); return 0; }