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