Home
last modified time | relevance | path

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

/petsc/src/mat/impls/baij/mpi/
H A Dmpibaij.c3230 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()
[all …]
/petsc/src/mat/impls/baij/seq/
H A Dbaij.c3636 PetscInt *rowidxs, *colidxs; in MatLoad_SeqBAIJ_Binary() local
3671 PetscCall(PetscMalloc1(m + 1, &rowidxs)); in MatLoad_SeqBAIJ_Binary()
3672 PetscCall(PetscViewerBinaryRead(viewer, rowidxs + 1, m, NULL, PETSC_INT)); in MatLoad_SeqBAIJ_Binary()
3673 rowidxs[0] = 0; in MatLoad_SeqBAIJ_Binary()
3674 for (i = 0; i < m; i++) rowidxs[i + 1] += rowidxs[i]; in MatLoad_SeqBAIJ_Binary()
3675 sum = rowidxs[m]; in MatLoad_SeqBAIJ_Binary()
3679 PetscCall(PetscMalloc2(rowidxs[m], &colidxs, nz, &matvals)); in MatLoad_SeqBAIJ_Binary()
3680 PetscCall(PetscViewerBinaryRead(viewer, colidxs, rowidxs[m], NULL, PETSC_INT)); in MatLoad_SeqBAIJ_Binary()
3681 PetscCall(PetscViewerBinaryRead(viewer, matvals, rowidxs[m], NULL, PETSC_SCALAR)); in MatLoad_SeqBAIJ_Binary()
3695 for (j = rowidxs[row]; j < rowidxs[row + 1]; j++) { in MatLoad_SeqBAIJ_Binary()
[all …]
/petsc/src/mat/impls/aij/mpi/
H A Dmpiaij.c3041 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()
[all …]