Searched refs:iscell (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/dm/impls/da/ |
| H A D | dageometry.c | 130 static PetscErrorCode private_DMDALocatePointsIS_2D_Regular(DM dmregular, Vec pos, IS *iscell) in private_DMDALocatePointsIS_2D_Regular() argument 188 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, npoints, cellidx, PETSC_OWN_POINTER, iscell)); in private_DMDALocatePointsIS_2D_Regular() 192 static PetscErrorCode private_DMDALocatePointsIS_3D_Regular(DM dmregular, Vec pos, IS *iscell) in private_DMDALocatePointsIS_3D_Regular() argument 262 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, npoints, cellidx, PETSC_OWN_POINTER, iscell)); in private_DMDALocatePointsIS_3D_Regular() 268 IS iscell; in DMLocatePoints_DA_Regular() local 279 PetscCall(private_DMDALocatePointsIS_2D_Regular(dm, pos, &iscell)); in DMLocatePoints_DA_Regular() 282 PetscCall(private_DMDALocatePointsIS_3D_Regular(dm, pos, &iscell)); in DMLocatePoints_DA_Regular() 293 PetscCall(ISGetIndices(iscell, &boxCells)); in DMLocatePoints_DA_Regular() 299 PetscCall(ISRestoreIndices(iscell, &boxCells)); in DMLocatePoints_DA_Regular() 303 PetscCall(ISDestroy(&iscell)); in DMLocatePoints_DA_Regular()
|
| /petsc/src/dm/tutorials/ |
| H A D | swarm_ex3.c | 11 PetscErrorCode _DMLocatePoints_DMDARegular_IS(DM dm, Vec pos, IS *iscell) in _DMLocatePoints_DMDARegular_IS() argument 56 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, npoints, cellidx, PETSC_OWN_POINTER, iscell)); in _DMLocatePoints_DMDARegular_IS() 62 IS iscell; in DMLocatePoints_DMDARegular() local 68 PetscCall(_DMLocatePoints_DMDARegular_IS(dm, pos, &iscell)); in DMLocatePoints_DMDARegular() 74 PetscCall(ISGetIndices(iscell, &boxCells)); in DMLocatePoints_DMDARegular() 81 PetscCall(ISRestoreIndices(iscell, &boxCells)); in DMLocatePoints_DMDARegular() 82 PetscCall(ISDestroy(&iscell)); in DMLocatePoints_DMDARegular() 85 PetscCall(ISDestroy(&iscell)); in DMLocatePoints_DMDARegular()
|