Lines Matching refs:rowidxs
3041 PetscInt *rowidxs, *colidxs; in MatLoad_MPIAIJ_Binary() local
3071 PetscCall(PetscMalloc1(m + 1, &rowidxs)); in MatLoad_MPIAIJ_Binary()
3072 PetscCall(PetscViewerBinaryReadAll(viewer, rowidxs + 1, m, PETSC_DECIDE, M, PETSC_INT)); in MatLoad_MPIAIJ_Binary()
3073 rowidxs[0] = 0; in MatLoad_MPIAIJ_Binary()
3074 for (i = 0; i < m; i++) rowidxs[i + 1] += rowidxs[i]; in MatLoad_MPIAIJ_Binary()
3076 …PetscCallMPI(MPIU_Allreduce(&rowidxs[m], &sum, 1, MPIU_INT, MPI_SUM, PetscObjectComm((PetscObject)… in MatLoad_MPIAIJ_Binary()
3081 PetscCall(PetscMalloc2(rowidxs[m], &colidxs, rowidxs[m], &matvals)); in MatLoad_MPIAIJ_Binary()
3082 …PetscCall(PetscViewerBinaryReadAll(viewer, colidxs, rowidxs[m], PETSC_DETERMINE, PETSC_DETERMINE, … in MatLoad_MPIAIJ_Binary()
3083 …PetscCall(PetscViewerBinaryReadAll(viewer, matvals, rowidxs[m], PETSC_DETERMINE, PETSC_DETERMINE, … in MatLoad_MPIAIJ_Binary()
3085 PetscCall(MatMPIAIJSetPreallocationCSR(mat, rowidxs, colidxs, matvals)); in MatLoad_MPIAIJ_Binary()
3086 PetscCall(PetscFree(rowidxs)); in MatLoad_MPIAIJ_Binary()