| /petsc/src/dm/impls/plex/ |
| H A D | plexorient.c | 350 …PetscInt numLeaves, numRoots, dim, h, cStart, cEnd, c, cell, fStart, fEnd, face, off, to… in DMPlexOrient() local 362 PetscCall(PetscSFGetGraph(sf, &numRoots, &numLeaves, &lpoints, &rpoints)); in DMPlexOrient() 454 … PetscCall(PetscCalloc3(numRoots, &rorntComp, numRoots, &lorntComp, maxSupportSize, &locSupport)); in DMPlexOrient() 754 PetscInt numLeaves, numRoots, dim, Ncomp, totNeighbors = 0; in DMPlexOrientCells_Internal() local 769 PetscCall(PetscSFGetGraph(sf, &numRoots, &numLeaves, &lpoints, &rpoints)); in DMPlexOrientCells_Internal() 823 PetscCall(PetscCalloc3(numRoots, &rorntComp, numRoots, &lorntComp, maxSuppSize, &locSupp)); in DMPlexOrientCells_Internal() 1076 if (numRoots >= 0) { in DMPlexOrientCells_Internal() 1091 if (numRoots >= 0) { in DMPlexOrientCells_Internal()
|
| H A D | plexrefine.c | 26 PetscInt numRoots, numLeaves, l; in DMPlexCreateProcessSF() local 41 PetscCall(PetscSFGetGraph(sfPoint, &numRoots, &numLeaves, &localPoints, &remotePoints)); in DMPlexCreateProcessSF()
|
| H A D | plexsubmesh.c | 709 PetscInt numRoots, numLeaves, l, pStart, pEnd, depth = 0, totShift = 0; in DMPlexShiftSF_Single() local 714 PetscCall(PetscSFGetGraph(sf, &numRoots, &numLeaves, &localPoints, &remotePoints)); in DMPlexShiftSF_Single() 716 if (numRoots >= 0) { in DMPlexShiftSF_Single() 717 PetscCall(PetscMalloc2(numRoots, &newLocation, pEnd - pStart, &newRemoteLocation)); in DMPlexShiftSF_Single() 718 for (l = 0; l < numRoots; ++l) newLocation[l] = DMPlexShiftPoint_Internal(l, depth, depthShift); in DMPlexShiftSF_Single() 729 …PetscCall(PetscSFSetGraph(sfNew, numRoots + totShift, numLeaves, glocalPoints, PETSC_OWN_POINTER, … in DMPlexShiftSF_Single() 3713 …PetscInt numRoots, numLeaves, numSubpoints = 0, numSubroots, numSubleaves = 0, l, sl = 0… in DMPlexCreateSubmeshGeneric_Interpolated() local 3736 PetscCall(PetscSFGetGraph(sfPoint, &numRoots, &numLeaves, &localPoints, &remotePoints)); in DMPlexCreateSubmeshGeneric_Interpolated() 3737 if (numRoots >= 0) { in DMPlexCreateSubmeshGeneric_Interpolated() 3740 PetscCall(PetscMalloc2(pEnd - pStart, &newLocalPoints, numRoots, &newOwners)); in DMPlexCreateSubmeshGeneric_Interpolated() [all …]
|
| H A D | plexinterpolate.c | 1855 PetscInt numRoots, numLeaves, l; in DMPlexUninterpolate() local 1862 PetscCall(PetscSFGetGraph(sfPoint, &numRoots, &numLeaves, &localPoints, &remotePoints)); in DMPlexUninterpolate() 1863 if (numRoots >= 0) { in DMPlexUninterpolate()
|
| H A D | plex.c | 4500 PetscInt numRoots = 0, numLeaves = 0; in DMPlexStratify_Topological_Private() local 4516 ++numRoots; in DMPlexStratify_Topological_Private() 4528 if (numRoots + numLeaves == (pEnd - pStart)) { in DMPlexStratify_Topological_Private()
|
| /petsc/src/vec/is/sf/utils/ |
| H A D | sfutils.c | 398 PetscInt numRoots, rpStart = 0, rpEnd = 0, lpStart = 0, lpEnd = 0; in PetscSFCreateRemoteOffsets() local 406 PetscCall(PetscSFGetGraph(sf, &numRoots, NULL, NULL, NULL)); in PetscSFCreateRemoteOffsets() 407 if (numRoots < 0) PetscFunctionReturn(PETSC_SUCCESS); in PetscSFCreateRemoteOffsets() 451 PetscInt numRoots, numSectionRoots, numPoints, numIndices = 0; in PetscSFCreateSectionSF() local 466 PetscCall(PetscSFGetGraph(sf, &numRoots, &numPoints, &localPoints, &remotePoints)); in PetscSFCreateSectionSF() 467 if (numRoots < 0) PetscFunctionReturn(PETSC_SUCCESS); in PetscSFCreateSectionSF()
|
| /petsc/src/dm/impls/forest/p4est/ |
| H A D | pforest.h | 1123 PetscInt numRoots, numLeaves; in DMSetUp_pforest() local 1129 …numRoots = (PetscInt)(forest_copy->global_first_quadrant[rank + 1] - forest_copy->global_first_qu… in DMSetUp_pforest() 1147 …PetscCall(PetscSFSetGraph(repartSF, numRoots, numLeaves, NULL, PETSC_OWN_POINTER, repartRoots, PET… in DMSetUp_pforest() 2817 PetscInt numRoots; in DMPforestGetTransferSF_Point() local 2823 numRoots = pEndC - pStartC; in DMPforestGetTransferSF_Point() 2843 …PetscCall(PetscSFSetGraph(*sf, numRoots, numLeaves, NULL, PETSC_OWN_POINTER, iremote, PETSC_OWN_PO… in DMPforestGetTransferSF_Point() 2845 …PetscCall(PetscSFSetGraph(*sf, numRoots, numLeaves, leaves, PETSC_OWN_POINTER, iremote, PETSC_OWN_… in DMPforestGetTransferSF_Point() 2928 PetscInt numRoots; in DMPforestGetTransferSF_Internal() local 2936 PetscCall(PetscSFGetGraph(pointTransferSF, &numRoots, &numLeaves, &leaves, &iremote)); in DMPforestGetTransferSF_Internal()
|
| /petsc/src/dm/impls/plex/transform/interface/ |
| H A D | plextransform.c | 1995 PetscInt numRoots, numLeaves, numLeavesNew = 0, l, m; in DMPlexTransformCreateSF() local 2015 PetscCall(PetscSFGetGraph(sf, &numRoots, &numLeaves, &localPoints, &remotePoints)); in DMPlexTransformCreateSF() 2016 if (numRoots < 0) { in DMPlexTransformCreateSF()
|