Lines Matching refs:p

13   PetscInt           p, n, bs, npoints, si, sj, milocal, mjlocal, mx, my;  in _DMLocatePoints_DMDARegular_IS()  local
35 for (p = 0; p < npoints; p++) { in _DMLocatePoints_DMDARegular_IS()
39 coorx = PetscRealPart(coor[2 * p]); in _DMLocatePoints_DMDARegular_IS()
40 coory = PetscRealPart(coor[2 * p + 1]); in _DMLocatePoints_DMDARegular_IS()
45 cellidx[p] = DMLOCATEPOINT_POINT_NOT_FOUND; in _DMLocatePoints_DMDARegular_IS()
48 if ((mi >= si) && (mi < si + milocal)) cellidx[p] = (mi - si) + (mj - sj) * milocal; in _DMLocatePoints_DMDARegular_IS()
50 if (coorx < -1.0) cellidx[p] = DMLOCATEPOINT_POINT_NOT_FOUND; in _DMLocatePoints_DMDARegular_IS()
51 if (coorx > 1.0) cellidx[p] = DMLOCATEPOINT_POINT_NOT_FOUND; in _DMLocatePoints_DMDARegular_IS()
52 if (coory < -1.0) cellidx[p] = DMLOCATEPOINT_POINT_NOT_FOUND; in _DMLocatePoints_DMDARegular_IS()
53 if (coory > 1.0) cellidx[p] = DMLOCATEPOINT_POINT_NOT_FOUND; in _DMLocatePoints_DMDARegular_IS()
64 PetscInt p, bs, npoints, nfound; in DMLocatePoints_DMDARegular() local
76 for (p = 0; p < npoints; p++) { in DMLocatePoints_DMDARegular()
77 cells[p].rank = 0; in DMLocatePoints_DMDARegular()
78 cells[p].index = DMLOCATEPOINT_POINT_NOT_FOUND; in DMLocatePoints_DMDARegular()
79 cells[p].index = boxCells[p]; in DMLocatePoints_DMDARegular()
103 PetscInt npoints, p, bs; in SwarmViewGP() local
116 …for (p = 0; p < npoints; p++) fprintf(fp, "%+1.4e %+1.4e %1.4e\n", array[2 * p], array[2 * p + 1],… in SwarmViewGP()
131 PetscInt p, bs, nlocal, overlap, mx, tk; in ex3_1() local
183 for (p = 0; p < nlocal; p++) { in ex3_1()
189 px = PetscRealPart(LA_coors[2 * p + 0]) + 0.1 * rx * dx; in ex3_1()
190 py = PetscRealPart(LA_coors[2 * p + 1]) + 0.1 * ry * dx; in ex3_1()
206 for (p = 0; p < nlocal; p++) iarray[p] = (PetscInt)rank; in ex3_1()
220 for (p = 0; p < nlocal; p++) { in ex3_1()
223 cx = array[2 * p]; in ex3_1()
224 cy = array[2 * p + 1]; in ex3_1()
228 array[2 * p] += dt * vx; in ex3_1()
229 array[2 * p + 1] += dt * vy; in ex3_1()