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