Home
last modified time | relevance | path

Searched refs:indegree (Results 1 – 4 of 4) sorted by relevance

/petsc/src/vec/is/sf/impls/basic/neighbor/
H A Dsfneighbor.c64 PetscMPIInt indegree, outdegree; in PetscSFGetDistComm_Neighbor() local
70 indegree = nrootranks - ndrootranks; in PetscSFGetDistComm_Neighbor()
76 …PetscCallMPI(MPI_Dist_graph_create_adjacent(comm, indegree, sources, dat->rootweights, outdegree, … in PetscSFGetDistComm_Neighbor()
78 …_graph_create_adjacent(comm, outdegree, destinations, dat->leafweights, indegree, sources, dat->ro… in PetscSFGetDistComm_Neighbor()
/petsc/src/vec/is/sf/interface/
H A Dsf.c1152 const PetscInt *indegree; in PetscSFGetGroups() local
1165 PetscCall(PetscSFComputeDegreeBegin(bgcount, &indegree)); in PetscSFGetGroups()
1166 PetscCall(PetscSFComputeDegreeEnd(bgcount, &indegree)); in PetscSFGetGroups()
1168 PetscCall(PetscMalloc2(indegree[0], &inranks, sf->nranks, &outranks)); in PetscSFGetGroups()
1174 PetscCall(PetscMPIIntCast(indegree[0], &indegree0)); in PetscSFGetGroups()
1261 const PetscInt *indegree; in PetscSFGetMultiSF() local
1265 PetscCall(PetscSFComputeDegreeBegin(sf, &indegree)); in PetscSFGetMultiSF()
1266 PetscCall(PetscSFComputeDegreeEnd(sf, &indegree)); in PetscSFGetMultiSF()
1269 for (i = 0; i < sf->nroots; i++) inoffset[i + 1] = inoffset[i] + indegree[i]; in PetscSFGetMultiSF()
1273 for (i = 0; i < sf->nroots; i++) inoffset[i] -= indegree[i]; /* Undo the increment */ in PetscSFGetMultiSF()
[all …]
/petsc/src/dm/impls/plex/
H A Dplexpreallocate.c475 const PetscInt *indegree; in DMPlexCreateAdjacencySection_Static() local
478 PetscCall(PetscSFComputeDegreeBegin(sfAdj, &indegree)); in DMPlexCreateAdjacencySection_Static()
479 PetscCall(PetscSFComputeDegreeEnd(sfAdj, &indegree)); in DMPlexCreateAdjacencySection_Static()
480 for (p = 0; p < adjSize; ++p) radjsize += indegree[p]; in DMPlexCreateAdjacencySection_Static()
484 for (p = 0, l = 0, r = 0; p < adjSize; ++p, l = PetscMax(p, l + indegree[p - 1])) { in DMPlexCreateAdjacencySection_Static()
486 for (s = 0; s < indegree[p]; ++s, ++r) rootAdj[l + s] = remoteadj[r]; in DMPlexCreateAdjacencySection_Static()
/petsc/src/ksp/pc/impls/bddc/
H A Dbddcgraph.c793 const PetscInt *idxs, *indegree; in PCBDDCGraphSetUp() local
814 PetscCall(PetscSFComputeDegreeBegin(sf, &indegree)); in PCBDDCGraphSetUp()
815 PetscCall(PetscSFComputeDegreeEnd(sf, &indegree)); in PCBDDCGraphSetUp()
819 for (i = 0; i < n; i++) start[i + 1] = start[i] + indegree[i]; in PCBDDCGraphSetUp()
829 …PetscCheck(c == indegree[idxs[i]], PETSC_COMM_SELF, PETSC_ERR_PLIB, "%" PetscInt_FMT " != %" Petsc… in PCBDDCGraphSetUp()