1c907536fSjeremylt /// @file 2ceac335aSJeremy L Thompson /// Test return of CEED backend preferred memory type 3ceac335aSJeremy L Thompson /// \test Test return of CEED backend preferred memory type 4c907536fSjeremylt #include <ceed.h> 5*49aac155SJeremy L Thompson #include <stdio.h> 6c907536fSjeremylt main(int argc,char ** argv)7c907536fSjeremyltint main(int argc, char **argv) { 8c907536fSjeremylt Ceed ceed; 927d44ff5Sjeremylt CeedInt type = -1; 10c907536fSjeremylt 11c907536fSjeremylt CeedInit(argv[1], &ceed); 12288c0443SJeremy L Thompson 1327d44ff5Sjeremylt CeedGetPreferredMemType(ceed, (CeedMemType *)&type); 142b730f8bSJeremy L Thompson if (type == -1) printf("Error getting preferred memory type. %" CeedInt_FMT "\n", type); 15288c0443SJeremy L Thompson 16c907536fSjeremylt CeedDestroy(&ceed); 17c907536fSjeremylt return 0; 18c907536fSjeremylt } 19