xref: /libCEED/tests/t001-ceed.c (revision 288c044332e33f37503f09b6484fec9d0a55fba1)
1c907536fSjeremylt /// @file
2c907536fSjeremylt /// Test creation and destruction of a CEED object
3c907536fSjeremylt /// \test Test creation and destruction of a CEED object
4c907536fSjeremylt #include <ceed.h>
5c907536fSjeremylt 
6c907536fSjeremylt int main(int argc, char **argv) {
7c907536fSjeremylt   Ceed ceed;
827d44ff5Sjeremylt   CeedInt type = -1;
9c907536fSjeremylt 
10c907536fSjeremylt   CeedInit(argv[1], &ceed);
11*288c0443SJeremy L Thompson 
1227d44ff5Sjeremylt   CeedGetPreferredMemType(ceed, (CeedMemType *)&type);
1327d44ff5Sjeremylt   if (type == -1)
14a2546046Sjeremylt     // LCOV_EXCL_START
15c907536fSjeremylt     printf("Error getting preferred memory type. %d \n",type);
16de996c55Sjeremylt   // LCOV_EXCL_STOP
17*288c0443SJeremy L Thompson 
18c907536fSjeremylt   CeedDestroy(&ceed);
19c907536fSjeremylt   return 0;
20c907536fSjeremylt }
21