Lines Matching refs:npoints
132 PetscInt n, bs, npoints; in private_DMDALocatePointsIS_2D_Regular() local
157 npoints = n / bs; in private_DMDALocatePointsIS_2D_Regular()
159 PetscCall(PetscMalloc1(npoints, &cellidx)); in private_DMDALocatePointsIS_2D_Regular()
161 for (PetscInt p = 0; p < npoints; p++) { in private_DMDALocatePointsIS_2D_Regular()
188 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, npoints, cellidx, PETSC_OWN_POINTER, iscell)); in private_DMDALocatePointsIS_2D_Regular()
194 PetscInt n, bs, npoints; in private_DMDALocatePointsIS_3D_Regular() local
224 npoints = n / bs; in private_DMDALocatePointsIS_3D_Regular()
226 PetscCall(PetscMalloc1(npoints, &cellidx)); in private_DMDALocatePointsIS_3D_Regular()
228 for (PetscInt p = 0; p < npoints; p++) { in private_DMDALocatePointsIS_3D_Regular()
262 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, npoints, cellidx, PETSC_OWN_POINTER, iscell)); in private_DMDALocatePointsIS_3D_Regular()
270 PetscInt p, bs, dim, npoints, nfound; in DMLocatePoints_DA_Regular() local
288 PetscCall(VecGetLocalSize(pos, &npoints)); in DMLocatePoints_DA_Regular()
290 npoints = npoints / bs; in DMLocatePoints_DA_Regular()
292 PetscCall(PetscMalloc1(npoints, &cells)); in DMLocatePoints_DA_Regular()
295 for (p = 0; p < npoints; p++) { in DMLocatePoints_DA_Regular()
301 nfound = npoints; in DMLocatePoints_DA_Regular()
302 …PetscCall(PetscSFSetGraph(cellSF, npoints, nfound, NULL, PETSC_OWN_POINTER, cells, PETSC_OWN_POINT… in DMLocatePoints_DA_Regular()