Lines Matching refs:npoints
13 PetscInt p, n, bs, npoints, si, sj, milocal, mjlocal, mx, my; in _DMLocatePoints_DMDARegular_IS() local
24 npoints = n / bs; in _DMLocatePoints_DMDARegular_IS()
26 PetscCall(PetscMalloc1(npoints, &cellidx)); in _DMLocatePoints_DMDARegular_IS()
35 for (p = 0; p < npoints; p++) { in _DMLocatePoints_DMDARegular_IS()
56 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, npoints, cellidx, PETSC_OWN_POINTER, iscell)); in _DMLocatePoints_DMDARegular_IS()
64 PetscInt p, bs, npoints, nfound; in DMLocatePoints_DMDARegular() local
69 PetscCall(VecGetLocalSize(pos, &npoints)); in DMLocatePoints_DMDARegular()
71 npoints = npoints / bs; in DMLocatePoints_DMDARegular()
73 PetscCall(PetscMalloc1(npoints, &cells)); in DMLocatePoints_DMDARegular()
76 for (p = 0; p < npoints; p++) { in DMLocatePoints_DMDARegular()
83 nfound = npoints; in DMLocatePoints_DMDARegular()
84 …PetscCall(PetscSFSetGraph(cellSF, npoints, nfound, NULL, PETSC_OWN_POINTER, cells, PETSC_OWN_POINT… in DMLocatePoints_DMDARegular()
103 PetscInt npoints, p, bs; in SwarmViewGP() local
113 PetscCall(DMSwarmGetLocalSize(dms, &npoints)); in SwarmViewGP()
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()