| /petsc/src/ksp/pc/impls/ml/ |
| H A D | ml.c | 40 Mat Aloc; /* local portion of A to be used by ML */ member 74 Mat_SeqAIJ *a = (Mat_SeqAIJ *)ml->Aloc->data; in PetscML_getrow() 76 if (MatGetSize(ml->Aloc, &m, NULL)) return 0; in PetscML_getrow() 99 PetscInt i, in_length = A->rmap->n, out_length = ml->Aloc->cmap->n; in PetscML_comm() 128 Mat A = ml->A, Aloc = ml->Aloc; in PetscML_matvec() local 143 PetscCall(MatMult(Aloc, ml->x, ml->y)); in PetscML_matvec() 169 static PetscErrorCode MatConvert_MPIAIJ_ML(Mat A, MatType newtype, MatReuse scall, Mat *Aloc) in MatConvert_MPIAIJ_ML() argument 209 PetscCall(MatCreateSeqAIJWithArrays(PETSC_COMM_SELF, am, an, ci, cj, ca, Aloc)); in MatConvert_MPIAIJ_ML() 213 mat = (Mat_SeqAIJ *)(*Aloc)->data; in MatConvert_MPIAIJ_ML() 219 mat = (Mat_SeqAIJ *)(*Aloc)->data; in MatConvert_MPIAIJ_ML() [all …]
|
| /petsc/src/mat/impls/sell/mpi/ |
| H A D | mpisell.c | 602 Mat_SeqSELL *Aloc; in MatView_MPISELL_ASCIIorDraworSocket() local 619 Aloc = (Mat_SeqSELL *)sell->A->data; in MatView_MPISELL_ASCIIorDraworSocket() 620 acolidx = Aloc->colidx; in MatView_MPISELL_ASCIIorDraworSocket() 621 aval = Aloc->val; in MatView_MPISELL_ASCIIorDraworSocket() 622 for (i = 0; i < Aloc->totalslices; i++) { /* loop over slices */ in MatView_MPISELL_ASCIIorDraworSocket() 623 for (j = Aloc->sliidx[i]; j < Aloc->sliidx[i + 1]; j++) { in MatView_MPISELL_ASCIIorDraworSocket() 624 …isnonzero = (PetscBool)((j - Aloc->sliidx[i]) / Aloc->sliceheight < Aloc->rlen[i * Aloc->sliceheig… in MatView_MPISELL_ASCIIorDraworSocket() 626 row = i * Aloc->sliceheight + j % Aloc->sliceheight + mat->rmap->rstart; in MatView_MPISELL_ASCIIorDraworSocket() 636 Aloc = (Mat_SeqSELL *)sell->B->data; in MatView_MPISELL_ASCIIorDraworSocket() 637 acolidx = Aloc->colidx; in MatView_MPISELL_ASCIIorDraworSocket() [all …]
|
| /petsc/src/mat/impls/aij/mpi/superlu_dist/ |
| H A D | superlu_dist.c | 445 Mat Aloc; in MatLUFactorNumeric_SuperLU_DIST() local 461 PetscCall(MatMPIAIJGetLocalMat(A, MAT_INITIAL_MATRIX, &Aloc)); in MatLUFactorNumeric_SuperLU_DIST() 464 Aloc = A; in MatLUFactorNumeric_SuperLU_DIST() 467 PetscCall(MatGetRowIJ(Aloc, 0, PETSC_FALSE, PETSC_FALSE, &unused, &ai, &aj, &flg)); in MatLUFactorNumeric_SuperLU_DIST() 469 PetscCall(MatSeqAIJGetArrayRead(Aloc, &av)); in MatLUFactorNumeric_SuperLU_DIST() 470 nz = ai[Aloc->rmap->n]; in MatLUFactorNumeric_SuperLU_DIST() 475 …PetscStackCallExternalVoid("SuperLU_DIST:allocateA_dist", sallocateA_dist(Aloc->rmap->n, nz, &lu->… in MatLUFactorNumeric_SuperLU_DIST() 478 …PetscStackCallExternalVoid("SuperLU_DIST:allocateA_dist", allocateA_dist(Aloc->rmap->n, nz, CASTDO… in MatLUFactorNumeric_SuperLU_DIST() 513 …PetscStackCallExternalVoid("SuperLU_DIST:allocateA_dist", sallocateA_dist(Aloc->rmap->n, nz, &lu->… in MatLUFactorNumeric_SuperLU_DIST() 516 …PetscStackCallExternalVoid("SuperLU_DIST:allocateA_dist", allocateA_dist(Aloc->rmap->n, nz, CASTDO… in MatLUFactorNumeric_SuperLU_DIST() [all …]
|
| /petsc/src/mat/impls/aij/mpi/strumpack/ |
| H A D | strumpack.c | 937 Mat Aloc; in MatLUFactorNumeric_STRUMPACK() local 947 PetscCall(MatMPIAIJGetLocalMat(A, MAT_INITIAL_MATRIX, &Aloc)); in MatLUFactorNumeric_STRUMPACK() 950 Aloc = A; in MatLUFactorNumeric_STRUMPACK() 953 PetscCall(MatGetRowIJ(Aloc, 0, PETSC_FALSE, PETSC_FALSE, &dummy, &ai, &aj, &flg)); in MatLUFactorNumeric_STRUMPACK() 955 PetscCall(MatSeqAIJGetArrayRead(Aloc, &av)); in MatLUFactorNumeric_STRUMPACK() 965 PetscCall(MatRestoreRowIJ(Aloc, 0, PETSC_FALSE, PETSC_FALSE, &dummy, &ai, &aj, &flg)); in MatLUFactorNumeric_STRUMPACK() 967 PetscCall(MatSeqAIJRestoreArrayRead(Aloc, &av)); in MatLUFactorNumeric_STRUMPACK() 968 PetscCall(MatDestroy(&Aloc)); in MatLUFactorNumeric_STRUMPACK()
|
| /petsc/src/mat/impls/baij/mpi/ |
| H A D | mpibaij.c | 1052 Mat_SeqBAIJ *Aloc; in MatView_MPIBAIJ_ASCIIorDraworSocket() local 1070 Aloc = (Mat_SeqBAIJ *)baij->A->data; in MatView_MPIBAIJ_ASCIIorDraworSocket() 1071 ai = Aloc->i; in MatView_MPIBAIJ_ASCIIorDraworSocket() 1072 aj = Aloc->j; in MatView_MPIBAIJ_ASCIIorDraworSocket() 1073 a = Aloc->a; in MatView_MPIBAIJ_ASCIIorDraworSocket() 1089 Aloc = (Mat_SeqBAIJ *)baij->B->data; in MatView_MPIBAIJ_ASCIIorDraworSocket() 1090 ai = Aloc->i; in MatView_MPIBAIJ_ASCIIorDraworSocket() 1091 aj = Aloc->j; in MatView_MPIBAIJ_ASCIIorDraworSocket() 1092 a = Aloc->a; in MatView_MPIBAIJ_ASCIIorDraworSocket() 1503 Mat_SeqBAIJ *Aloc; in MatTranspose_MPIBAIJ() local [all …]
|
| /petsc/src/mat/impls/sbaij/mpi/ |
| H A D | mpisbaij.c | 926 Mat_SeqSBAIJ *Aloc; in MatView_MPISBAIJ_ASCIIorDraworSocket() local 944 Aloc = (Mat_SeqSBAIJ *)baij->A->data; in MatView_MPISBAIJ_ASCIIorDraworSocket() 945 ai = Aloc->i; in MatView_MPISBAIJ_ASCIIorDraworSocket() 946 aj = Aloc->j; in MatView_MPISBAIJ_ASCIIorDraworSocket() 947 a = Aloc->a; in MatView_MPISBAIJ_ASCIIorDraworSocket()
|
| /petsc/src/mat/impls/aij/mpi/ |
| H A D | mpiaij.c | 1887 Mat_SeqAIJ *Aloc = (Mat_SeqAIJ *)a->A->data, *Bloc = (Mat_SeqAIJ *)a->B->data, *sub_B_diag; in MatTranspose_MPIAIJ() local 1899 ai = Aloc->i; in MatTranspose_MPIAIJ() 1900 aj = Aloc->j; in MatTranspose_MPIAIJ()
|