Home
last modified time | relevance | path

Searched refs:nsubnet (Results 1 – 7 of 7) sorted by relevance

/petsc/src/ksp/ksp/tutorials/network/
H A Dex3.c18 …PetscInt i, j, net, Nsubnet, nsubnet, ne, nv, nvar, v, ncomp, compkey0, compkey1, compkey, … in main() local
33 nsubnet = 1; in main()
34 if (size == 1) nsubnet = 2; in main()
46 PetscCall(DMNetworkSetNumSubNetworks(dmnetwork, nsubnet, PETSC_DECIDE)); in main()
/petsc/src/dm/impls/network/
H A Dnetworkview.c287 PetscInt vfrom, vto, i, j, nv, ne, nsv, p, nsubnet; in DMView_Network() local
297 nsubnet = network->cloneshared->Nsubnet; /* num of subnetworks */ in DMView_Network()
299 …"; NVertices: %" PetscInt_FMT "; NSharedVertices: %" PetscInt_FMT ".\n", nsubnet, network->clonesh… in DMView_Network()
307 for (i = 0; i < nsubnet; i++) { in DMView_Network()
H A Dnetwork.c83 PetscErrorCode DMNetworkGetNumSubNetworks(DM dm, PeOp PetscInt *nsubnet, PeOp PetscInt *Nsubnet) in DMNetworkGetNumSubNetworks() argument
88 if (nsubnet) *nsubnet = network->cloneshared->nsubnet; in DMNetworkGetNumSubNetworks()
107 PetscErrorCode DMNetworkSetNumSubNetworks(DM dm, PetscInt nsubnet, PetscInt Nsubnet) in DMNetworkSetNumSubNetworks() argument
115 PetscValidLogicalCollectiveInt(dm, nsubnet, 2); in DMNetworkSetNumSubNetworks()
119 …PetscCheck(nsubnet >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Number of local subnetworks %" Pe… in DMNetworkSetNumSubNetworks()
120 …PetscCallMPI(MPIU_Allreduce(&nsubnet, &Nsubnet, 1, MPIU_INT, MPI_SUM, PetscObjectComm((PetscObject… in DMNetworkSetNumSubNetworks()
125 …network->cloneshared->nsubnet = 0; /* initial value; will be determined by DMNetworkAddSubnetwork(… in DMNetworkSetNumSubNetworks()
254 i = network->cloneshared->nsubnet; in DMNetworkAddSubnetwork()
281 if (netnum) *netnum = network->cloneshared->nsubnet; in DMNetworkAddSubnetwork()
282 network->cloneshared->nsubnet++; in DMNetworkAddSubnetwork()
[all …]
H A Dnetworkcreate.c294 cloneshared->nsubnet = 0; in DMNetworkInitializeToDefault()
/petsc/include/petsc/private/
H A Ddmnetworkimpl.h122 PetscInt nsubnet, Nsubnet; /* Local and global number of subnetworks */ member
/petsc/doc/manual/
H A Ddmnetwork.md42 DMNetworkSetNumSubNetworks(DM dm, PetscInt nsubnet, PetscInt Nsubnet);
45 Here, `nsubnet` and `Nsubnet` are the local and global number of subnetworks.
/petsc/src/snes/tutorials/network/power/
H A Dpower2.c443 PetscInt nsubnet = 2, nv, ne, i, j, genj, loadj; in main() local
499 PetscCall(DMNetworkSetNumSubNetworks(networkdm, PETSC_DECIDE, nsubnet)); in main()