Lines Matching refs:rowidxs
3230 PetscInt *rowidxs, *colidxs, rs, cs, ce; in MatLoad_MPIBAIJ_Binary() local
3268 PetscCall(PetscMalloc1(m + 1, &rowidxs)); in MatLoad_MPIBAIJ_Binary()
3269 PetscCall(PetscViewerBinaryReadAll(viewer, rowidxs + 1, m, PETSC_DECIDE, M, PETSC_INT)); in MatLoad_MPIBAIJ_Binary()
3270 rowidxs[0] = 0; in MatLoad_MPIBAIJ_Binary()
3271 for (i = 0; i < m; i++) rowidxs[i + 1] += rowidxs[i]; in MatLoad_MPIBAIJ_Binary()
3272 …PetscCallMPI(MPIU_Allreduce(&rowidxs[m], &sum, 1, MPIU_INT, MPI_SUM, PetscObjectComm((PetscObject)… in MatLoad_MPIBAIJ_Binary()
3276 PetscCall(PetscMalloc2(rowidxs[m], &colidxs, rowidxs[m], &matvals)); in MatLoad_MPIBAIJ_Binary()
3277 …PetscCall(PetscViewerBinaryReadAll(viewer, colidxs, rowidxs[m], PETSC_DETERMINE, PETSC_DETERMINE, … in MatLoad_MPIBAIJ_Binary()
3278 …PetscCall(PetscViewerBinaryReadAll(viewer, matvals, rowidxs[m], PETSC_DETERMINE, PETSC_DETERMINE, … in MatLoad_MPIBAIJ_Binary()
3295 for (j = rowidxs[row]; j < rowidxs[row + 1]; j++) { in MatLoad_MPIBAIJ_Binary()
3317 PetscInt row = rs + i, s = rowidxs[i], e = rowidxs[i + 1]; in MatLoad_MPIBAIJ_Binary()
3321 PetscCall(PetscFree(rowidxs)); in MatLoad_MPIBAIJ_Binary()