Lines Matching refs:networkdm

32 PetscErrorCode FormJacobian_Power_private(DM networkdm, Vec localX, Mat J, PetscInt nv, PetscInt ne…  in FormJacobian_Power_private()  argument
50 PetscCall(DMNetworkIsGhostVertex(networkdm, vtx[v], &ghostvtex)); in FormJacobian_Power_private()
52 PetscCall(DMNetworkGetNumComponents(networkdm, vtx[v], &numComps)); in FormJacobian_Power_private()
54 PetscCall(DMNetworkGetLocalVecOffset(networkdm, vtx[v], ALL_COMPONENTS, &offset)); in FormJacobian_Power_private()
55 PetscCall(DMNetworkGetGlobalVecOffset(networkdm, vtx[v], ALL_COMPONENTS, &goffset)); in FormJacobian_Power_private()
56 PetscCall(DMNetworkGetComponent(networkdm, vtx[v], j, &key, &component, NULL)); in FormJacobian_Power_private()
95 PetscCall(DMNetworkGetSupportingEdges(networkdm, vtx[v], &nconnedges, &connedges)); in FormJacobian_Power_private()
106 PetscCall(DMNetworkGetComponent(networkdm, e, 0, &key, (void **)&branch, NULL)); in FormJacobian_Power_private()
118 PetscCall(DMNetworkGetConnectedVertices(networkdm, edges[e], &cone)); in FormJacobian_Power_private()
122 PetscCall(DMNetworkGetLocalVecOffset(networkdm, vfrom, ALL_COMPONENTS, &offsetfrom)); in FormJacobian_Power_private()
123 PetscCall(DMNetworkGetLocalVecOffset(networkdm, vto, ALL_COMPONENTS, &offsetto)); in FormJacobian_Power_private()
124 PetscCall(DMNetworkGetGlobalVecOffset(networkdm, vfrom, ALL_COMPONENTS, &goffsetfrom)); in FormJacobian_Power_private()
125 PetscCall(DMNetworkGetGlobalVecOffset(networkdm, vto, ALL_COMPONENTS, &goffsetto)); in FormJacobian_Power_private()
136 PetscCall(DMNetworkGetComponent(networkdm, vfrom, 0, &keyf, (void **)&busf, NULL)); in FormJacobian_Power_private()
137 PetscCall(DMNetworkGetComponent(networkdm, vto, 0, &keyt, (void **)&bust, NULL)); in FormJacobian_Power_private()
216 DM networkdm; in FormJacobian_Power() local
224 PetscCall(SNESGetDM(snes, &networkdm)); in FormJacobian_Power()
225 PetscCall(DMGetLocalVector(networkdm, &localX)); in FormJacobian_Power()
227 PetscCall(DMGlobalToLocalBegin(networkdm, X, INSERT_VALUES, localX)); in FormJacobian_Power()
228 PetscCall(DMGlobalToLocalEnd(networkdm, X, INSERT_VALUES, localX)); in FormJacobian_Power()
230 PetscCall(DMNetworkGetSubnetwork(networkdm, 0, &nv, &ne, &vtx, &edges)); in FormJacobian_Power()
231 PetscCall(FormJacobian_Power_private(networkdm, localX, J, nv, ne, vtx, edges, appctx)); in FormJacobian_Power()
233 PetscCall(DMRestoreLocalVector(networkdm, &localX)); in FormJacobian_Power()
240 PetscErrorCode FormFunction_Power(DM networkdm, Vec localX, Vec localF, PetscInt nv, PetscInt ne, c… in FormFunction_Power() argument
260 PetscCall(DMNetworkIsGhostVertex(networkdm, vtx[v], &ghostvtex)); in FormFunction_Power()
261 PetscCall(DMNetworkGetNumComponents(networkdm, vtx[v], &numComps)); in FormFunction_Power()
262 PetscCall(DMNetworkGetLocalVecOffset(networkdm, vtx[v], ALL_COMPONENTS, &offset)); in FormFunction_Power()
265 PetscCall(DMNetworkGetComponent(networkdm, vtx[v], j, &key, &component, NULL)); in FormFunction_Power()
286 PetscCall(DMNetworkGetSupportingEdges(networkdm, vtx[v], &nconnedges, &connedges)); in FormFunction_Power()
295 PetscCall(DMNetworkGetComponent(networkdm, e, 0, &keye, (void **)&branch, NULL)); in FormFunction_Power()
306 PetscCall(DMNetworkGetConnectedVertices(networkdm, e, &cone)); in FormFunction_Power()
310 PetscCall(DMNetworkGetLocalVecOffset(networkdm, vfrom, ALL_COMPONENTS, &offsetfrom)); in FormFunction_Power()
311 PetscCall(DMNetworkGetLocalVecOffset(networkdm, vto, ALL_COMPONENTS, &offsetto)); in FormFunction_Power()
350 PetscErrorCode SetInitialGuess_Power(DM networkdm, Vec localX, PetscInt nv, PetscInt ne, const Pets… in SetInitialGuess_Power() argument
364 PetscCall(PetscObjectGetComm((PetscObject)networkdm, &comm)); in SetInitialGuess_Power()
368 PetscCall(DMNetworkIsGhostVertex(networkdm, vtx[i], &ghostvtex)); in SetInitialGuess_Power()
369 PetscCall(DMNetworkIsSharedVertex(networkdm, vtx[i], &sharedv)); in SetInitialGuess_Power()
372 PetscCall(DMNetworkGetLocalVecOffset(networkdm, vtx[i], ALL_COMPONENTS, &offset)); in SetInitialGuess_Power()
373 PetscCall(DMNetworkGetNumComponents(networkdm, vtx[i], &numComps)); in SetInitialGuess_Power()
375 PetscCall(DMNetworkGetComponent(networkdm, vtx[i], j, &key, &component, NULL)); in SetInitialGuess_Power()