1 /// @file 2 /// Test creation and destruction of a H1Lagrange basis 3 /// \test Test creation and destruction of a H1Lagrange 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) { 14 return CeedError(ceed, CEED_ERROR_UNSUPPORTED, "Test not implemented in single precision\n"); 15 } 16 17 CeedBasisCreateTensorH1Lagrange(ceed, 1, 1, 4, 4, CEED_GAUSS_LOBATTO, &basis); 18 CeedBasisView(basis, stdout); 19 CeedBasisDestroy(&basis); 20 21 CeedBasisCreateTensorH1Lagrange(ceed, 1, 1, 4, 4, CEED_GAUSS, &basis); 22 CeedBasisView(basis, stdout); 23 CeedBasisDestroy(&basis); 24 25 CeedDestroy(&ceed); 26 return 0; 27 } 28