1 /// @file 2 /// Test creation and destruction of a CEED object 3 /// \test Test creation and destruction of a CEED object 4 #include <ceed.h> 5 #include <limits.h> 6 7 int main(int argc, char **argv) { 8 Ceed ceed; 9 CeedMemType type = INT_MAX; 10 11 CeedInit(argv[1], &ceed); 12 CeedGetPreferredMemType(ceed, &type); 13 14 if (type == INT_MAX) 15 printf("Error getting preferred memory type. %d \n",type); 16 17 CeedDestroy(&ceed); 18 return 0; 19 } 20