Lines Matching refs:vtx
11 …tworkdm, Vec localX, Vec localF, PetscInt nv, PetscInt ne, const PetscInt *vtx, const PetscInt *ed… in FormFunction_Subnet() argument
34 PetscCall(DMNetworkIsGhostVertex(networkdm, vtx[v], &ghostvtex)); in FormFunction_Subnet()
35 PetscCall(DMNetworkGetNumComponents(networkdm, vtx[v], &numComps)); in FormFunction_Subnet()
36 PetscCall(DMNetworkGetLocalVecOffset(networkdm, vtx[v], ALL_COMPONENTS, &offset)); in FormFunction_Subnet()
38 PetscCall(DMNetworkGetComponent(networkdm, vtx[v], j, &key, &component, NULL)); in FormFunction_Subnet()
59 PetscCall(DMNetworkGetSupportingEdges(networkdm, vtx[v], &nconnedges, &connedges)); in FormFunction_Subnet()
93 if (vfrom == vtx[v]) { in FormFunction_Subnet()
128 const PetscInt *vtx, *edges; in FormFunction() local
143 PetscCall(DMNetworkGetSubnetwork(networkdm, 0, &nv, &ne, &vtx, &edges)); in FormFunction()
144 PetscCall(FormFunction_Subnet(networkdm, localX, localF, nv, ne, vtx, edges, appctx)); in FormFunction()
147 PetscCall(DMNetworkGetSubnetwork(networkdm, 1, &nv, &ne, &vtx, &edges)); in FormFunction()
148 PetscCall(FormFunction_Subnet(networkdm, localX, localF, nv, ne, vtx, edges, appctx)); in FormFunction()
158 …dm, Vec localX, Mat J, Mat Jpre, PetscInt nv, PetscInt ne, const PetscInt *vtx, const PetscInt *ed… in FormJacobian_Subnet() argument
180 PetscCall(DMNetworkIsGhostVertex(networkdm, vtx[v], &ghostvtex)); in FormJacobian_Subnet()
181 PetscCall(DMNetworkGetNumComponents(networkdm, vtx[v], &numComps)); in FormJacobian_Subnet()
183 PetscCall(DMNetworkGetLocalVecOffset(networkdm, vtx[v], ALL_COMPONENTS, &offset)); in FormJacobian_Subnet()
184 PetscCall(DMNetworkGetGlobalVecOffset(networkdm, vtx[v], ALL_COMPONENTS, &goffset)); in FormJacobian_Subnet()
185 PetscCall(DMNetworkGetComponent(networkdm, vtx[v], j, &key, &component, NULL)); in FormJacobian_Subnet()
223 PetscCall(DMNetworkGetSupportingEdges(networkdm, vtx[v], &nconnedges, &connedges)); in FormJacobian_Subnet()
266 if (vfrom == vtx[v]) { in FormJacobian_Subnet()
344 const PetscInt *vtx, *edges; in FormJacobian() local
356 PetscCall(DMNetworkGetSubnetwork(networkdm, 0, &nv, &ne, &vtx, &edges)); in FormJacobian()
357 PetscCall(FormJacobian_Subnet(networkdm, localX, J, Jpre, nv, ne, vtx, edges, appctx)); in FormJacobian()
360 PetscCall(DMNetworkGetSubnetwork(networkdm, 1, &nv, &ne, &vtx, &edges)); in FormJacobian()
361 PetscCall(FormJacobian_Subnet(networkdm, localX, J, Jpre, nv, ne, vtx, edges, appctx)); in FormJacobian()
370 …Subnet(DM networkdm, Vec localX, PetscInt nv, PetscInt ne, const PetscInt *vtx, const PetscInt *ed… in SetInitialValues_Subnet() argument
383 PetscCall(DMNetworkIsGhostVertex(networkdm, vtx[i], &ghostvtex)); in SetInitialValues_Subnet()
386 PetscCall(DMNetworkGetLocalVecOffset(networkdm, vtx[i], ALL_COMPONENTS, &offset)); in SetInitialValues_Subnet()
387 PetscCall(DMNetworkGetNumComponents(networkdm, vtx[i], &numComps)); in SetInitialValues_Subnet()
389 PetscCall(DMNetworkGetComponent(networkdm, vtx[i], j, &key, &component, NULL)); in SetInitialValues_Subnet()
409 const PetscInt *vtx, *edges; in SetInitialValues() local
420 PetscCall(DMNetworkGetSubnetwork(networkdm, 0, &nv, &ne, &vtx, &edges)); in SetInitialValues()
421 PetscCall(SetInitialValues_Subnet(networkdm, localX, nv, ne, vtx, edges, appctx)); in SetInitialValues()
424 PetscCall(DMNetworkGetSubnetwork(networkdm, 1, &nv, &ne, &vtx, &edges)); in SetInitialValues()
425 PetscCall(SetInitialValues_Subnet(networkdm, localX, nv, ne, vtx, edges, appctx)); in SetInitialValues()
444 const PetscInt *vtx, *edges; in main() local
512 PetscCall(DMNetworkGetSubnetwork(networkdm, 0, &nv, &ne, &vtx, &edges)); in main()
517 PetscCall(DMNetworkAddComponent(networkdm, vtx[i], componentkey[1], &pfdata1->bus[i], 2)); in main()
519 …for (j = 0; j < pfdata1->bus[i].ngen; j++) PetscCall(DMNetworkAddComponent(networkdm, vtx[i], comp… in main()
522 …j < pfdata1->bus[i].nload; j++) PetscCall(DMNetworkAddComponent(networkdm, vtx[i], componentkey[3]… in main()
530 PetscCall(DMNetworkGetSubnetwork(networkdm, 1, &nv, &ne, &vtx, &edges)); in main()
535 PetscCall(DMNetworkAddComponent(networkdm, vtx[i], componentkey[1], &pfdata2->bus[i], 2)); in main()
537 …for (j = 0; j < pfdata2->bus[i].ngen; j++) PetscCall(DMNetworkAddComponent(networkdm, vtx[i], comp… in main()
540 …j < pfdata2->bus[i].nload; j++) PetscCall(DMNetworkAddComponent(networkdm, vtx[i], componentkey[3]… in main()