Searched refs:maxcolors (Results 1 – 5 of 5) sorted by relevance
| /petsc/src/mat/graphops/color/interface/ |
| H A D | matcoloring.c | 82 mc->maxcolors = IS_COLORING_MAX; in MatColoringCreate() 189 PetscInt dist, maxcolors; in MatColoringSetFromOptions() local 195 PetscCall(MatColoringGetMaxColors(mc, &maxcolors)); in MatColoringSetFromOptions() 207 …t the end. 1 returns an independent set", "MatColoringSetMaxColors", maxcolors, &maxcolors, &flg)); in MatColoringSetFromOptions() 208 if (flg) PetscCall(MatColoringSetMaxColors(mc, maxcolors)); in MatColoringSetFromOptions() 302 PetscErrorCode MatColoringSetMaxColors(MatColoring mc, PetscInt maxcolors) in MatColoringSetMaxColors() argument 306 mc->maxcolors = maxcolors; in MatColoringSetMaxColors() 325 PetscErrorCode MatColoringGetMaxColors(MatColoring mc, PetscInt *maxcolors) in MatColoringGetMaxColors() argument 329 if (maxcolors) *maxcolors = mc->maxcolors; in MatColoringGetMaxColors() 411 if (mc->maxcolors > 0) { in MatColoringView() [all …]
|
| /petsc/src/mat/graphops/color/impls/greedy/ |
| H A D | greedy.c | 19 …PetscInt i, j, k, s, e, n, no, nd, nd_global, n_global, idx, ncols, maxcolors, masksize, cc… in GreedyColoringLocalDistanceOne_Private() local 68 PetscCall(MatColoringGetMaxColors(mc, &maxcolors)); in GreedyColoringLocalDistanceOne_Private() 72 for (i = 0; i < no; i++) ocolors[i] = maxcolors; in GreedyColoringLocalDistanceOne_Private() 77 for (i = 0; i < n; i++) lcolors[i] = maxcolors; in GreedyColoringLocalDistanceOne_Private() 93 if (lcolors[idx] == maxcolors) { in GreedyColoringLocalDistanceOne_Private() 97 if (lcolors[cidx[j]] != maxcolors) { in GreedyColoringLocalDistanceOne_Private() 115 if (ocolors[cidx[j]] != maxcolors) { in GreedyColoringLocalDistanceOne_Private() 134 if (pcol > maxcolors) pcol = maxcolors; in GreedyColoringLocalDistanceOne_Private() 150 … if ((ocolors[cidx[j]] == lcolors[i]) && (owts[cidx[j]] > wts[i]) && lcolors[i] < maxcolors) { in GreedyColoringLocalDistanceOne_Private() 151 lcolors[i] = maxcolors; in GreedyColoringLocalDistanceOne_Private() [all …]
|
| /petsc/src/mat/graphops/color/utils/ |
| H A D | valid.c | 19 PetscInt *stateleafrow, *stateleafcol, nleafrows, nleafcols, idx, nentries, maxcolors; in MatColoringTest() local 23 PetscCall(MatColoringGetMaxColors(mc, &maxcolors)); in MatColoringTest() 36 if (l > maxcolors) break; in MatColoringTest()
|
| /petsc/src/mat/graphops/color/impls/jp/ |
| H A D | jp.c | 255 if (colormask[j] != cidx || j >= mc->maxcolors) { in MCJPInitialLocalColor_Private() 436 if (mc->maxcolors > mincolor[i]) { in MatColoringApply_JP() 439 color[i] = (ISColoringValue)mc->maxcolors; in MatColoringApply_JP()
|
| /petsc/include/petsc/private/ |
| H A D | matimpl.h | 690 …PetscInt maxcolors; /* the maximum number of colors returned, maxcolors=1 for MIS … member
|