1 /// @file 2 /// Test creation and distruction 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 "t310-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 qref[dim*Q], qweight[Q]; 12 CeedScalar interp[P*Q], grad[dim*P*Q]; 13 14 buildmats(qref, qweight, interp, grad); 15 16 CeedInit(argv[1], &ceed); 17 CeedBasisCreateH1(ceed, CEED_TRIANGLE, 1, P, Q, interp, grad, qref, qweight, 18 &b); 19 CeedBasisView(b, stdout); 20 21 CeedBasisDestroy(&b); 22 CeedDestroy(&ceed); 23 return 0; 24 } 25