xref: /libCEED/tests/t300-basis.c (revision 89c6efa49859cd40e0a2f99b4a91b922f3b4c9b2)
1 /// @file
2 /// Test creation and distruction of a H1Lagrange basis
3 /// \test Test creation 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