xref: /libCEED/tests/t001-ceed.c (revision 0c59ef1511c1854d5530d4fa574b4e491f68e03a)
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 
6 int main(int argc, char **argv) {
7   Ceed ceed;
8   CeedInt type = -1;
9 
10   CeedInit(argv[1], &ceed);
11   CeedGetPreferredMemType(ceed, (CeedMemType *)&type);
12 
13   if (type == -1)
14     printf("Error getting preferred memory type. %d \n",type);
15 
16   CeedDestroy(&ceed);
17   return 0;
18 }
19