Lines Matching refs:ind
116 PetscInt N = 3, n = 0, dim, spaceDim, i, j, k, *ind, d; in CreatePoints_Grid() local
124 PetscCall(PetscCalloc1(spaceDim, &ind)); in CreatePoints_Grid()
140 ind[2] = k; in CreatePoints_Grid()
142 ind[1] = j; in CreatePoints_Grid()
144 ind[0] = i; in CreatePoints_Grid()
146 for (d = 0; d < spaceDim; ++d) (*pcoords)[n * spaceDim + d] = ind[d] * h[d]; in CreatePoints_Grid()
158 PetscCall(PetscFree(ind)); in CreatePoints_Grid()
166 PetscInt N = 3, n = 0, dim, spaceDim, i, j, k, *ind, d; in CreatePoints_GridReplicated() local
174 PetscCall(PetscCalloc1(spaceDim, &ind)); in CreatePoints_GridReplicated()
182 ind[2] = k; in CreatePoints_GridReplicated()
184 ind[1] = j; in CreatePoints_GridReplicated()
186 ind[0] = i; in CreatePoints_GridReplicated()
188 for (d = 0; d < spaceDim; ++d) (*pcoords)[n * spaceDim + d] = ind[d] * h[d]; in CreatePoints_GridReplicated()
200 PetscCall(PetscFree(ind)); in CreatePoints_GridReplicated()