Searched refs:cellidx (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/dm/tutorials/ |
| H A D | swarm_ex3.c | 15 PetscInt *cellidx; in _DMLocatePoints_DMDARegular_IS() local 26 PetscCall(PetscMalloc1(npoints, &cellidx)); 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() 56 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, npoints, cellidx, PETSC_OWN_POINTER, iscell)); in _DMLocatePoints_DMDARegular_IS()
|
| /petsc/src/dm/impls/da/ |
| H A D | dageometry.c | 138 PetscInt *cellidx; in private_DMDALocatePointsIS_2D_Regular() local 159 PetscCall(PetscMalloc1(npoints, &cellidx)); in private_DMDALocatePointsIS_2D_Regular() 168 cellidx[p] = DMLOCATEPOINT_POINT_NOT_FOUND; in private_DMDALocatePointsIS_2D_Regular() 185 cellidx[p] = (mi[0] - xs) + (mi[1] - ys) * mxlocal; in private_DMDALocatePointsIS_2D_Regular() 188 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, npoints, cellidx, PETSC_OWN_POINTER, iscell)); in private_DMDALocatePointsIS_2D_Regular() 201 PetscInt *cellidx; in private_DMDALocatePointsIS_3D_Regular() local 226 PetscCall(PetscMalloc1(npoints, &cellidx)); in private_DMDALocatePointsIS_3D_Regular() 236 cellidx[p] = DMLOCATEPOINT_POINT_NOT_FOUND; in private_DMDALocatePointsIS_3D_Regular() 259 cellidx[p] = (mi[0] - xs) + (mi[1] - ys) * mxlocal + (mi[2] - zs) * mxlocal * mylocal; in private_DMDALocatePointsIS_3D_Regular() 262 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, npoints, cellidx, PETSC_OWN_POINTER, iscell)); in private_DMDALocatePointsIS_3D_Regular()
|