xref: /libCEED/tests/t306-basis.c (revision b0d170e7bc2e5c930ee481a47eb73044935a48a4)
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) printf("%" CeedInt_FMT " != 64\n", P);
19   if (Q != 125) printf("%" CeedInt_FMT " != 125\n", Q);
20 
21   CeedBasisDestroy(&b);
22   CeedDestroy(&ceed);
23   return 0;
24 }
25