Home
last modified time | relevance | path

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

/petsc/src/mat/impls/dense/mpi/
H A Dmmdense.c25 PetscErrorCode MatCreateSubMatrices_MPIDense(Mat C, PetscInt ismax, const IS isrow[], const IS isco… in MatCreateSubMatrices_MPIDense() argument
31 if (scall != MAT_REUSE_MATRIX) PetscCall(PetscCalloc1(ismax + 1, submat)); in MatCreateSubMatrices_MPIDense()
35 nstages = ismax / nmax + ((ismax % nmax) ? 1 : 0); in MatCreateSubMatrices_MPIDense()
41 if (pos + nmax <= ismax) max_no = nmax; in MatCreateSubMatrices_MPIDense()
42 else if (pos == ismax) max_no = 0; in MatCreateSubMatrices_MPIDense()
43 else max_no = ismax - pos; in MatCreateSubMatrices_MPIDense()
50 static PetscErrorCode MatCreateSubMatrices_MPIDense_Local(Mat C, PetscInt ismax, const IS isrow[], … in MatCreateSubMatrices_MPIDense_Local() argument
80 for (PetscInt i = 0; i < ismax; i++) { in MatCreateSubMatrices_MPIDense_Local()
87 …PetscCall(PetscMalloc5(ismax, (PetscInt ***)&irow, ismax, (PetscInt ***)&icol, ismax, &nrow, ismax in MatCreateSubMatrices_MPIDense_Local()
88 for (PetscInt i = 0; i < ismax; i++) { in MatCreateSubMatrices_MPIDense_Local()
[all …]
/petsc/src/mat/impls/baij/mpi/
H A Dbaijov.c524 PetscErrorCode MatCreateSubMatrices_MPIBAIJ(Mat C, PetscInt ismax, const IS isrow[], const IS iscol… in MatCreateSubMatrices_MPIBAIJ() argument
539 for (i = 0; i < ismax; i++) { in MatCreateSubMatrices_MPIBAIJ()
549 PetscCall(PetscMalloc2(ismax, &isrow_block, ismax, &iscol_block)); in MatCreateSubMatrices_MPIBAIJ()
550 PetscCall(ISCompressIndicesGeneral(C->rmap->N, C->rmap->n, bs, ismax, isrow, isrow_block)); in MatCreateSubMatrices_MPIBAIJ()
552 for (i = 0; i < ismax; i++) { in MatCreateSubMatrices_MPIBAIJ()
556 } else PetscCall(ISCompressIndicesGeneral(N, C->cmap->n, bs, ismax, iscol, iscol_block)); in MatCreateSubMatrices_MPIBAIJ()
564 nstages = ismax / nmax + ((ismax % nmax) ? 1 : 0); /* local nstages */ in MatCreateSubMatrices_MPIBAIJ()
570 PetscCall(PetscCalloc1(ismax + nstages, submat)); in MatCreateSubMatrices_MPIBAIJ()
572 if (ismax) { in MatCreateSubMatrices_MPIBAIJ()
583 if (pos + nmax <= ismax) max_no = nmax; in MatCreateSubMatrices_MPIBAIJ()
[all …]
/petsc/src/mat/impls/aij/mpi/
H A Dmpiov.c1213 PetscErrorCode MatCreateSubMatrices_MPIAIJ_SingleIS_Local(Mat C, PetscInt ismax, const IS isrow[], … in MatCreateSubMatrices_MPIAIJ_SingleIS_Local() argument
1247 PetscValidLogicalCollectiveInt(C, ismax, 2); in MatCreateSubMatrices_MPIAIJ_SingleIS_Local()
1249 …PetscCheck(ismax == 1, PETSC_COMM_SELF, PETSC_ERR_SUP, "This routine only works when all processes… in MatCreateSubMatrices_MPIAIJ_SingleIS_Local()
1919 static PetscErrorCode MatCreateSubMatrices_MPIAIJ_SingleIS(Mat C, PetscInt ismax, const IS isrow[],… in MatCreateSubMatrices_MPIAIJ_SingleIS() argument
1933 …PetscCall(MatCreateSubMatrices_MPIAIJ_SingleIS_Local(C, ismax, isrow, iscol, scall, allcolumns, *s… in MatCreateSubMatrices_MPIAIJ_SingleIS()
1937 PetscErrorCode MatCreateSubMatrices_MPIAIJ(Mat C, PetscInt ismax, const IS isrow[], const IS iscol[… in MatCreateSubMatrices_MPIAIJ() argument
1947 PetscCall(MatCreateSubMatrices_MPIAIJ_SingleIS(C, ismax, isrow, iscol, scall, submat)); in MatCreateSubMatrices_MPIAIJ()
1959 if (ismax == 1 && C->rmap->N == C->cmap->N) { in MatCreateSubMatrices_MPIAIJ()
1976 nstages = ismax / nmax + ((ismax % nmax) ? 1 : 0); /* local nstages */ in MatCreateSubMatrices_MPIAIJ()
1985 if (ismax) { in MatCreateSubMatrices_MPIAIJ()
[all …]