Lines Matching refs:useedgeweights
72 if (a->useedgeweights) PetscCall(PetscCalloc1(Ncols_recv, &values_recv)); in MatCreateSubMatrix_MPIAdj_data()
80 if (a->useedgeweights) { in MatCreateSubMatrix_MPIAdj_data()
94 if (a->useedgeweights) values_recv[j] = -1; in MatCreateSubMatrix_MPIAdj_data()
103 if (a->useedgeweights) PetscCall(PetscCalloc1(rnclos, &svalues)); in MatCreateSubMatrix_MPIAdj_data()
110 if (a->useedgeweights) svalues[rnclos] = values_recv[j]; in MatCreateSubMatrix_MPIAdj_data()
122 if (a->useedgeweights) *sadj_values = svalues; in MatCreateSubMatrix_MPIAdj_data()
125 if (a->useedgeweights) PetscCall(PetscFree(svalues)); in MatCreateSubMatrix_MPIAdj_data()
129 if (a->useedgeweights) PetscCall(PetscFree(values_recv)); in MatCreateSubMatrix_MPIAdj_data()
713 PetscBool useedgeweights; in MatMPIAdjSetPreallocation_MPIAdj() local
718 if (values) useedgeweights = PETSC_TRUE; in MatMPIAdjSetPreallocation_MPIAdj()
719 else useedgeweights = PETSC_FALSE; in MatMPIAdjSetPreallocation_MPIAdj()
721 …PetscCallMPI(MPIU_Allreduce(&useedgeweights, &b->useedgeweights, 1, MPI_C_BOOL, MPI_LOR, PetscObje… in MatMPIAdjSetPreallocation_MPIAdj()