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: PetscInitialize(&argc,&argv,(char*)0,help); 13: PetscOptionsGetInt(NULL,NULL,"-step",&step,NULL); 14: ISCreateStride(PETSC_COMM_SELF,10,0,step,&is); 16: ISToGeneral(is); 18: ISDestroy(&is); 20: PetscFinalize(); 21: return 0; 22: } 24: /*TEST 26: test: 27: output_file: output/ex1_1.out 29: TEST*/