xref: /libCEED/tests/t300-basis.c (revision d7b241e67f6e33d9b297db3da3be4f167f32bbee)
1 // Test ceration and distruction of a H1Lagrange basis
2 #include <ceed.h>
3 
4 int main(int argc, char **argv) {
5   Ceed ceed;
6   CeedBasis b;
7 
8   CeedInit(argv[1], &ceed);
9   CeedBasisCreateTensorH1Lagrange(ceed, 1, 1, 4, 4, CEED_GAUSS_LOBATTO, &b);
10   CeedBasisView(b, stdout);
11   CeedBasisDestroy(&b);
12   CeedBasisCreateTensorH1Lagrange(ceed, 1,  1, 4, 4, CEED_GAUSS, &b);
13   CeedBasisView(b, stdout);
14   CeedBasisDestroy(&b);
15   CeedDestroy(&ceed);
16   return 0;
17 }
18