xref: /libCEED/tests/t306-basis.c (revision 39b2de37682296be8460181179eb4e44de5cc3de)
1 /// @file
2 /// Test GetNumNodes and GetNumQuadraturePoints for basis
3 /// \test Test GetNumNodes and GetNumQuadraturePoints for 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 
12   CeedBasisCreateTensorH1Lagrange(ceed, 3, 1, 4, 5, CEED_GAUSS_LOBATTO, &b);
13 
14   CeedInt P, Q;
15   CeedBasisGetNumNodes(b, &P);
16   CeedBasisGetNumQuadraturePoints(b, &Q);
17 
18   if (P != 64)
19     // LCOV_EXCL_START
20     printf("%d != 64\n", P);
21   // LCOV_EXCL_STOP
22   if (Q != 125)
23     // LCOV_EXCL_START
24     printf("%d != 125\n", Q);
25   // LCOV_EXCL_STOP
26 
27   CeedBasisDestroy(&b);
28   CeedDestroy(&ceed);
29   return 0;
30 }
31