Lines Matching refs:ncols

85   PetscInt           r, c, ncols;  in PCGAMGCreateGraph_Classical()  local
111 PetscCall(MatGetRow(A, r, &ncols, &rcol, &rval)); in PCGAMGCreateGraph_Classical()
112 for (c = 0; c < ncols; c++) { in PCGAMGCreateGraph_Classical()
116 if (ncols > cmax) cmax = ncols; in PCGAMGCreateGraph_Classical()
120 for (c = 0; c < ncols; c++) { in PCGAMGCreateGraph_Classical()
129 PetscCall(MatRestoreRow(A, r, &ncols, &rcol, &rval)); in PCGAMGCreateGraph_Classical()
142 PetscCall(MatGetRow(A, r, &ncols, &rcol, &rval)); in PCGAMGCreateGraph_Classical()
144 for (c = 0; c < ncols; c++) { in PCGAMGCreateGraph_Classical()
153 PetscCall(MatRestoreRow(A, r, &ncols, &rcol, &rval)); in PCGAMGCreateGraph_Classical()
190 PetscInt fn, cn, fs, fe, cs, ce, i, j, ncols, col, row_f, row_c, cmax = 0, idx, noff; in PCGAMGProlongator_Classical_Direct() local
259 PetscCall(MatGetRow(A, i, &ncols, &rcol, &rval)); in PCGAMGProlongator_Classical_Direct()
260 for (j = 0; j < ncols; j++) { in PCGAMGProlongator_Classical_Direct()
264 if (ncols > cmax) cmax = ncols; in PCGAMGProlongator_Classical_Direct()
265 PetscCall(MatRestoreRow(A, i, &ncols, &rcol, &rval)); in PCGAMGProlongator_Classical_Direct()
279 PetscCall(MatGetRow(lA, i, &ncols, &rcol, &rval)); in PCGAMGProlongator_Classical_Direct()
280 for (j = 0; j < ncols; j++) { in PCGAMGProlongator_Classical_Direct()
284 PetscCall(MatRestoreRow(lA, i, &ncols, &rcol, &rval)); in PCGAMGProlongator_Classical_Direct()
287 PetscCall(MatGetRow(gA, i, &ncols, &rcol, &rval)); in PCGAMGProlongator_Classical_Direct()
288 for (j = 0; j < ncols; j++) { in PCGAMGProlongator_Classical_Direct()
292 PetscCall(MatRestoreRow(gA, i, &ncols, &rcol, &rval)); in PCGAMGProlongator_Classical_Direct()
321 PetscCall(MatGetRow(lA, i, &ncols, &rcol, &rval)); in PCGAMGProlongator_Classical_Direct()
322 for (j = 0; j < ncols; j++) { in PCGAMGProlongator_Classical_Direct()
341 PetscCall(MatRestoreRow(lA, i, &ncols, &rcol, &rval)); in PCGAMGProlongator_Classical_Direct()
345 PetscCall(MatGetRow(gA, i, &ncols, &rcol, &rval)); in PCGAMGProlongator_Classical_Direct()
346 for (j = 0; j < ncols; j++) { in PCGAMGProlongator_Classical_Direct()
361 PetscCall(MatRestoreRow(gA, i, &ncols, &rcol, &rval)); in PCGAMGProlongator_Classical_Direct()
380 PetscCall(MatGetRow(lA, i, &ncols, &rcol, &rval)); in PCGAMGProlongator_Classical_Direct()
382 for (j = 0; j < ncols; j++) { in PCGAMGProlongator_Classical_Direct()
400 PetscCall(MatRestoreRow(lA, i, &ncols, &rcol, &rval)); in PCGAMGProlongator_Classical_Direct()
403 PetscCall(MatGetRow(gA, i, &ncols, &rcol, &rval)); in PCGAMGProlongator_Classical_Direct()
404 for (j = 0; j < ncols; j++) { in PCGAMGProlongator_Classical_Direct()
422 PetscCall(MatRestoreRow(gA, i, &ncols, &rcol, &rval)); in PCGAMGProlongator_Classical_Direct()
448 PetscInt ncols; in PCGAMGTruncateProlongator_Private() local
469 PetscCall(MatGetRow(*P, i, &ncols, &pcol, &pval)); in PCGAMGTruncateProlongator_Private()
470 if (ncols > cmax) cmax = ncols; in PCGAMGTruncateProlongator_Private()
473 for (j = 0; j < ncols; j++) { in PCGAMGTruncateProlongator_Private()
480 for (j = 0; j < ncols; j++) { in PCGAMGTruncateProlongator_Private()
489 PetscCall(MatRestoreRow(*P, i, &ncols, &pcol, &pval)); in PCGAMGTruncateProlongator_Private()
502 PetscCall(MatGetRow(*P, i, &ncols, &pcol, &pval)); in PCGAMGTruncateProlongator_Private()
505 for (j = 0; j < ncols; j++) { in PCGAMGTruncateProlongator_Private()
516 for (j = 0; j < ncols; j++) { in PCGAMGTruncateProlongator_Private()
531 for (j = 0; j < ncols; j++) { in PCGAMGTruncateProlongator_Private()
542 PetscCall(MatRestoreRow(*P, i, &ncols, &pcol, &pval)); in PCGAMGTruncateProlongator_Private()
562 PetscInt fs, fe, cs, ce, nl, i, j, k, li, lni, ci, ncols, maxcols, fn, cn, cid; in PCGAMGProlongator_Classical_Standard() local
632 PetscCall(MatGetRow(lA, i, &ncols, &icol, NULL)); in PCGAMGProlongator_Classical_Standard()
641 for (j = 0; j < ncols; j++) { in PCGAMGProlongator_Classical_Standard()
646 PetscCall(MatRestoreRow(lA, i, &ncols, &icol, NULL)); in PCGAMGProlongator_Classical_Standard()
647 PetscCall(MatGetRow(lA, ci, &ncols, &icol, NULL)); in PCGAMGProlongator_Classical_Standard()
648 for (k = 0; k < ncols; k++) { in PCGAMGProlongator_Classical_Standard()
651 PetscCall(MatRestoreRow(lA, ci, &ncols, &icol, NULL)); in PCGAMGProlongator_Classical_Standard()
652 PetscCall(MatGetRow(lA, i, &ncols, &icol, NULL)); in PCGAMGProlongator_Classical_Standard()
655 for (j = 0; j < ncols; j++) { in PCGAMGProlongator_Classical_Standard()
666 PetscCall(MatRestoreRow(lA, i, &ncols, &icol, NULL)); in PCGAMGProlongator_Classical_Standard()
667 PetscCall(MatGetRow(lA, ci, &ncols, &icol, NULL)); in PCGAMGProlongator_Classical_Standard()
668 for (k = 0; k < ncols; k++) { in PCGAMGProlongator_Classical_Standard()
679 PetscCall(MatRestoreRow(lA, ci, &ncols, &icol, NULL)); in PCGAMGProlongator_Classical_Standard()
680 PetscCall(MatGetRow(lA, i, &ncols, &icol, NULL)); in PCGAMGProlongator_Classical_Standard()
686 PetscCall(MatRestoreRow(lA, i, &ncols, &icol, &vcol)); in PCGAMGProlongator_Classical_Standard()
705 PetscCall(MatGetRow(lA, i, &ncols, &icol, &vcol)); in PCGAMGProlongator_Classical_Standard()
706 for (j = 0; j < ncols; j++) { in PCGAMGProlongator_Classical_Standard()
715 PetscCall(MatRestoreRow(lA, i, &ncols, &icol, &vcol)); in PCGAMGProlongator_Classical_Standard()
716 PetscCall(MatGetRow(lA, ci, &ncols, &icol, &vcol)); in PCGAMGProlongator_Classical_Standard()
719 for (k = 0; k < ncols; k++) { in PCGAMGProlongator_Classical_Standard()
722 for (k = 0; k < ncols; k++) { in PCGAMGProlongator_Classical_Standard()
730 for (k = 0; k < ncols; k++) { in PCGAMGProlongator_Classical_Standard()
739 PetscCall(MatRestoreRow(lA, ci, &ncols, &icol, &vcol)); in PCGAMGProlongator_Classical_Standard()
740 PetscCall(MatGetRow(lA, i, &ncols, &icol, &vcol)); in PCGAMGProlongator_Classical_Standard()
747 for (j = 0; j < ncols; j++) { in PCGAMGProlongator_Classical_Standard()
760 PetscCall(MatRestoreRow(lA, i, &ncols, &icol, &vcol)); in PCGAMGProlongator_Classical_Standard()
761 PetscCall(MatGetRow(lA, ci, &ncols, &icol, &vcol)); in PCGAMGProlongator_Classical_Standard()
762 for (k = 0; k < ncols; k++) { in PCGAMGProlongator_Classical_Standard()
773 PetscCall(MatRestoreRow(lA, ci, &ncols, &icol, &vcol)); in PCGAMGProlongator_Classical_Standard()
774 PetscCall(MatGetRow(lA, i, &ncols, &icol, &vcol)); in PCGAMGProlongator_Classical_Standard()
778 PetscCall(MatRestoreRow(lA, i, &ncols, &icol, &vcol)); in PCGAMGProlongator_Classical_Standard()
805 PetscInt ncols; in PCGAMGOptProlongator_Classical_Jacobi() local
826 PetscCall(MatGetRow(*P, i, &ncols, &pcols, &pvals)); in PCGAMGOptProlongator_Classical_Jacobi()
828 if (ncols == 1) { in PCGAMGOptProlongator_Classical_Jacobi()
834 PetscCall(MatRestoreRow(*P, i, &ncols, &pcols, &pvals)); in PCGAMGOptProlongator_Classical_Jacobi()