1c907536fSjeremylt /// @file 2*316562b8Sjeremylt /// Test return of CEED backend prefered memory type 3*316562b8Sjeremylt /// \test Test return of CEED backend prefered memory type 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); 11288c0443SJeremy 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 17288c0443SJeremy L Thompson 18c907536fSjeremylt CeedDestroy(&ceed); 19c907536fSjeremylt return 0; 20c907536fSjeremylt } 21