Searched refs:lcolors (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/mat/graphops/color/impls/greedy/ |
| H A D | greedy.c | 27 PetscInt *lcolors, *ocolors; in GreedyColoringLocalDistanceOne_Private() local 76 PetscCall(PetscMalloc1(n, &lcolors)); 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() 98 ccol = lcolors[cidx[j]]; in GreedyColoringLocalDistanceOne_Private() 135 lcolors[idx] = pcol; in GreedyColoringLocalDistanceOne_Private() 142 PetscCall(PetscSFBcastBegin(sf, MPIU_INT, lcolors, ocolors, MPI_REPLACE)); in GreedyColoringLocalDistanceOne_Private() 143 PetscCall(PetscSFBcastEnd(sf, MPIU_INT, lcolors, ocolors, MPI_REPLACE)); in GreedyColoringLocalDistanceOne_Private() 150 … if ((ocolors[cidx[j]] == lcolors[i]) && (owts[cidx[j]] > wts[i]) && lcolors[i] < maxcolors) { in GreedyColoringLocalDistanceOne_Private() [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plex.c | 1149 char **names, **colors, **lcolors; in DMPlexView_Ascii() local 1166 PetscCall(PetscCalloc3(numLabels, &names, numColors, &colors, numLColors, &lcolors)); in DMPlexView_Ascii() 1185 …iewer)->options, ((PetscObject)viewer)->prefix, "-dm_plex_view_lcolors", lcolors, &numLColors, &us… in DMPlexView_Ascii() 1188 for (c = 0; c < numLColors; ++c) PetscCall(PetscStrallocpy(deflcolors[c], &lcolors[c])); in DMPlexView_Ascii() 1297 color = lcolors[l % numLColors]; in DMPlexView_Ascii() 1346 color = lcolors[l % numLColors]; in DMPlexView_Ascii() 1367 color = lcolors[l % numLColors]; in DMPlexView_Ascii() 1465 color = lcolors[l % numLColors]; in DMPlexView_Ascii() 1524 for (c = 0; c < numLColors; ++c) PetscCall(PetscFree(lcolors[c])); in DMPlexView_Ascii() 1525 PetscCall(PetscFree3(names, colors, lcolors)); in DMPlexView_Ascii()
|