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