Home
last modified time | relevance | path

Searched refs:nedges (Results 1 – 16 of 16) sorted by relevance

/petsc/src/snes/tutorials/network/output/
H A Dex1_2.out2 [0] Total local nvertices 9 + 0 = 9, nedges 9 + 0 = 9
3 [1] Total local nvertices 0 + 7 = 7, nedges 0 + 7 = 7
4 [2] Total local nvertices 0 + 0 = 0, nedges 0 + 0 = 0
H A Dex1_6.out2 [0] Total local nvertices 9 + 0 = 9, nedges 9 + 0 = 9
3 [1] Total local nvertices 0 + 7 = 7, nedges 0 + 7 = 7
4 [2] Total local nvertices 0 + 0 = 0, nedges 0 + 0 = 0
H A Dex1_3.out2 [0] Total local nvertices 9 + 0 = 9, nedges 9 + 0 = 9
3 [1] Total local nvertices 0 + 7 = 7, nedges 0 + 7 = 7
4 [2] Total local nvertices 0 + 0 = 0, nedges 0 + 0 = 0
H A Dex1_4.out2 [0] Total local nvertices 9 + 0 = 9, nedges 9 + 0 = 9
3 [1] Total local nvertices 0 + 7 = 7, nedges 0 + 7 = 7
4 [2] Total local nvertices 0 + 0 = 0, nedges 0 + 0 = 0
5 [3] Total local nvertices 0 + 0 = 0, nedges 0 + 0 = 0
H A Dex1.out2 [0] Total local nvertices 9 + 7 = 16, nedges 9 + 7 = 16
H A Dex1_5.out2 [0] Total local nvertices 9 + 7 = 16, nedges 9 + 7 = 16
/petsc/src/ts/tutorials/network/
H A DpipeInterface.c191 PetscInt nedges, e, i, M, N, *rows, *cols; in JunctionCreateJacobian() local
198 PetscCall(DMNetworkGetSupportingEdges(dm, v, &nedges, &edges)); in JunctionCreateJacobian()
199 …PetscCheck(nedges > 0, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "%" PetscInt_FMT " vertex, nedges %" Pe… in JunctionCreateJacobian()
202 PetscCall(PetscCalloc1(2 * nedges + 1, &Jv)); in JunctionCreateJacobian()
211 for (e = 0; e < nedges; e++) { in JunctionCreateJacobian()
266 PetscInt nedges, e; in JunctionDestroyJacobian() local
271 PetscCall(DMNetworkGetSupportingEdges(dm, v, &nedges, &edges)); in JunctionDestroyJacobian()
272 for (e = 0; e < nedges; e++) { in JunctionDestroyJacobian()
H A Dpipes.c22 …PetscInt i, e, v, numEdges, numVertices, nedges, *eowners = NULL, estart, eend, *vtype = NULL, … in WashNetworkDistribute() local
35 nedges = numEdges / size; /* local nedges */ in WashNetworkDistribute()
36 if (rank == 0) nedges += numEdges - size * (numEdges / size); in WashNetworkDistribute()
38 wash->nedge = nedges; in WashNetworkDistribute()
42 PetscCallMPI(MPI_Allgather(&nedges, 1, MPIU_INT, eowners + 1, 1, MPIU_INT, PETSC_COMM_WORLD)); in WashNetworkDistribute()
616 PetscInt steps = 1, nedges, nnodes = 6; in main() local
655 nedges = wash->nedge; in main()
663 PetscCall(DMNetworkAddSubnetwork(networkdm, NULL, nedges, edgelist, NULL)); in main()
673 PetscCall(PetscCalloc2(vEnd - vStart, &junctions, nedges, &pipes)); in main()
/petsc/src/ksp/ksp/tutorials/network/
H A Dex2.c39 PetscInt i, j, nedges = 0; in random_network() local
90 head->n = nedges; in random_network()
96 head->n = nedges; in random_network()
101 nedges += 1; in random_network()
107 PetscCall(PetscMalloc1(2 * nedges, &edgelist)); in random_network()
121 PetscCall(PetscCalloc2(nvertex, &node, nedges, &branch)); in random_network()
129 for (i = 0; i < nedges; i++) { in random_network()
151 PetscCall(PetscRandomSetInterval(rnd, 0.0, nedges)); in random_network()
160 *pnbranch = nedges; in random_network()
/petsc/src/snes/tutorials/network/water/output/
H A Dwater.out1 water nvertices 7, nedges 7
/petsc/src/dm/impls/network/
H A Dnetworkview.c14 PetscInt nsubnets, i, subnet, nvertices, nedges, vertex, edge, gidx, ncomp; in DMView_Network_CSV() local
47 PetscCall(DMNetworkGetSubnetwork(dmcoords, subnet, &nvertices, &nedges, &vertices, &edges)); in DMView_Network_CSV()
73 for (i = 0; i < nedges; i++) { in DMView_Network_CSV()
H A Dnetwork.c1657 PetscInt e, nedges, offset; in SetSubnetIdLookupBT() local
1664 PetscCall(DMNetworkGetSupportingEdges(dm, v, &nedges, &edges)); in SetSubnetIdLookupBT()
1665 for (e = 0; e < nedges; e++) { in SetSubnetIdLookupBT()
2041 PetscErrorCode DMNetworkGetSupportingEdges(DM dm, PetscInt vertex, PetscInt *nedges, PeOp const Pet… in DMNetworkGetSupportingEdges() argument
2046 PetscCall(DMPlexGetSupportSize(network->plex, vertex, nedges)); in DMNetworkGetSupportingEdges()
2187 PetscInt i, *vptr, nedges, vStart = network->cloneshared->vStart; in DMNetworkHasJacobian() local
2197 PetscCall(DMNetworkGetSupportingEdges(dm, i + vStart, &nedges, &edges)); in DMNetworkHasJacobian()
2198 nedges_total += nedges; in DMNetworkHasJacobian()
2199 vptr[i + 1] = vptr[i] + 2 * nedges + 1; in DMNetworkHasJacobian()
2259 PetscInt i, *vptr, nedges, vStart = network->cloneshared->vStart; in DMNetworkVertexSetMatrix() local
[all …]
/petsc/doc/manual/
H A Ddmnetwork.md184 DMNetworkGetSupportingEdges(DM dm, PetscInt vertex, PetscInt *nedges, const PetscInt *edges[]).
/petsc/src/dm/impls/plex/
H A Dplexdistribute.c445 PetscInt pStart, pEnd, p, nedges; in DMPlexDistributeOwnership() local
461 PetscCall(PetscSectionGetStorageSize(rootSection, &nedges)); in DMPlexDistributeOwnership()
463 PetscCall(PetscMalloc1(nedges, &remoterank)); in DMPlexDistributeOwnership()
468 PetscCall(ISCreateGeneral(comm, nedges, remoterank, PETSC_OWN_POINTER, rootrank)); in DMPlexDistributeOwnership()
/petsc/include/petsc/mpiuni/
H A Dmpi.h548 …#define MPI_Graphdims_Get(comm, nnodes, nedges) … argument
/petsc/src/ksp/pc/impls/bddc/
H A Dbddcprivate.c9561 PetscInt nv, nedges, nfaces; in PCBDDCInitSubSchurs() local
9563 PetscCall(PCBDDCGraphGetCandidatesIS(graph, &nfaces, NULL, &nedges, NULL, &vertices)); in PCBDDCInitSubSchurs()
9568 …t %02" PetscInt_FMT " local candidate edges (%d)\n", PetscGlobalRank, nedges, pcbddc->use_edges… in PCBDDCInitSubSchurs()
9572 PetscCall(PCBDDCGraphRestoreCandidatesIS(graph, &nfaces, NULL, &nedges, NULL, &vertices)); in PCBDDCInitSubSchurs()