Home
last modified time | relevance | path

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

/petsc/src/mat/utils/
H A Doverlapsplit.c16 PetscInt nindx, *indices_sc, *indices_ov, localsize, *localsizes_sc, localsize_tmp; in MatIncreaseOverlapSplit_Single() local
72 PetscCall(PetscMalloc1(size, &localsizes_sc)); in MatIncreaseOverlapSplit_Single()
74 PetscCallMPI(MPI_Gather(&nindx, 1, MPIU_INT, localsizes_sc, 1, MPIU_INT, 0, scomm)); in MatIncreaseOverlapSplit_Single()
88 for (PetscInt i = 0; i < localsizes_sc[k]; i++) sources_sc[localsize_tmp++] = k; in MatIncreaseOverlapSplit_Single()
93 PetscCall(PetscArrayzero(localsizes_sc, size)); in MatIncreaseOverlapSplit_Single()
98 localsizes_sc[sources_sc[0]]++; in MatIncreaseOverlapSplit_Single()
106 localsizes_sc[sources_sc[i]]++; in MatIncreaseOverlapSplit_Single()
111 for (PetscMPIInt k = 0; k < size; k++) localoffsets[k + 1] = localoffsets[k] + localsizes_sc[k]; in MatIncreaseOverlapSplit_Single()
114 nroots = localsizes_sc[srank]; in MatIncreaseOverlapSplit_Single()
130 PetscCallMPI(MPI_Scatter(localsizes_sc, 1, MPIU_INT, &nroots, 1, MPIU_INT, 0, scomm)); in MatIncreaseOverlapSplit_Single()
[all …]