Actual source code: ex4.c
2: static char help[] = "Tests ISToGeneral().\n\n";
4: #include <petscis.h>
6: int main(int argc, char **argv)
7: {
8: PetscInt step = 2;
9: IS is;
11: PetscFunctionBeginUser;
12: PetscCall(PetscInitialize(&argc, &argv, (char *)0, help));
14: PetscCall(PetscOptionsGetInt(NULL, NULL, "-step", &step, NULL));
15: PetscCall(ISCreateStride(PETSC_COMM_SELF, 10, 0, step, &is));
17: PetscCall(ISToGeneral(is));
19: PetscCall(ISDestroy(&is));
21: PetscCall(PetscFinalize());
22: return 0;
23: }
25: /*TEST
27: test:
28: output_file: output/ex1_1.out
30: TEST*/