Lines Matching refs:indices
13 PetscInt *indices; in main() local
27 PetscCall(PetscMalloc1(n, &indices)); in main()
28 indices[0] = 0; in main()
29 indices[1] = 1; in main()
30 indices[2] = 2; in main()
31 indices[3] = 3; in main()
32 PetscCall(ISCreateGeneral(PETSC_COMM_WORLD, n, indices, PETSC_COPY_VALUES, &is)); in main()
33 PetscCall(PetscFree(indices)); in main()
37 PetscCall(PetscMalloc1(n, &indices)); in main()
38 indices[0] = 0; in main()
39 indices[1] = 0; in main()
40 indices[2] = 1; in main()
41 indices[3] = 1; in main()
42 PetscCall(ISCreateGeneral(PETSC_COMM_WORLD, n, indices, PETSC_COPY_VALUES, &is2)); in main()
43 PetscCall(PetscFree(indices)); in main()