| /petsc/src/mat/tests/ |
| H A D | ex240.c | 9 PetscInt N, mx = 5, my = 4, i, j, nc, nrow, n, ncols, rstart, *colors, *map; in main() local 38 PetscCall(PetscMalloc1(N, &colors)); in main() 39 for (i = 0; i < N; i++) colors[i] = -1; in main() 40 for (i = 0; i < n; i++) colors[map[i]] = icolors[i]; in main() 43 …(PetscSynchronizedPrintf(PETSC_COMM_WORLD, "%" PetscInt_FMT " %" PetscInt_FMT "\n", i, colors[i])); in main() 55 …PetscCheck(colors[cols[j]] >= 0, PETSC_COMM_WORLD, PETSC_ERR_PLIB, "Global column %" PetscInt_FMT … in main() 56 cm[i + nrow * colors[cols[j]]] = vals[j]; in main() 89 PetscCall(PetscFree(colors)); in main()
|
| /petsc/src/mat/graphops/color/impls/natural/ |
| H A D | natural.c | 7 ISColoringValue *colors; in MatColoringApply_Natural() local 37 PetscCall(PetscMalloc1(end - start + 1, &colors)); in MatColoringApply_Natural() 38 for (i = start; i < end; i++) colors[i - start] = (ISColoringValue)i; in MatColoringApply_Natural() 39 PetscCall(ISColoringCreate(comm, n, end - start, colors, PETSC_OWN_POINTER, iscoloring)); in MatColoringApply_Natural() 52 for (i = rstart; i < rend; i++) colors_loc[i - rstart] = iscoloring_seq->colors[i]; in MatColoringApply_Natural()
|
| /petsc/src/vec/is/is/utils/ |
| H A D | iscoloring.c | 89 if ((*iscoloring)->allocated) PetscCall(PetscFree((*iscoloring)->colors)); in ISColoringDestroy() 199 …ColoringGetColors(ISColoring iscoloring, PetscInt *n, PetscInt *nc, const ISColoringValue **colors) in ISColoringGetColors() argument 206 if (colors) *colors = iscoloring->colors; in ISColoringGetColors() 239 ISColoringValue *colors = iscoloring->colors; in ISColoringGetIS() local 243 …colors[i]) < nc, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Coloring is our of range index %" Pet… in ISColoringGetIS() 248 for (i = 0; i < n; i++) mcolors[colors[i]]++; in ISColoringGetIS() 258 for (i = 0; i < n; i++) ii[colors[i]][mcolors[colors[i]]++] = i + base; /* global idx */ in ISColoringGetIS() 260 for (i = 0; i < n; i++) ii[colors[i]][mcolors[colors[i]]++] = i; /* local idx */ in ISColoringGetIS() 327 …reate(MPI_Comm comm, PetscInt ncolors, PetscInt n, const ISColoringValue colors[], PetscCopyMode m… in ISColoringCreate() argument 360 if (ncwork < colors[i]) ncwork = colors[i]; in ISColoringCreate() [all …]
|
| H A D | isdiff.c | 561 PetscInt ncolors, *colors, leni, len, *xinds, *yinds, k; in ISListToPair() local 565 PetscCall(PetscMalloc1(listlen, &colors)); in ISListToPair() 566 …scCall(PetscObjectsListGetGlobalNumbering(comm, listlen, (PetscObject *)islist, &ncolors, colors)); in ISListToPair() 580 yinds[k] = colors[i]; in ISListToPair() 584 PetscCall(PetscFree(colors)); in ISListToPair() 621 PetscInt *inds, *colors, llen, ilen, lstart, lend, lcount, l; in ISPairToList() local 641 PetscCall(PetscMalloc2(ilen, &inds, llen, &colors)); in ISPairToList() 643 PetscCall(PetscArraycpy(colors, ccolors, llen)); in ISPairToList() 644 PetscCall(PetscSortIntWithArray(llen, colors, inds)); in ISPairToList() 652 while (lend < llen && colors[lend] == colors[lstart]) ++lend; in ISPairToList() [all …]
|
| /petsc/src/mat/tests/output/ |
| H A D | ex240_2.out | 1 [0]Global colors 22 [1]Global colors 43 [2]Global colors 64 [3]Global colors 85 [4]Global colors
|
| H A D | ex240_1.out | 1 [0]Global colors 22 [1]Global colors
|
| /petsc/share/petsc/saws/js/ |
| H A D | matrixTex.js | 16 var color = colors[depth%colors.length]; 25 var color = colors[depth%colors.length];
|
| H A D | main.js | 14 var colors = ["black","red","blue","green"]; variable
|
| H A D | drawDiagrams.js | 37 var colors = ["green","blue","red"]; 59 …+side)+","+(curr_y+side)+" "+curr_x+","+(curr_y+side)+"\" style=\"fill:"+colors[colorNum]+";stroke…
|
| /petsc/src/sys/classes/draw/utils/ |
| H A D | lgc.c | 194 PetscErrorCode PetscDrawLGSetColors(PetscDrawLG lg, const int colors[]) in PetscDrawLGSetColors() argument 198 if (lg->dim) PetscAssertPointer(colors, 2); in PetscDrawLGSetColors() 200 PetscCall(PetscFree(lg->colors)); in PetscDrawLGSetColors() 201 PetscCall(PetscMalloc1(lg->dim, &lg->colors)); in PetscDrawLGSetColors() 202 PetscCall(PetscArraycpy(lg->colors, colors, lg->dim)); in PetscDrawLGSetColors() 292 PetscCall(PetscFree(lg->colors)); in PetscDrawLGSetDimension() 423 PetscCall(PetscFree((*lg)->colors)); in PetscDrawLGDestroy() 501 cl = lg->colors ? lg->colors[i] : ((PETSC_DRAW_BLACK + i) % PETSC_DRAW_MAXCOLOR); in PetscDrawLGDraw() 533 cl = lg->colors ? lg->colors[i] : (PETSC_DRAW_BLACK + i); in PetscDrawLGDraw()
|
| /petsc/src/ts/tests/output/ |
| H A D | ex5_3.out | 4 DMColoring generates 25 colors 10 Number of colors 15
|
| H A D | ex5.out | 4 DMColoring generates 25 colors
|
| /petsc/src/mat/graphops/color/utils/ |
| H A D | valid.c | 12 IS *colors; in MatColoringTest() local 26 PetscCall(ISColoringGetIS(coloring, PETSC_USE_POINTER, &ncolors, &colors)); in MatColoringTest() 38 PetscCall(ISGetLocalSize(colors[l], &nindices)); in MatColoringTest() 39 PetscCall(ISGetIndices(colors[l], &indices)); in MatColoringTest() 41 PetscCall(ISRestoreIndices(colors[l], &indices)); in MatColoringTest() 87 PetscCall(ISRestoreIndices(colors[l], &indices)); in MatColoringTest()
|
| /petsc/share/petsc/bin/ |
| H A D | dmnetwork_view.py | 75 class BiasNorm(matplotlib.colors.Normalize): 77 matplotlib.colors.Normalize.__init__(self, vmin, vmax) 88 self.norm = matplotlib.colors.TwoSlopeNorm(0, normMinVal, normMaxVal) 299 colors=edgeColors, 352 colors = opts.nodeColorParser 353 if colors.hasColorBar: 354 norm = colors.norm 355 ylow = colors.normMinVal or 0 356 yhigh = colors.normMaxVal or 0 368 cbar = plt.colorbar(matplotlib.cm.ScalarMappable(norm=norm, cmap=colors.colormap), ax=axis) [all …]
|
| /petsc/src/mat/graphops/color/impls/greedy/ |
| H A D | greedy.c | 17 …gLocalDistanceOne_Private(MatColoring mc, PetscReal *wts, PetscInt *lperm, ISColoringValue *colors) in GreedyColoringLocalDistanceOne_Private() argument 160 for (i = 0; i < n; i++) colors[i] = (ISColoringValue)lcolors[i]; in GreedyColoringLocalDistanceOne_Private() 170 …gLocalDistanceTwo_Private(MatColoring mc, PetscReal *wts, PetscInt *lperm, ISColoringValue *colors) in GreedyColoringLocalDistanceTwo_Private() argument 478 for (i = 0; i < n; i++) PetscCall(ISColoringValueCast(dcolors[i], colors + i)); in GreedyColoringLocalDistanceTwo_Private() 489 ISColoringValue *colors; in MatColoringApply_Greedy() local 504 PetscCall(PetscMalloc1(ncols, &colors)); in MatColoringApply_Greedy() 506 PetscCall(GreedyColoringLocalDistanceOne_Private(mc, wts, lperm, colors)); in MatColoringApply_Greedy() 508 PetscCall(GreedyColoringLocalDistanceTwo_Private(mc, wts, lperm, colors)); in MatColoringApply_Greedy() 512 if (colors[i] > finalcolor) finalcolor = colors[i]; in MatColoringApply_Greedy() 517 …PetscCall(ISColoringCreate(PetscObjectComm((PetscObject)mc), finalcolor_global + 1, ncols, colors,… in MatColoringApply_Greedy()
|
| /petsc/src/mat/graphops/color/impls/jp/ |
| H A D | jp.c | 129 …scErrorCode MCJPInitialLocalColor_Private(MatColoring mc, PetscInt *lperm, ISColoringValue *colors) in MCJPInitialLocalColor_Private() argument 239 if (colors[idx] < IS_COLORING_MAX) colormask[colors[idx]] = cidx; in MCJPInitialLocalColor_Private() 256 PetscCall(ISColoringValueCast(j, &colors[cidx])); in MCJPInitialLocalColor_Private() 267 …Private(MatColoring mc, ISColoringValue maxcolor, const ISColoringValue *colors, ISColoringValue *… in MCJPMinColor_Private() argument 336 …if (colors[i] < maskbase + maskradix && colors[i] >= maskbase) cmask[i] = 1 << (colors[i] - maskba… in MCJPMinColor_Private()
|
| /petsc/src/tao/leastsquares/tutorials/matlab/more_wild_probs/ |
| H A D | perf_profile.m | 55 % Other colors, lines, and markers are easily possible: 56 colors = ['b' 'r' 'k' 'm' 'c' 'g' 'y']; lines = {'-' '-.' '--'}; variable 81 option1 = [char(lines(sl)) colors(sc) markers(sm)];
|
| /petsc/src/snes/tutorials/output/ |
| H A D | ex19_greedy_coloring.out | 7 Number of colors 32
|
| /petsc/src/binding/petsc4py/demo/regressor/ |
| H A D | test_regressor_synthetic.py | 9 import matplotlib.colors 37 color_map_discrete = matplotlib.colors.LinearSegmentedColormap.from_list("", ["red","cyan","magenta…
|
| /petsc/src/dm/impls/da/ |
| H A D | fdda.c | 266 ISColoringValue *colors; in DMCreateColoring_DA_2d_MPIAIJ() local 287 PetscCall(PetscMalloc1(nc * nx * ny, &colors)); in DMCreateColoring_DA_2d_MPIAIJ() 291 …k < nc; k++) PetscCall(ISColoringValueCast(k + nc * ((i % col) + col * (j % col)), colors + ii++)); in DMCreateColoring_DA_2d_MPIAIJ() 295 …PetscCall(ISColoringCreate(comm, ncolors, nc * nx * ny, colors, PETSC_OWN_POINTER, &dd->localcolor… in DMCreateColoring_DA_2d_MPIAIJ() 300 PetscCall(PetscMalloc1(nc * gnx * gny, &colors)); in DMCreateColoring_DA_2d_MPIAIJ() 306 …ingValueCast(k + nc * ((SetInRange(i, m) % col) + col * (SetInRange(j, n) % col)), colors + ii++)); in DMCreateColoring_DA_2d_MPIAIJ() 311 …PetscCall(ISColoringCreate(comm, ncolors, nc * gnx * gny, colors, PETSC_OWN_POINTER, &dd->ghostedc… in DMCreateColoring_DA_2d_MPIAIJ() 330 ISColoringValue *colors; in DMCreateColoring_DA_3d_MPIAIJ() local 351 PetscCall(PetscMalloc1(nc * nx * ny * nz, &colors)); in DMCreateColoring_DA_3d_MPIAIJ() 356 …SColoringValueCast(l + nc * ((i % col) + col * (j % col) + col * col * (k % col)), colors + ii++)); in DMCreateColoring_DA_3d_MPIAIJ() [all …]
|
| /petsc/src/dm/impls/redundant/ |
| H A D | dmredundant.c | 179 ISColoringValue *colors; in DMCreateColoring_Redundant() local 192 PetscCall(PetscMalloc1(nloc, &colors)); in DMCreateColoring_Redundant() 193 for (i = 0; i < nloc; i++) PetscCall(ISColoringValueCast(i, colors + i)); in DMCreateColoring_Redundant() 194 …PetscCall(ISColoringCreate(PetscObjectComm((PetscObject)dm), red->N, nloc, colors, PETSC_OWN_POINT… in DMCreateColoring_Redundant()
|
| /petsc/doc/changes/ |
| H A D | 231.md | 68 256 colors, short gives max of 65536 colors
|
| /petsc/src/mat/graphops/color/impls/minpack/ |
| H A D | color.c | 93 for (i = rstart; i < rend; i++) colors_loc[i - rstart] = iscoloring_seq->colors[i]; in MatColoringApply_SL() 195 for (i = rstart; i < rend; i++) colors_loc[i - rstart] = iscoloring_seq->colors[i]; in MatColoringApply_LF() 297 for (i = rstart; i < rend; i++) colors_loc[i - rstart] = iscoloring_seq->colors[i]; in MatColoringApply_ID()
|
| /petsc/src/ts/tutorials/phasefield/ |
| H A D | heat.c | 284 int colors[] = {PETSC_DRAW_YELLOW, PETSC_DRAW_RED, PETSC_DRAW_BLUE}; in MyMonitor() local 322 PetscCall(PetscDrawLGSetColors(lg, colors + 1)); in MyMonitor() 368 PetscCall(PetscDrawLGSetColors(lg, colors)); in MyMonitor()
|
| /petsc/include/petsc/private/ |
| H A D | isimpl.h | 96 ISColoringValue *colors; /* for each column indicates color */ member
|