1 /// @file 2 /// Test creation and destruction of a 2D Simplex non-tensor H1 basis 3 /// \test Test creation and distruction of a 2D Simplex non-tensor H1 basis 4 #include <ceed.h> 5 #include "t320-basis.h" 6 7 int main(int argc, char **argv) { 8 Ceed ceed; 9 const CeedInt P = 6, Q = 4, dim = 2; 10 CeedBasis b; 11 CeedScalar q_ref[dim*Q], q_weight[Q]; 12 CeedScalar interp[P*Q], grad[dim*P*Q]; 13 14 buildmats(q_ref, q_weight, interp, grad); 15 16 CeedInit(argv[1], &ceed); 17 CeedBasisCreateH1(ceed, CEED_TRIANGLE, 1, P, Q, interp, grad, q_ref, 18 q_weight, &b); 19 CeedBasisView(b, stdout); 20 21 CeedBasisDestroy(&b); 22 CeedDestroy(&ceed); 23 return 0; 24 } 25