1 /// @file
2 /// Test creation and view of a strided element restriction
3 /// \test Test creation and view of a strided element restriction
4 #include <ceed.h>
5
main(int argc,char ** argv)6 int main(int argc, char **argv) {
7 Ceed ceed;
8
9 CeedInt num_elem = 3;
10 CeedElemRestriction elem_restriction;
11
12 CeedInit(argv[1], &ceed);
13
14 CeedInt strides[3] = {1, 2, 2};
15 CeedElemRestrictionCreateStrided(ceed, num_elem, 2, 1, num_elem * 2, strides, &elem_restriction);
16
17 CeedElemRestrictionView(elem_restriction, stdout);
18 CeedElemRestrictionSetNumViewTabs(elem_restriction, 1);
19 CeedElemRestrictionView(elem_restriction, stdout);
20
21 CeedElemRestrictionDestroy(&elem_restriction);
22 CeedDestroy(&ceed);
23 return 0;
24 }
25