xref: /libCEED/tests/t212-elemrestriction.c (revision 8ec64e9ae9d5df169dba8c8ee61d8ec8907b8f80)
1 /// @file
2 /// Test creation and view of a blocked strided element restriction
3 /// \test Test creation and view of a blocked strided element restriction
4 #include <ceed.h>
5 
6 int main(int argc, char **argv) {
7   Ceed ceed;
8 
9   CeedInt             num_elem = 3;
10   CeedElemRestriction r;
11 
12   CeedInit(argv[1], &ceed);
13 
14   CeedInt strides[3] = {1, 2, 2};
15   CeedElemRestrictionCreateBlockedStrided(ceed, num_elem, 2, 2, 1, num_elem + 1, strides, &r);
16 
17   CeedElemRestrictionView(r, stdout);
18 
19   CeedElemRestrictionDestroy(&r);
20   CeedDestroy(&ceed);
21   return 0;
22 }
23