xref: /libCEED/tests/t001-ceed.c (revision 27d44ff576d7f4ed036c2bbefa419c7049ecc5b7)
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