| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex17.c | 42 PetscSF cellSF = NULL; in TestCentroidLocation() local 65 PetscCall(DMLocatePoints(dm, points, DM_POINTLOCATION_NONE, &cellSF)); in TestCentroidLocation() 67 PetscCall(PetscSFGetGraph(cellSF, NULL, &n, NULL, &cells)); in TestCentroidLocation() 75 PetscCall(PetscSFDestroy(&cellSF)); in TestCentroidLocation() 81 PetscSF cellSF = NULL; in TestCustomLocation() local 106 PetscCall(DMLocatePoints(dm, points, DM_POINTLOCATION_NONE, &cellSF)); in TestCustomLocation() 108 PetscCall(PetscSFGetGraph(cellSF, NULL, &Nfd, &found, &cells)); in TestCustomLocation() 131 PetscCall(PetscSFDestroy(&cellSF)); in TestCustomLocation()
|
| /petsc/include/petsc/private/ |
| H A D | dmforestimpl.h | 33 PetscSF cellSF; member
|
| /petsc/src/dm/field/impls/ds/ |
| H A D | dmfieldds.c | 230 PetscSF cellSF = NULL; in DMFieldEvaluate_DS() local 259 PetscCall(DMLocatePoints(field->dm, points, DM_POINTLOCATION_NONE, &cellSF)); in DMFieldEvaluate_DS() 260 PetscCall(PetscSFGetGraph(cellSF, &numCells, &nFound, NULL, &cells)); in DMFieldEvaluate_DS() 262 PetscCall(PetscSFComputeDegreeBegin(cellSF, &cellDegrees)); in DMFieldEvaluate_DS() 263 PetscCall(PetscSFComputeDegreeEnd(cellSF, &cellDegrees)); in DMFieldEvaluate_DS() 277 PetscCall(PetscSFGatherBegin(cellSF, pointType, pointsArray, cellPoints)); in DMFieldEvaluate_DS() 278 PetscCall(PetscSFGatherEnd(cellSF, pointType, pointsArray, cellPoints)); in DMFieldEvaluate_DS() 415 …PetscCall(PetscSFScatterBegin(cellSF, Btype, (datatype == PETSC_SCALAR) ? (void *)cellBs : (void *… in DMFieldEvaluate_DS() 416 …PetscCall(PetscSFScatterEnd(cellSF, Btype, (datatype == PETSC_SCALAR) ? (void *)cellBs : (void *)c… in DMFieldEvaluate_DS() 425 …PetscCall(PetscSFScatterBegin(cellSF, Dtype, (datatype == PETSC_SCALAR) ? (void *)cellDs : (void *… in DMFieldEvaluate_DS() [all …]
|
| /petsc/src/dm/impls/forest/ |
| H A D | forest.c | 205 PetscCall(PetscSFDestroy(&forest->cellSF)); in DMDestroy_Forest() 1262 PetscErrorCode DMForestGetCellSF(DM dm, PetscSF *cellSF) in DMForestGetCellSF() argument 1268 PetscAssertPointer(cellSF, 2); in DMForestGetCellSF() 1269 …if ((!forest->cellSF) && forest->createcellsf) PetscCall(forest->createcellsf(dm, &forest->cellSF)… in DMForestGetCellSF() 1270 *cellSF = forest->cellSF; in DMForestGetCellSF() 1701 forest->cellSF = NULL; in DMCreate_Forest()
|
| /petsc/src/dm/interface/ |
| H A D | dmcoordinates.c | 1258 PetscErrorCode DMLocatePoints(DM dm, Vec v, DMPointLocationType ltype, PetscSF *cellSF) in DMLocatePoints() argument 1263 PetscAssertPointer(cellSF, 4); in DMLocatePoints() 1264 if (*cellSF) { in DMLocatePoints() 1267 PetscValidHeaderSpecific(*cellSF, PETSCSF_CLASSID, 4); in DMLocatePoints() 1268 …MPI_Comm_compare(PetscObjectComm((PetscObject)v), PetscObjectComm((PetscObject)*cellSF), &result)); in DMLocatePoints() 1271 PetscCall(PetscSFCreate(PetscObjectComm((PetscObject)v), cellSF)); in DMLocatePoints() 1274 PetscUseTypeMethod(dm, locatepoints, v, ltype, *cellSF); in DMLocatePoints()
|
| /petsc/src/dm/tutorials/ |
| H A D | swarm_ex3.c | 60 PetscErrorCode DMLocatePoints_DMDARegular(DM dm, Vec pos, DMPointLocationType ltype, PetscSF cellSF) in DMLocatePoints_DMDARegular() argument 84 …PetscCall(PetscSFSetGraph(cellSF, npoints, nfound, NULL, PETSC_OWN_POINTER, cells, PETSC_OWN_POINT… in DMLocatePoints_DMDARegular()
|
| /petsc/src/dm/impls/da/ |
| H A D | dageometry.c | 266 PetscErrorCode DMLocatePoints_DA_Regular(DM dm, Vec pos, DMPointLocationType ltype, PetscSF cellSF) in DMLocatePoints_DA_Regular() argument 302 …PetscCall(PetscSFSetGraph(cellSF, npoints, nfound, NULL, PETSC_OWN_POINTER, cells, PETSC_OWN_POINT… in DMLocatePoints_DA_Regular()
|
| /petsc/src/snes/utils/dm/ |
| H A D | dminterpolatesnes.c | 180 PetscSF cellSF; in DMInterpolationSetUp() local 232 cellSF = NULL; in DMInterpolationSetUp() 233 PetscCall(DMLocatePoints(dm, pointVec, DM_POINTLOCATION_REMOVE, &cellSF)); in DMInterpolationSetUp() 234 PetscCall(PetscSFGetGraph(cellSF, NULL, &numFound, &foundPoints, &foundCells)); in DMInterpolationSetUp() 277 PetscCall(PetscSFDestroy(&cellSF)); in DMInterpolationSetUp()
|
| /petsc/src/dm/impls/forest/p4est/ |
| H A D | pforest.h | 904 PetscSF cellSF; in DMSetUp_pforest() local 913 PetscCall(DMForestGetCellSF(adaptFrom, &cellSF)); in DMSetUp_pforest() 916 if (cellSF) { in DMSetUp_pforest() 918 PetscCall(PetscSFReduceBegin(cellSF, MPIU_INT, cellFlags, cellFlags, MPI_MAX)); in DMSetUp_pforest() 919 PetscCall(PetscSFReduceEnd(cellSF, MPIU_INT, cellFlags, cellFlags, MPI_MAX)); in DMSetUp_pforest() 921 PetscCall(PetscSFReduceBegin(cellSF, MPIU_INT, cellFlags, cellFlags, MPI_MIN)); in DMSetUp_pforest() 922 PetscCall(PetscSFReduceEnd(cellSF, MPIU_INT, cellFlags, cellFlags, MPI_MIN)); in DMSetUp_pforest() 1196 PetscSF preCellSF = NULL, cellSF = NULL; in DMSetUp_pforest() local 1210 PetscCall(DMForestGetCellSF(dm, &cellSF)); in DMSetUp_pforest() 1227 PetscCall(PetscSFSetUp(cellSF)); in DMSetUp_pforest() [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexgeometry.c | 1245 PetscErrorCode DMLocatePoints_Plex(DM dm, Vec v, DMPointLocationType ltype, PetscSF cellSF) in DMLocatePoints_Plex() argument 1270 PetscCallMPI(MPI_Comm_compare(PetscObjectComm((PetscObject)cellSF), PETSC_COMM_SELF, &result)); in DMLocatePoints_Plex() 1271 …PetscCheck(result == MPI_IDENT || result == MPI_CONGRUENT, PetscObjectComm((PetscObject)cellSF), P… in DMLocatePoints_Plex() 1285 PetscCall(PetscSFGetGraph(cellSF, NULL, NULL, NULL, &sf_cells)); in DMLocatePoints_Plex() 1440 …if (!reuse) PetscCall(PetscSFSetGraph(cellSF, cEnd - cStart, numFound, found, PETSC_OWN_POINTER, c… in DMLocatePoints_Plex()
|