xref: /libCEED/tests/t300-basis.c (revision fdf20d1507041ae081eb23cdb7397fbed40ecb8b)
1 /// @file
2 /// Test creation and destruction of a H^1 Lagrange basis
3 /// \test Test creation and destruction of a H^1 Lagrange basis
4 #include <ceed.h>
5 
6 int main(int argc, char **argv) {
7   Ceed      ceed;
8   CeedBasis basis;
9 
10   CeedInit(argv[1], &ceed);
11 
12   // Test skipped if using single precision
13   if (CEED_SCALAR_TYPE == CEED_SCALAR_FP32) return CeedError(ceed, CEED_ERROR_UNSUPPORTED, "Test not implemented in single precision\n");
14 
15   CeedBasisCreateTensorH1Lagrange(ceed, 1, 1, 4, 4, CEED_GAUSS_LOBATTO, &basis);
16   CeedBasisView(basis, stdout);
17   CeedBasisDestroy(&basis);
18 
19   CeedBasisCreateTensorH1Lagrange(ceed, 1, 1, 4, 4, CEED_GAUSS, &basis);
20   CeedBasisView(basis, stdout);
21   CeedBasisDestroy(&basis);
22 
23   CeedDestroy(&ceed);
24   return 0;
25 }
26