/// @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, num_comp = 3; CeedBasis b; CeedScalar q_ref[dim*Q], q_weight[Q]; CeedScalar interp[P*Q], grad[dim*P*Q]; const CeedScalar *out; CeedScalar colsum[P], *in; buildmats(q_ref, q_weight, interp, grad); CeedInit(argv[1], &ceed); for (int i=0; i 100.*CEED_EPSILON) // 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; }