Lines Matching refs:nsubnet
83 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()
665 …PetscCheck(network->cloneshared->nsubnet == Nsubnet, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Must … in DMNetworkLayoutSetUp()
848 …PetscInt i, nsubnet = network->cloneshared->Nsubnet, *sedgelist, Nsvtx = network->cloneshared->… in DMNetworkAddSharedVertices() local
855 PetscCall(PetscMalloc1(2 * 4 * nsubnet, &network->cloneshared->sedgelist)); in DMNetworkAddSharedVertices()
866 …PetscCheck(Nsvtx <= 2 * nsubnet, PETSC_COMM_SELF, PETSC_ERR_SUP, "allocate more space for coupling… in DMNetworkAddSharedVertices()