Lines Matching refs:bcols

22     c->bcols = 1;  in MatFDColoringCreate_SeqXAIJ()
26 PetscInt nz, brows, bcols; in MatFDColoringCreate_SeqXAIJ() local
37 bcols = (PetscInt)(0.5 * mem / (m * sizeof(PetscScalar))); in MatFDColoringCreate_SeqXAIJ()
38 if (!bcols) bcols = 1; in MatFDColoringCreate_SeqXAIJ()
39 brows = 1000 / bcols; in MatFDColoringCreate_SeqXAIJ()
40 if (bcols > nis) bcols = nis; in MatFDColoringCreate_SeqXAIJ()
43 c->bcols = bcols; in MatFDColoringCreate_SeqXAIJ()
64 PetscInt i, j, nrows, nbcols, brows = c->brows, bcols = c->bcols, mbs = c->m, nis = c->ncolors; in MatFDColoringSetUpBlocked_AIJ_Private() local
69 PetscCall(PetscMalloc2(bcols + 1, &color_start, bcols, &row_start)); in MatFDColoringSetUpBlocked_AIJ_Private()
71 PetscCall(PetscMalloc1(bcols * mat->rmap->n, &c->dy)); in MatFDColoringSetUpBlocked_AIJ_Private()
75 color_start[bcols] = 0; in MatFDColoringSetUpBlocked_AIJ_Private()
81 for (i = 0; i < nis; i += bcols) { /* loop over colors */ in MatFDColoringSetUpBlocked_AIJ_Private()
82 if (i + bcols > nis) { in MatFDColoringSetUpBlocked_AIJ_Private()
83 color_start[nis - i] = color_start[bcols]; in MatFDColoringSetUpBlocked_AIJ_Private()
84 bcols = nis - i; in MatFDColoringSetUpBlocked_AIJ_Private()
87 color_start[0] = color_start[bcols]; in MatFDColoringSetUpBlocked_AIJ_Private()
88 for (j = 0; j < bcols; j++) { in MatFDColoringSetUpBlocked_AIJ_Private()
97 for (j = 0; j < bcols; j++) { /* loop over block columns */ in MatFDColoringSetUpBlocked_AIJ_Private()
126 for (i = 0; i < nis; i += bcols) { /* loop over colors */ in MatFDColoringSetUpBlocked_AIJ_Private()
127 if (i + bcols > nis) { in MatFDColoringSetUpBlocked_AIJ_Private()
128 color_start[nis - i] = color_start[bcols]; in MatFDColoringSetUpBlocked_AIJ_Private()
129 bcols = nis - i; in MatFDColoringSetUpBlocked_AIJ_Private()
132 color_start[0] = color_start[bcols]; in MatFDColoringSetUpBlocked_AIJ_Private()
133 for (j = 0; j < bcols; j++) { in MatFDColoringSetUpBlocked_AIJ_Private()
142 for (j = 0; j < bcols; j++) { /* loop over block columns */ in MatFDColoringSetUpBlocked_AIJ_Private()
281 if (c->bcols > 1) { /* reorder Jentry for faster MatFDColoringApply() */ in MatFDColoringSetUp_SeqXAIJ()
298 …brows %" PetscInt_FMT " and bcols %" PetscInt_FMT " are used.\n", c->ncolors, c->brows, c->bcols)); in MatFDColoringSetUp_SeqXAIJ()