Lines Matching refs:net

335 static inline PetscErrorCode VtxGetInfo(PetscInt Nsvtx, SVtx *svtx, PetscInt net, PetscInt idx, Pet…  in VtxGetInfo()  argument
347 if (net == svtx[i].sv[0] && idx == svtx[i].sv[1]) { in VtxGetInfo()
353 if (net == svto[0] && idx == svto[1]) { in VtxGetInfo()
376 PetscInt net, idx, gidx; in TableAddSVtx() local
379 net = sedgelist[k]; in TableAddSVtx()
381 gidx = network->cloneshared->subnet[net].vStart + idx; in TableAddSVtx()
407 PetscInt gidx, net, idx, i, nta, ita, idx_from, idx_to, n, *net_tmp, *idx_tmp, *gidx_tmp; in SharedVtxCreate() local
430 net = sedgelist[k]; in SharedVtxCreate()
432 …gidx = network->cloneshared->subnet[net].vStart + idx; /* global index of the vertex net.idx befor… in SharedVtxCreate()
436 net = sedgelist[k + 2]; in SharedVtxCreate()
438 gidx = network->cloneshared->subnet[net].vStart + idx; in SharedVtxCreate()
535 PetscInt net, idx, gidx, nmerged, gidx_from, net_from, sv_idx; in GetEdgelist_Coupling() local
561 for (net = 0; net < Nsubnet; net++) { in GetEdgelist_Coupling()
562 …for (idx = 0; idx < network->cloneshared->subnet[net].Nvtx; idx++) { /* Note: global subnet[net].N… in GetEdgelist_Coupling()
563 PetscCall(VtxGetInfo(Nsv, svtx, net, idx, &gidx_from, &svtype, &sv_idx)); in GetEdgelist_Coupling()
565 if (network->cloneshared->subnet[net].nvtx) { /* this proc owns sv_to */ in GetEdgelist_Coupling()
575 if (svtype == SVFROM && network->cloneshared->subnet[net].nvtx) { in GetEdgelist_Coupling()
579 if (network->cloneshared->subnet[net].nvtx) vidxlTog[i++] = gidx; in GetEdgelist_Coupling()
591 for (net = 0; net < Nsubnet; net++) { in GetEdgelist_Coupling()
592 for (j = 0; j < network->cloneshared->subnet[net].nedge; j++) { in GetEdgelist_Coupling()
594 …i = network->cloneshared->subnet[net].edgelist[2 * j] + (network->cloneshared->subnet… in GetEdgelist_Coupling()
598 … = network->cloneshared->subnet[net].edgelist[2 * j + 1] + (network->cloneshared->su… in GetEdgelist_Coupling()
656 …k->cloneshared->Nsubnet, np, *edges, *subnetvtx, *subnetedge, e, v, vfrom, vto, net, globaledgeoff; in DMNetworkLayoutSetUp() local
668 for (net = 1; net < Nsubnet; net++) { in DMNetworkLayoutSetUp()
669 if (network->cloneshared->subnet[net].nvtx) in DMNetworkLayoutSetUp()
670net].nvtx == network->cloneshared->subnet[net].Nvtx, PETSC_COMM_SELF, PETSC_ERR_SUP, "subnetwork %… in DMNetworkLayoutSetUp()
671 network->cloneshared->subnet[net].nvtx, network->cloneshared->subnet[net].Nvtx); in DMNetworkLayoutSetUp()
892 DM_Network *net = (DM_Network *)dm->data; in DMNetworkGetSharedVertices() local
896 if (nsv) *nsv = net->cloneshared->nsvtx; in DMNetworkGetSharedVertices()
897 if (svtx) *svtx = net->cloneshared->svertices; in DMNetworkGetSharedVertices()
1770 …etscInt j, e, v, offset, *subnetvtx, *subnetedge, Nsubnet, gidx, svtx_idx, nv, net; in DMNetworkDistribute() local
1884 net = sv[0]; in DMNetworkDistribute()
1885 …if (PetscBTLookup(btable, net)) newDMnetwork->cloneshared->subnet[net].nvtx++; /* sv is on net own… in DMNetworkDistribute()
1936 net = sv[0]; in DMNetworkDistribute()
1937 …if (PetscBTLookup(btable, net)) newDMnetwork->cloneshared->subnet[net].vertices[newDMnetwork->clon… in DMNetworkDistribute()