Lines Matching refs:ix
8 PetscInt bs = 1, ix[2], iy[2]; in main() local
47 ix[0] = rank ? low - 1 : N - 1; /* ix[] contains global indices of the two ghost points */ in main()
48 ix[1] = (rank != nproc - 1) ? high : 0; in main()
52 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, 2, ix, PETSC_COPY_VALUES, &isx)); in main()
70 if ((PetscInt)PetscRealPart(yval[0]) != ix[0] + i) errors++; in main()
71 if ((PetscInt)PetscRealPart(yval[1]) != ix[1] + i) errors++; in main()
107 …ix[0] = rank ? low / bs - 1 : N / bs - 1; /* ix[] contains global indices of the two ghost blocks … in main()
108 ix[1] = (rank != nproc - 1) ? high / bs : 0; in main()
112 PetscCall(ISCreateBlock(PETSC_COMM_SELF, bs, 2, ix, PETSC_COPY_VALUES, &isx)); in main()
132 if ((PetscInt)PetscRealPart(yval[0]) != ix[0] * bs + i) errors++; in main()
133 if ((PetscInt)PetscRealPart(yval[bs]) != ix[1] * bs + i) errors++; in main()