Lines Matching refs:vtx
92 const PetscInt *vtx, *edges; in FormJacobian_subPower() local
111 PetscCall(DMNetworkGetSubnetwork(networkdm, 0, &nv, &ne, &vtx, &edges)); in FormJacobian_subPower()
112 PetscCall(FormJacobian_Power_private(networkdm, localX, J, nv, ne, vtx, edges, appctx)); in FormJacobian_subPower()
115 PetscCall(DMNetworkGetSubnetwork(networkdm, 1, &nv, &ne, &vtx, &edges)); in FormJacobian_subPower()
117 PetscCall(DMNetworkIsGhostVertex(networkdm, vtx[i], &ghostvtex)); in FormJacobian_subPower()
120 PetscCall(DMNetworkGetGlobalVecOffset(networkdm, vtx[i], ALL_COMPONENTS, &offset)); in FormJacobian_subPower()
121 PetscCall(DMNetworkGetComponent(networkdm, vtx[i], ALL_COMPONENTS, NULL, NULL, &nvar)); in FormJacobian_subPower()
135 …tworkdm, Vec localX, Vec localF, PetscInt nv, PetscInt ne, const PetscInt *vtx, const PetscInt *ed… in FormFunction_Dummy() argument
150 PetscCall(DMNetworkIsGhostVertex(networkdm, vtx[i], &ghostvtex)); in FormFunction_Dummy()
153 PetscCall(DMNetworkGetLocalVecOffset(networkdm, vtx[i], ALL_COMPONENTS, &offset)); in FormFunction_Dummy()
154 PetscCall(DMNetworkGetComponent(networkdm, vtx[i], ALL_COMPONENTS, NULL, NULL, &nvar)); in FormFunction_Dummy()
169 const PetscInt *vtx, *edges; in FormFunction() local
190 PetscCall(DMNetworkGetSubnetwork(networkdm, 0, &nv, &ne, &vtx, &edges)); in FormFunction()
192 PetscCall(FormFunction_Dummy(networkdm, localX, localF, nv, ne, vtx, edges, user)); in FormFunction()
194 PetscCall(FormFunction_Power(networkdm, localX, localF, nv, ne, vtx, edges, &appctx_power)); in FormFunction()
198 PetscCall(DMNetworkGetSubnetwork(networkdm, 1, &nv, &ne, &vtx, &edges)); in FormFunction()
200 PetscCall(FormFunction_Dummy(networkdm, localX, localF, nv, ne, vtx, edges, user)); in FormFunction()
202 PetscCall(FormFunction_Water(networkdm, localX, localF, nv, ne, vtx, edges, NULL)); in FormFunction()
206 PetscCall(DMNetworkGetSharedVertices(networkdm, &nv, &vtx)); in FormFunction()
212 PetscCall(DMNetworkGetComponent(networkdm, vtx[v], ALL_COMPONENTS, NULL, NULL, &nvar)); in FormFunction()
213 PetscCall(DMNetworkGetNumComponents(networkdm, vtx[v], &ncomp)); in FormFunction()
217 PetscCall(DMNetworkGetComponent(networkdm, vtx[v], k, &key, &component, &nvar)); in FormFunction()
218 PetscCall(DMNetworkGetGlobalVecOffset(networkdm, vtx[v], k, &goffset[k])); in FormFunction()
238 PetscCall(DMNetworkGetSupportingEdges(networkdm, vtx[v], &nconnedges, &connedges)); in FormFunction()
264 const PetscInt *vtx, *edges; in SetInitialGuess() local
281 PetscCall(DMNetworkGetSubnetwork(networkdm, 0, &nv, &ne, &vtx, &edges)); in SetInitialGuess()
282 PetscCall(SetInitialGuess_Power(networkdm, localX, nv, ne, vtx, edges, &appctx_power)); in SetInitialGuess()
285 PetscCall(DMNetworkGetSubnetwork(networkdm, 1, &nv, &ne, &vtx, &edges)); in SetInitialGuess()
286 PetscCall(SetInitialGuess_Water(networkdm, localX, nv, ne, vtx, edges, NULL)); in SetInitialGuess()
290 PetscCall(DMNetworkGetSharedVertices(networkdm, &nv, &vtx)); in SetInitialGuess()
292 PetscCall(DMNetworkIsGhostVertex(networkdm, vtx[i], &ghost)); in SetInitialGuess()
295 PetscCall(DMNetworkGetNumComponents(networkdm, vtx[i], &ncomp)); in SetInitialGuess()
297 PetscCall(DMNetworkGetLocalVecOffset(networkdm, vtx[i], j, &offset)); in SetInitialGuess()
298 PetscCall(DMNetworkGetComponent(networkdm, vtx[i], j, &key, (void **)&component, NULL)); in SetInitialGuess()
330 const PetscInt *vtx; in CoordinateVecSetUp() local
338 PetscCall(DMNetworkGetSubnetwork(dmcoords, i, &nv, NULL, &vtx, NULL)); in CoordinateVecSetUp()
340 PetscCall(DMNetworkGetGlobalVertexIndex(dmcoords, vtx[v], &gidx)); in CoordinateVecSetUp()
341 PetscCall(DMNetworkGetLocalVecOffset(dmcoords, vtx[v], 0, &offset)); in CoordinateVecSetUp()
342 PetscCall(DMNetworkGetComponent(dmcoords, vtx[v], 0, NULL, (void **)&color, NULL)); in CoordinateVecSetUp()
461 const PetscInt *vtx, *edges; in main() local
574 PetscCall(DMNetworkGetSubnetwork(networkdm, power_netnum, &nv, &ne, &vtx, &edges)); in main()
579 PetscCall(DMNetworkIsSharedVertex(networkdm, vtx[i], &flg)); in main()
582 …PetscCall(DMNetworkAddComponent(networkdm, vtx[i], appctx_power->compkey_bus, &pfdata->bus[i], 2)); in main()
584 …for (j = 0; j < pfdata->bus[i].ngen; j++) PetscCall(DMNetworkAddComponent(networkdm, vtx[i], appct… in main()
587 …for (j = 0; j < pfdata->bus[i].nload; j++) PetscCall(DMNetworkAddComponent(networkdm, vtx[i], appc… in main()
592 PetscCall(DMNetworkGetSubnetwork(networkdm, water_netnum, &nv, &ne, &vtx, &edges)); in main()
596 PetscCall(DMNetworkIsSharedVertex(networkdm, vtx[i], &flg)); in main()
599 …PetscCall(DMNetworkAddComponent(networkdm, vtx[i], appctx_water->compkey_vtx, &waterdata->vertex[i… in main()
603 PetscCall(DMNetworkGetSharedVertices(networkdm, &nv, &vtx)); in main()
606 …PetscCall(DMNetworkAddComponent(networkdm, vtx[i], appctx_power->compkey_bus, &pfdata->bus[4], 2)); in main()
608 …PetscCall(DMNetworkAddComponent(networkdm, vtx[i], appctx_power->compkey_load, &pfdata->load[0], 0… in main()
611 …PetscCall(DMNetworkAddComponent(networkdm, vtx[i], appctx_water->compkey_vtx, &waterdata->vertex[0… in main()
663 PetscCall(DMNetworkGetSubnetwork(networkdm, i, &nv, &ne, &vtx, &edges)); in main()
668 PetscCall(DMNetworkIsGhostVertex(networkdm, vtx[v], &ghost)); in main()
669 PetscCall(DMNetworkGetGlobalVertexIndex(networkdm, vtx[v], &gidx)); in main()
670 …PetscInt_FMT "] v %" PetscInt_FMT " %" PetscInt_FMT "; ghost %d\n", rank, i, vtx[v], gidx, ghost)); in main()
676 PetscCall(DMNetworkGetSharedVertices(networkdm, &nv, &vtx)); in main()
679 PetscCall(DMNetworkGetGlobalVertexIndex(networkdm, vtx[v], &gidx)); in main()
680 …rintf(PETSC_COMM_SELF, "[%d] sv %" PetscInt_FMT ", gidx=%" PetscInt_FMT "\n", rank, vtx[v], gidx)); in main()