| /petsc/src/dm/impls/network/ |
| H A D | network.c | 30 DM_Network *network = (DM_Network *)dm->data; in DMNetworkInitializeHeaderComponentData() local 34 np = network->cloneshared->pEnd - network->cloneshared->pStart; in DMNetworkInitializeHeaderComponentData() 35 if (network->header) in DMNetworkInitializeHeaderComponentData() 37 network->header[p].maxcomps = defaultnumcomp; in DMNetworkInitializeHeaderComponentData() 38 PetscCall(SetUpNetworkHeaderComponentValue(dm, &network->header[p], &network->cvalue[p])); in DMNetworkInitializeHeaderComponentData() 60 DM_Network *network = (DM_Network *)dm->data; in DMNetworkGetPlex() local 63 *plexdm = network->plex; in DMNetworkGetPlex() 85 DM_Network *network = (DM_Network *)dm->data; in DMNetworkGetNumSubNetworks() local 88 if (nsubnet) *nsubnet = network->cloneshared->nsubnet; in DMNetworkGetNumSubNetworks() 89 if (Nsubnet) *Nsubnet = network->cloneshared->Nsubnet; in DMNetworkGetNumSubNetworks() [all …]
|
| H A D | networkcreate.c | 223 DM_Network *network = (DM_Network *)dm->data; in DMCreateGlobalVector_Network() local 226 PetscCall(DMCreateGlobalVector(network->plex, vec)); in DMCreateGlobalVector_Network() 234 DM_Network *network = (DM_Network *)dm->data; in DMCreateLocalVector_Network() local 237 PetscCall(DMCreateLocalVector(network->plex, vec)); in DMCreateLocalVector_Network() 244 DM_Network *network = (DM_Network *)dm->data; in DMNetworkInitializeToDefault_NonShared() local 247 network->Je = NULL; in DMNetworkInitializeToDefault_NonShared() 248 network->Jv = NULL; in DMNetworkInitializeToDefault_NonShared() 249 network->Jvptr = NULL; in DMNetworkInitializeToDefault_NonShared() 250 network->userEdgeJacobian = PETSC_FALSE; in DMNetworkInitializeToDefault_NonShared() 251 network->userVertexJacobian = PETSC_FALSE; in DMNetworkInitializeToDefault_NonShared() [all …]
|
| H A D | networkview.c | 99 DM_Network *network = (DM_Network *)dm->data; in DMView_Network_Matplotlib() local 127 optionShowRanks = network->vieweroptions.showallranks; in DMView_Network_Matplotlib() 128 showNoNodes = network->vieweroptions.shownovertices; in DMView_Network_Matplotlib() 129 showNoNumbering = network->vieweroptions.shownonumbering; in DMView_Network_Matplotlib() 203 …if (network->vieweroptions.dontshowglobal || optionRankIsSet) PetscCall(PetscStrlcat(options, " -n… in DMView_Network_Matplotlib() 211 if (network->vieweroptions.viewranks) { in DMView_Network_Matplotlib() 215 PetscCall(ISGetTotalIndices(network->vieweroptions.viewranks, &viewranks)); in DMView_Network_Matplotlib() 216 PetscCall(ISGetSize(network->vieweroptions.viewranks, &viewrankssize)); in DMView_Network_Matplotlib() 222 PetscCall(ISRestoreTotalIndices(network->vieweroptions.viewranks, &viewranks)); in DMView_Network_Matplotlib() 288 DM_Network *network = (DM_Network *)dm->data; in DMView_Network() local [all …]
|
| H A D | networkmonitor.c | 19 PetscErrorCode DMNetworkMonitorCreate(DM network, DMNetworkMonitor *monitorptr) in DMNetworkMonitorCreate() argument 26 PetscCall(PetscObjectGetComm((PetscObject)network, &comm)); in DMNetworkMonitorCreate() 32 monitor->network = network; in DMNetworkMonitorCreate() 132 PetscCall(DMNetworkGetVertexRange(monitor->network, &vStart, &vEnd)); in DMNetworkMonitorAdd() 133 PetscCall(DMNetworkGetEdgeRange(monitor->network, &eStart, &eEnd)); in DMNetworkMonitorAdd() 192 …PetscCall(DMNetworkGetGlobalVecOffset(monitor->network, node->element, ALL_COMPONENTS, &varoffset)… in DMNetworkMonitorView()
|
| /petsc/src/dm/tests/ |
| H A D | ex10.c | 11 DM network; in main() local 29 PetscCall(DMNetworkCreate(PETSC_COMM_WORLD, &network)); in main() 32 PetscCall(DMNetworkRegisterComponent(network, "ecomp", 0, &ecompkey)); in main() 33 PetscCall(DMNetworkRegisterComponent(network, "vcomp", 0, &vcompkey)); in main() 56 PetscCall(DMNetworkSetNumSubNetworks(network, PETSC_DECIDE, 1)); in main() 57 PetscCall(DMNetworkAddSubnetwork(network, "Subnetwork 1", nedge, edgelist, NULL)); in main() 58 PetscCall(DMNetworkLayoutSetUp(network)); in main() 61 PetscCall(DMView(network, PETSC_VIEWER_STDOUT_WORLD)); in main() 64 PetscCall(DMNetworkGetSubnetwork(network, 0, &nv, &ne, &nodes, &edges)); in main() 67 PetscCall(DMNetworkAddComponent(network, edges[e], ecompkey, NULL, 1)); in main() [all …]
|
| /petsc/doc/manual/ |
| H A D | dmnetwork.md | 15 1. Create a network object. 21 2. Create components and register them with the network. A “component” 22 is specific application data at a vertex/edge of the network required 47 4. A subnetwork is added to the network by calling 54 The output `netnum` is the global numbering of the subnetwork in the network. 58 As an example, consider a network comprised of 2 subnetworks that 59 are coupled. The topological information for the network is as 72 of this network is 88 the network by calling 94 6. After completing the previous steps, the network graph is set up, but [all …]
|
| /petsc/share/petsc/suppressions/ |
| H A D | ubsan | 62 alignment:src/ksp/ksp/tutorials/network/ex1.c 63 alignment:src/snes/tutorials/network/ex1.c 64 alignment:src/snes/tutorials/network/water/waterfunctions.c 65 alignment:src/snes/tutorials/network/power/power2.c 66 alignment:src/snes/tutorials/network/power/pffunctions.c
|
| /petsc/src/snes/tutorials/network/output/ |
| H A D | ex1_4.out | 1 Power network: nb = 9, ngen = 3, nload = 3, nbranch = 9 7 type: network 36 type: network
|
| H A D | ex1.out | 1 Power network: nb = 9, ngen = 3, nload = 3, nbranch = 9 4 type: network
|
| H A D | ex1_5.out | 1 Power network: nb = 9, ngen = 3, nload = 3, nbranch = 9 4 type: network
|
| H A D | ex1_2.out | 1 Power network: nb = 9, ngen = 3, nload = 3, nbranch = 9
|
| H A D | ex1_6.out | 1 Power network: nb = 9, ngen = 3, nload = 3, nbranch = 9
|
| H A D | ex1_3.out | 1 Power network: nb = 9, ngen = 3, nload = 3, nbranch = 9
|
| /petsc/src/dm/impls/network/tests/output/ |
| H A D | ex1_0.out | 3 type: network 17 type: network
|
| H A D | ex1_1.out | 3 type: network 24 type: network
|
| H A D | ex2_0.out | 2 type: network
|
| H A D | ex2_1.out | 2 type: network
|
| /petsc/src/dm/tests/output/ |
| H A D | ex10_1.out | 3 type: network 27 type: network
|
| /petsc/src/snes/tutorials/network/ |
| H A D | ex1options | 28 #========= Power network ========== 53 #========= Water network ==========
|
| /petsc/.gitlab/ |
| H A D | CODEOWNERS | 16 /src/*/*/network/ @abhyshr @hongzhangsun @knepley 17 /src/*/*/*/network/ @abhyshr @hongzhangsun @knepley
|
| /petsc/src/ksp/ksp/tutorials/network/output/ |
| H A D | ex3_1.out | 2 type: network
|
| H A D | ex4_1.out | 2 type: network
|
| H A D | ex3_2.out | 2 type: network
|
| H A D | ex4_2.out | 2 type: network
|
| H A D | ex3_3.out | 2 type: network
|