Lines Matching refs:ismax
524 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()
584 else if (pos >= ismax) max_no = 0; in MatCreateSubMatrices_MPIBAIJ()
585 else max_no = ismax - pos; in MatCreateSubMatrices_MPIBAIJ()
597 if (scall == MAT_INITIAL_MATRIX && ismax) { in MatCreateSubMatrices_MPIBAIJ()
604 for (i = 0; i < ismax; i++) { in MatCreateSubMatrices_MPIBAIJ()
613 PetscErrorCode MatCreateSubMatrices_MPIBAIJ_local(Mat C, PetscInt ismax, const IS isrow[], const IS… argument
654 …PetscCall(PetscMalloc5(ismax, &row2proc, ismax, &cmap, ismax, &rmap, ismax + 1, &allcolumns, ismax…
655 …PetscCall(PetscMalloc5(ismax, (PetscInt ***)&irow, ismax, (PetscInt ***)&icol, ismax, &nrow, ismax…
657 for (PetscInt i = 0; i < ismax; i++) {
688 for (PetscInt i = 0; i < ismax; i++) {
725 if (!ismax) { /* Get dummy submatrices and retrieve struct submatis1 */
757 for (PetscInt i = 0; i < ismax; i++) {
840 for (PetscInt i = 0; i < ismax; i++) {
978 for (PetscInt i = 0; i < ismax; i++) {
989 for (PetscInt i = 0; i < ismax; i++) {
1002 for (PetscInt i = 0; i < ismax; i++) jcnt += nrow[i];
1003 PetscCall(PetscMalloc1(ismax, &lens));
1004 if (ismax) PetscCall(PetscCalloc1(jcnt, &lens[0]));
1005 …for (PetscInt i = 1; i < ismax; i++) lens[i] = PetscSafePointerPlusOffset(lens[i - 1], nrow[i - 1]…
1008 for (PetscInt i = 0; i < ismax; i++) {
1057 for (PetscInt i = 0; i < ismax; i++) {
1135 for (PetscInt i = 0; i < ismax; i++) {
1182 if (!ismax) { /* Create dummy submats[0] for reuse struct subc */
1220 if (ismax) PetscCall(PetscFree(lens[0]));
1285 for (PetscInt i = 0; i < ismax; i++) {
1487 for (PetscInt i = 0; i < ismax; i++) {
1518 for (PetscInt i = 0; i < ismax; i++) {
1523 for (PetscInt i = 0; i < ismax; i++) {