1144df584Sjeremylt /// @file
2144df584Sjeremylt /// Test GetNumNodes and GetNumQuadraturePoints for basis
3144df584Sjeremylt /// \test Test GetNumNodes and GetNumQuadraturePoints for basis
4*f85e4a7bSJeremy L Thompson
5*f85e4a7bSJeremy L Thompson //TESTARGS(only="cpu") {ceed_resource}
6144df584Sjeremylt #include <ceed.h>
749aac155SJeremy L Thompson #include <stdio.h>
8144df584Sjeremylt
main(int argc,char ** argv)9144df584Sjeremylt int main(int argc, char **argv) {
10144df584Sjeremylt Ceed ceed;
114fee36f0SJeremy L Thompson CeedBasis basis;
124fee36f0SJeremy L Thompson CeedInt p, q;
13144df584Sjeremylt
14144df584Sjeremylt CeedInit(argv[1], &ceed);
15144df584Sjeremylt
164fee36f0SJeremy L Thompson CeedBasisCreateTensorH1Lagrange(ceed, 3, 1, 4, 5, CEED_GAUSS_LOBATTO, &basis);
17144df584Sjeremylt
184fee36f0SJeremy L Thompson CeedBasisGetNumNodes(basis, &p);
194fee36f0SJeremy L Thompson CeedBasisGetNumQuadraturePoints(basis, &q);
20144df584Sjeremylt
214fee36f0SJeremy L Thompson if (p != 64) printf("%" CeedInt_FMT " != 64\n", p);
224fee36f0SJeremy L Thompson if (q != 125) printf("%" CeedInt_FMT " != 125\n", q);
23144df584Sjeremylt
244fee36f0SJeremy L Thompson CeedBasisDestroy(&basis);
25144df584Sjeremylt CeedDestroy(&ceed);
26144df584Sjeremylt return 0;
27144df584Sjeremylt }
28