xref: /libCEED/tests/t001-ceed.c (revision 03dc724cfd7c789ca0f75d4f2e561880cca25bb8)
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   if (type == -1)
13     // LCOV_EXCL_START
14     printf("Error getting preferred memory type. %d \n",type);
15     // LCOV_EXCL_STOP
16   CeedDestroy(&ceed);
17   return 0;
18 }
19