| /petsc/src/sys/classes/draw/utils/ |
| H A D | lgc.c | 75 PetscReal xmin, xmax, ymin, ymax; in PetscDrawLGSPDraw() local 94 ymax = PetscMax(lg->ymax, sp->ymax); in PetscDrawLGSPDraw() 95 PetscCall(PetscDrawAxisSetLimits(lg->axis, xmin, xmax, ymin, ymax)); in PetscDrawLGSPDraw() 167 lg->ymax = -1.e20; in PetscDrawLGCreate() 366 (lg)->ymax = y_max; in PetscDrawLGSetLimits() 389 lg->ymax = -1.e20; in PetscDrawLGReset() 469 PetscReal xmin, xmax, ymin, ymax; in PetscDrawLGDraw() local 487 ymax = lg->ymax; in PetscDrawLGDraw() 489 if (ymax - ymin < PETSC_SMALL) { in PetscDrawLGDraw() 490 ymin -= 0.1 * ymax; in PetscDrawLGDraw() [all …]
|
| H A D | bars.c | 50 h->ymax = 0.; in PetscDrawBarCreate() 136 PetscReal xmin, xmax, ymin, ymax, *values, binLeft, binRight; in PetscDrawBarDraw() local 156 if (bar->ymin == bar->ymax) { in PetscDrawBarDraw() 159 ymax = PETSC_MIN_REAL; in PetscDrawBarDraw() 162 ymax = PetscMax(ymax, values[i]); in PetscDrawBarDraw() 166 ymax = bar->ymax; in PetscDrawBarDraw() 191 PetscCall(PetscDrawAxisSetLimits(bar->axis, xmin, xmax, ymin, ymax)); in PetscDrawBarDraw() 308 bar->ymax = y_max; in PetscDrawBarSetLimits()
|
| H A D | hists.c | 17 PetscReal ymin, ymax; member 76 h->ymax = 1.e-6; in PetscDrawHGCreate() 138 hist->ymax = 1.e-6; in PetscDrawHGReset() 308 …PetscReal xmin, xmax, ymin, ymax, *bins, *values, *weights, binSize, binLeft, binRight, maxHeigh… in PetscDrawHGDraw() local 321 if ((hist->xmin >= hist->xmax) || (hist->ymin >= hist->ymax)) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawHGDraw() 331 ymax = hist->ymax; in PetscDrawHGDraw() 354 if (maxHeight > ymax) ymax = hist->ymax = maxHeight; in PetscDrawHGDraw() 356 PetscCall(PetscDrawAxisSetLimits(hist->axis, xmin, xmax, ymin, ymax)); in PetscDrawHGDraw() 417 if (maxHeight > ymax) ymax = hist->ymax = maxHeight; in PetscDrawHGDraw() 419 PetscCall(PetscDrawAxisSetLimits(hist->axis, xmin, xmax, ymin, ymax)); in PetscDrawHGDraw() [all …]
|
| H A D | lg.c | 43 if (y[i] > lg->ymax) lg->ymax = y[i]; in PetscDrawLGAddCommonPoint() 99 if (y[i] > lg->ymax) lg->ymax = y[i]; in PetscDrawLGAddPoint() 160 if (y[i] > lg->ymax) lg->ymax = y[i]; in PetscDrawLGAddPoints()
|
| H A D | dscatter.c | 57 sp->ymax = (PetscReal)-1.e20; in PetscDrawSPCreate() 138 sp->ymax = (PetscReal)-1.e20; in PetscDrawSPReset() 214 if (y[i] > sp->ymax) sp->ymax = y[i]; in PetscDrawSPAddPoint() 272 if (y[i] > sp->ymax) sp->ymax = y[i]; in PetscDrawSPAddPoints() 326 if (y[i] > sp->ymax) sp->ymax = y[i]; in PetscDrawSPAddPointColorized() 373 PetscReal upper[2] = {sp->xmax, sp->ymax}, gupper[2]; in PetscDrawSPDraw() 442 sp->ymax = y_max; in PetscDrawSPSetLimits()
|
| H A D | zoom.c | 20 PetscReal dpause, xc, yc, scale = 1.0, w, h, xr, xl, yr, yl, xmin, xmax, ymin, ymax; in PetscDrawZoom() local 47 ymax = yr; in PetscDrawZoom() 81 PetscCall(PetscDrawSetCoordinates(draw, xmin, ymin, xmax, ymax)); in PetscDrawZoom()
|
| H A D | axisc.c | 163 …awAxisSetLimits(PetscDrawAxis axis, PetscReal xmin, PetscReal xmax, PetscReal ymin, PetscReal ymax) in PetscDrawAxisSetLimits() argument 171 axis->yhigh = ymax; in PetscDrawAxisSetLimits() 192 …isGetLimits(PetscDrawAxis axis, PetscReal *xmin, PetscReal *xmax, PetscReal *ymin, PetscReal *ymax) in PetscDrawAxisGetLimits() argument 199 if (ymax) *ymax = axis->yhigh; in PetscDrawAxisGetLimits()
|
| /petsc/src/dm/impls/da/ |
| H A D | da1.c | 62 double ymin = -1, ymax = 1, xmin = -1, xmax = dd->M, x; in DMView_DA_1d() local 73 PetscCall(PetscDrawSetCoordinates(draw, xmin, ymin, xmax, ymax)); in DMView_DA_1d() 80 ymax = 0.3; in DMView_DA_1d() 81 …) PetscCall(PetscDrawLine(draw, (double)xmin_tmp, ymin, (double)xmin_tmp, ymax, PETSC_DRAW_BLACK)); in DMView_DA_1d() 85 PetscCall(PetscDrawLine(draw, xmin, ymax, xmax, ymax, PETSC_DRAW_BLACK)); in DMView_DA_1d() 94 ymax = 0.3; in DMView_DA_1d() 98 PetscCall(PetscDrawLine(draw, xmin, ymin, xmin, ymax, PETSC_DRAW_RED)); in DMView_DA_1d() 99 PetscCall(PetscDrawLine(draw, xmin, ymax, xmax, ymax, PETSC_DRAW_RED)); in DMView_DA_1d() 100 PetscCall(PetscDrawLine(draw, xmax, ymin, xmax, ymax, PETSC_DRAW_RED)); in DMView_DA_1d()
|
| H A D | gr1.c | 25 …rdinates(DM da, PetscReal xmin, PetscReal xmax, PetscReal ymin, PetscReal ymax, PetscReal zmin, Pe… in DMDASetUniformCoordinates() argument 41 … 1) || !(ymax < ymin), PetscObjectComm((PetscObject)da), PETSC_ERR_ARG_INCOMP, "ymax must be large… in DMDASetUniformCoordinates() 56 if (by == DM_BOUNDARY_PERIODIC) hy = (ymax - ymin) / (N); in DMDASetUniformCoordinates() 57 else hy = (ymax - ymin) / (N - 1); in DMDASetUniformCoordinates() 70 if (by == DM_BOUNDARY_PERIODIC) hy = (ymax - ymin) / (N); in DMDASetUniformCoordinates() 71 else hy = (ymax - ymin) / (N - 1); in DMDASetUniformCoordinates() 93 PetscReal L[3] = {xmax - xmin, ymax - ymin, zmax - zmin}; in DMDASetUniformCoordinates()
|
| H A D | da2.c | 57 double ymin = -1 * dd->s - 1, ymax = dd->N + dd->s; in DMView_DA_2d() local 71 PetscCall(PetscDrawSetCoordinates(draw, xmin, ymin, xmax, ymax)); in DMView_DA_2d() 77 ymax = dd->N - 1; in DMView_DA_2d() 78 …for (xmin = 0; xmin < dd->M; xmin++) PetscCall(PetscDrawLine(draw, xmin, ymin, xmin, ymax, PETSC_D… in DMView_DA_2d() 92 ymax = dd->ye - 1; in DMView_DA_2d() 94 PetscCall(PetscDrawLine(draw, xmin, ymin, xmin, ymax, PETSC_DRAW_RED)); in DMView_DA_2d() 95 PetscCall(PetscDrawLine(draw, xmin, ymax, xmax, ymax, PETSC_DRAW_RED)); in DMView_DA_2d() 96 PetscCall(PetscDrawLine(draw, xmax, ymin, xmax, ymax, PETSC_DRAW_RED)); in DMView_DA_2d() 99 for (y = ymin; y <= ymax; y++) { in DMView_DA_2d() 116 ymax = dd->Ye; in DMView_DA_2d() [all …]
|
| H A D | gr2.c | 16 PetscReal xmin, xmax, ymin, ymax, min, max; member 96 double xmax = (double)zctx->xmax, ymax = (double)zctx->ymax; in VecView_MPI_Draw_DA2d_Zoom() local 101 PetscCall(PetscDrawString(draw, xmin, ymin - .05 * (ymax - ymin), PETSC_DRAW_BLACK, value)); in VecView_MPI_Draw_DA2d_Zoom() 105 …PetscCall(PetscDrawString(draw, xmax - len * w, ymin - .05 * (ymax - ymin), PETSC_DRAW_BLACK, valu… in VecView_MPI_Draw_DA2d_Zoom() 108 PetscCall(PetscSNPrintf(value, 16, "%0.2e", ymax)); in VecView_MPI_Draw_DA2d_Zoom() 109 PetscCall(PetscDrawString(draw, xmin - .05 * (xmax - xmin), ymax, PETSC_DRAW_BLACK, value)); in VecView_MPI_Draw_DA2d_Zoom() 216 PetscCall(VecStrideMax(xcoor, 1, NULL, &zctx.ymax)); in VecView_MPI_Draw_DA2d() 220 coors[1] = zctx.ymin - .05 * (zctx.ymax - zctx.ymin); in VecView_MPI_Draw_DA2d() 222 coors[3] = zctx.ymax + .05 * (zctx.ymax - zctx.ymin); in VecView_MPI_Draw_DA2d() 227 coors[3] = zctx.ymax; in VecView_MPI_Draw_DA2d()
|
| /petsc/src/ts/interface/ |
| H A D | tseig.c | 11 PetscReal xmin, xmax, ymin, ymax; member 77 (*ctx)->ymax = 1.1; in TSMonitorSPEigCtxCreate() 136 PetscReal xmin, xmax, ymin, ymax; in TSMonitorSPEig() local 139 PetscCall(PetscDrawSPSetLimits(drawsp, ctx->xmin, ctx->xmax, ctx->ymin, ctx->ymax)); in TSMonitorSPEig() 165 PetscCall(PetscDrawAxisGetLimits(axis, &xmin, &xmax, &ymin, &ymax)); in TSMonitorSPEig() 166 …PetscCall(PetscDrawIndicatorFunction(draw, xmin, xmax, ymin, ymax, PETSC_DRAW_CYAN, (PetscErrorCod… in TSMonitorSPEig()
|
| /petsc/src/ksp/ksp/interface/ |
| H A D | eige.c | 255 PetscReal xmin, xmax, ymin, ymax, *xloc, *yloc, *value, px0, py0, rscale, iscale; in KSPPlotEigenContours_Private() local 270 ymax = c[0]; in KSPPlotEigenContours_Private() 275 ymax = PetscMax(ymax, c[i]); in KSPPlotEigenContours_Private() 279 for (i = 0; i < N; i++) yloc[i] = ymin - 0.1 * (ymax - ymin) + 1.2 * (ymax - ymin) * i / (N - 1); in KSPPlotEigenContours_Private() 303 PetscCall(PetscDrawAxisSetLimits(drawaxis, xmin, xmax, ymin, ymax)); in KSPPlotEigenContours_Private()
|
| /petsc/src/dm/impls/network/ |
| H A D | networkmonitor.c | 119 …PetscInt blocksize, PetscReal xmin, PetscReal xmax, PetscReal ymin, PetscReal ymax, PetscBool hold) in DMNetworkMonitorAdd() argument 152 …& xmax != (PetscReal)PETSC_DECIDE) PetscCall(PetscDrawAxisSetLimits(axis, xmin, xmax, ymin, ymax)); in DMNetworkMonitorAdd() 153 else PetscCall(PetscDrawAxisSetLimits(axis, 0, nodes - 1, ymin, ymax)); in DMNetworkMonitorAdd()
|
| /petsc/src/sys/classes/draw/impls/x/ |
| H A D | xops.c | 19 int xa, ya, xb, yb, xmax = XiWin->w - 1, ymax = XiWin->h - 1; in PetscDrawSetViewport_X() local 24 ya = ymax - (int)(yr * (PetscReal)ymax); in PetscDrawSetViewport_X() 26 yb = ymax - (int)(yl * (PetscReal)ymax); in PetscDrawSetViewport_X() 290 int xmax = XiWin->w - 1, ymax = XiWin->h - 1; in PetscDrawClear_X() local 306 int xa = (int)(xl * xmax), ya = ymax - (int)(yr * ymax); in PetscDrawClear_X() 307 int xb = (int)(xr * xmax), yb = ymax - (int)(yl * ymax); in PetscDrawClear_X() 679 static int xavailable = 0, yavailable = 0, ybottom = 0, xmax = 0, ymax = 0; in PetscDrawCreate_X() local 694 PetscCall(PetscDrawXGetDisplaySize_Private(draw->display, &xmax, &ymax, &has_display)); in PetscDrawCreate_X() 736 h = draw->h = (ymax - 10); in PetscDrawCreate_X() 739 h = draw->h = (ymax - 20) / 2; in PetscDrawCreate_X() [all …]
|
| /petsc/src/benchmarks/streams/ |
| H A D | process.py | 59 ymax = min(size, 3*max(speedups)) 65 ax1.set_ylim([ymin,ymax])
|
| /petsc/src/sys/classes/draw/interface/ |
| H A D | drect.c | 22 …PetscDraw draw, PetscReal xmin, PetscReal xmax, PetscReal ymin, PetscReal ymax, int c, PetscErrorC… in PetscDrawIndicatorFunction() argument 34 PetscCall(PetscDrawCoordinateToPixel(draw, xmax, ymax, &xend, ¥d)); in PetscDrawIndicatorFunction()
|
| /petsc/include/petsc/private/ |
| H A D | drawimpl.h | 90 PetscReal xmin, xmax, ymin, ymax, *x, *y; member 129 PetscReal ymin, ymax; member 145 PetscReal xmin, xmax, ymin, ymax, *x, *y; member
|
| /petsc/src/ts/tutorials/power_grid/ |
| H A D | petscopt_ex6 | 20 -ymax 10
|
| H A D | petscopt_ex7 | 13 -ymax 10
|
| H A D | petscopt_ex8 | 13 #-ymax 1.02
|
| /petsc/src/sys/classes/draw/impls/image/ |
| H A D | drawimage.h | 112 const int ymin = img->clip[1], ymax = img->clip[3] - 1; in PetscImageDrawTriangle() local 122 if (y_1 > ymax && y_2 > ymax && y_3 > ymax) return; in PetscImageDrawTriangle()
|
| H A D | drawimage.c | 25 int xmax = img->w - 1, ymax = img->h - 1; in PetscDrawSetViewport_Image() local 26 int xa = (int)(xl * xmax), ya = ymax - (int)(yr * ymax); in PetscDrawSetViewport_Image() 27 int xb = (int)(xr * xmax), yb = ymax - (int)(yl * ymax); in PetscDrawSetViewport_Image()
|
| /petsc/src/dm/tutorials/ |
| H A D | ex13f90.F90 | 35 …PetscReal :: t, tend, dt, xmin, xmax, ymin, ymax, zmin, zmax, xgmin, xgmax, ygmin, ygmax, zgmin, z… 105 ymax = grid(2, imax, jmax, kmax)
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | DMStag.pyx | 535 ymax: float = 1, 550 ymax 564 cdef PetscReal _ymin = asReal(ymin), _ymax = asReal(ymax) 573 ymax: float = 1, 592 ymax 606 cdef PetscReal _ymin = asReal(ymin), _ymax = asReal(ymax) 615 ymax: float = 1, 628 multiple of ``xmax-xmin`` in the x dimension, ``ymax-ymin`` in the y 639 ymax 653 cdef PetscReal _ymin = asReal(ymin), _ymax = asReal(ymax)
|