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