| /petsc/src/sys/classes/draw/utils/ |
| H A D | bars.c | 49 h->ymin = 0.; /* if user has not set these then they are determined from the data */ in PetscDrawBarCreate() 136 PetscReal xmin, xmax, ymin, ymax, *values, binLeft, binRight; in PetscDrawBarDraw() local 156 if (bar->ymin == bar->ymax) { in PetscDrawBarDraw() 158 ymin = PETSC_MAX_REAL; in PetscDrawBarDraw() 161 ymin = PetscMin(ymin, values[i]); in PetscDrawBarDraw() 165 ymin = bar->ymin; in PetscDrawBarDraw() 191 PetscCall(PetscDrawAxisSetLimits(bar->axis, xmin, xmax, ymin, ymax)); in PetscDrawBarDraw() 200 …PetscCall(PetscDrawRectangle(draw, binLeft, ymin, binRight, values[idx], bcolor, bcolor, bcolor, b… in PetscDrawBarDraw() 201 PetscCall(PetscDrawLine(draw, binLeft, ymin, binLeft, values[idx], PETSC_DRAW_BLACK)); in PetscDrawBarDraw() 202 PetscCall(PetscDrawLine(draw, binRight, ymin, binRight, values[idx], PETSC_DRAW_BLACK)); in PetscDrawBarDraw() [all …]
|
| H A D | lgc.c | 75 PetscReal xmin, xmax, ymin, ymax; in PetscDrawLGSPDraw() local 92 ymin = PetscMin(lg->ymin, sp->ymin); in PetscDrawLGSPDraw() 95 PetscCall(PetscDrawAxisSetLimits(lg->axis, xmin, xmax, ymin, ymax)); in PetscDrawLGSPDraw() 165 lg->ymin = 1.e20; in PetscDrawLGCreate() 365 (lg)->ymin = y_min; in PetscDrawLGSetLimits() 387 lg->ymin = 1.e20; in PetscDrawLGReset() 469 PetscReal xmin, xmax, ymin, ymax; in PetscDrawLGDraw() local 486 ymin = lg->ymin; in PetscDrawLGDraw() 489 if (ymax - ymin < PETSC_SMALL) { in PetscDrawLGDraw() 490 ymin -= 0.1 * ymax; in PetscDrawLGDraw() [all …]
|
| H A D | hists.c | 17 PetscReal ymin, ymax; member 75 h->ymin = 0.; in PetscDrawHGCreate() 137 hist->ymin = 0.0; 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() 330 ymin = hist->ymin; in PetscDrawHGDraw() 356 PetscCall(PetscDrawAxisSetLimits(hist->axis, xmin, xmax, ymin, ymax)); in PetscDrawHGDraw() 378 …PetscCall(PetscDrawRectangle(draw, binLeft, ymin, binRight, bins[0], bcolor, bcolor, bcolor, bcolo… in PetscDrawHGDraw() 379 PetscCall(PetscDrawLine(draw, binLeft, ymin, binLeft, bins[0], PETSC_DRAW_BLACK)); in PetscDrawHGDraw() 380 PetscCall(PetscDrawLine(draw, binRight, ymin, binRight, bins[0], PETSC_DRAW_BLACK)); in PetscDrawHGDraw() [all …]
|
| H A D | lg.c | 44 if (y[i] < lg->ymin) lg->ymin = y[i]; in PetscDrawLGAddCommonPoint() 100 if (y[i] < lg->ymin) lg->ymin = y[i]; in PetscDrawLGAddPoint() 161 if (y[i] < lg->ymin) lg->ymin = y[i]; in PetscDrawLGAddPoints()
|
| H A D | dscatter.c | 54 sp->ymin = (PetscReal)1.e20; in PetscDrawSPCreate() 135 sp->ymin = (PetscReal)1.e20; in PetscDrawSPReset() 215 if (y[i] < sp->ymin) sp->ymin = y[i]; in PetscDrawSPAddPoint() 273 if (y[i] < sp->ymin) sp->ymin = y[i]; in PetscDrawSPAddPoints() 327 if (y[i] < sp->ymin) sp->ymin = y[i]; in PetscDrawSPAddPointColorized() 372 PetscReal lower[2] = {sp->xmin, sp->ymin}, glower[2]; in PetscDrawSPDraw() 441 sp->ymin = y_min; 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 46 ymin = yl; 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 170 axis->ylow = ymin; in PetscDrawAxisSetLimits() 192 …isGetLimits(PetscDrawAxis axis, PetscReal *xmin, PetscReal *xmax, PetscReal *ymin, PetscReal *ymax) in PetscDrawAxisGetLimits() argument 198 if (ymin) *ymin = axis->ylow; in PetscDrawAxisGetLimits()
|
| /petsc/src/benchmarks/streams/ |
| H A D | process.py | 60 ymin = min(1, min(speedups)) 61 if ymin < 1: ymin = 0 65 ax1.set_ylim([ymin,ymax])
|
| /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() 79 ymin = 0.0; in DMView_DA_1d() 81 …_tmp < dd->M; xmin_tmp++) PetscCall(PetscDrawLine(draw, (double)xmin_tmp, ymin, (double)xmin_tmp, … in DMView_DA_1d() 84 PetscCall(PetscDrawLine(draw, xmin, ymin, xmax, ymin, PETSC_DRAW_BLACK)); in DMView_DA_1d() 93 ymin = 0; in DMView_DA_1d() 97 PetscCall(PetscDrawLine(draw, xmin, ymin, xmax, ymin, PETSC_DRAW_RED)); in DMView_DA_1d() 98 PetscCall(PetscDrawLine(draw, xmin, ymin, xmin, ymax, PETSC_DRAW_RED)); in DMView_DA_1d() 100 PetscCall(PetscDrawLine(draw, xmax, ymin, xmax, ymax, PETSC_DRAW_RED)); in DMView_DA_1d() 105 PetscCall(PetscDrawString(draw, x, ymin, PETSC_DRAW_RED, node)); in DMView_DA_1d()
|
| H A D | gr1.c | 25 PetscErrorCode DMDASetUniformCoordinates(DM da, PetscReal xmin, PetscReal xmax, PetscReal ymin, Pet… in DMDASetUniformCoordinates() argument 41 …m > 1) || !(ymax < ymin), PetscObjectComm((PetscObject)da), PETSC_ERR_ARG_INCOMP, "ymax must be la… in DMDASetUniformCoordinates() 56 if (by == DM_BOUNDARY_PERIODIC) hy = (ymax - ymin) / (N); in DMDASetUniformCoordinates() 57 else hy = (ymax - ymin) / (N - 1); in DMDASetUniformCoordinates() 63 coors[cnt++] = ymin + hy * (j + jstart); in DMDASetUniformCoordinates() 70 if (by == DM_BOUNDARY_PERIODIC) hy = (ymax - ymin) / (N); in DMDASetUniformCoordinates() 71 else hy = (ymax - ymin) / (N - 1); in DMDASetUniformCoordinates() 80 coors[cnt++] = ymin + hy * (j + jstart); in DMDASetUniformCoordinates() 92 PetscReal Lstart[3] = {xmin, ymin, zmin}; 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() 76 ymin = 0.0; 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() 81 …for (ymin = 0; ymin < dd->N; ymin++) PetscCall(PetscDrawLine(draw, xmin, ymin, xmax, ymin, PETSC_D… in DMView_DA_2d() 91 ymin = dd->ys; in DMView_DA_2d() 93 PetscCall(PetscDrawLine(draw, xmin, ymin, xmax, ymin, PETSC_DRAW_RED)); in DMView_DA_2d() 94 PetscCall(PetscDrawLine(draw, xmin, ymin, xmin, 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() [all …]
|
| H A D | gr2.c | 16 PetscReal xmin, xmax, ymin, ymax, min, max; member 95 double xmin = (double)zctx->xmin, ymin = (double)zctx->ymin; 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() 106 PetscCall(PetscSNPrintf(value, 16, "%0.2e", ymin)); in VecView_MPI_Draw_DA2d_Zoom() 107 PetscCall(PetscDrawString(draw, xmin - .05 * (xmax - xmin), ymin, PETSC_DRAW_BLACK, value)); in VecView_MPI_Draw_DA2d_Zoom() 215 PetscCall(VecStrideMin(xcoor, 1, NULL, &zctx.ymin)); 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() 225 coors[1] = zctx.ymin; in VecView_MPI_Draw_DA2d()
|
| H A D | da3.c | 76 PetscReal ymin = -1.0, ymax = (PetscReal)dd->N; in DMView_DA_3d() local 89 PetscCall(PetscDrawSetCoordinates(draw, xmin, ymin, xmax, ymax)); in DMView_DA_3d() 95 ymin = 0.0; in DMView_DA_3d() 97 …)(dd->M + (k * (dd->M + 1))); xmin++) PetscCall(PetscDrawLine(draw, xmin, ymin, xmin, ymax, PETSC_… in DMView_DA_3d() 100 …for (ymin = 0; ymin < (PetscReal)dd->N; ymin++) PetscCall(PetscDrawLine(draw, xmin, ymin, xmax, ym… in DMView_DA_3d() 112 ymin = dd->ys; in DMView_DA_3d() 117 PetscCall(PetscDrawLine(draw, xmin, ymin, xmax, ymin, PETSC_DRAW_RED)); in DMView_DA_3d() 118 PetscCall(PetscDrawLine(draw, xmin, ymin, xmin, ymax, PETSC_DRAW_RED)); in DMView_DA_3d() 120 PetscCall(PetscDrawLine(draw, xmax, ymin, xmax, ymax, PETSC_DRAW_RED)); in DMView_DA_3d() 127 … PetscCall(PetscDrawString(draw, xmin + (dd->M + 1) * k + .2, ymin + .3, PETSC_DRAW_RED, node)); in DMView_DA_3d() [all …]
|
| /petsc/src/ts/interface/ |
| H A D | tseig.c | 11 PetscReal xmin, xmax, ymin, ymax; member 76 (*ctx)->ymin = -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 269 ymin = c[0]; in KSPPlotEigenContours_Private() 274 ymin = PetscMin(ymin, 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 …cInt start, PetscInt blocksize, PetscReal xmin, PetscReal xmax, PetscReal ymin, PetscReal ymax, Pe… 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/interface/ |
| H A D | drect.c | 22 …dicatorFunction(PetscDraw draw, PetscReal xmin, PetscReal xmax, PetscReal ymin, PetscReal ymax, in… in PetscDrawIndicatorFunction() argument 33 PetscCall(PetscDrawCoordinateToPixel(draw, xmin, ymin, &xstart, &ystart)); 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 | 19 -ymin -1
|
| H A D | petscopt_ex7 | 12 -ymin -10
|
| H A D | petscopt_ex8 | 12 #-ymin 0.98
|
| H A D | ex8.c | 41 PetscScalar ymin; /* bottom boundary of speed */ member 76 PetscCall(DMDASetUniformCoordinates(user.da, user.xmin, user.xmax, user.ymin, user.ymax, 0, 0)); in main() 151 user->dy = (user->ymax - user->ymin) / (N - 1); in ini_bou() 359 user->ymin = -2.0; in Parameter_settings() 375 PetscCall(PetscOptionsGetScalar(NULL, NULL, "-ymin", &user->ymin, &flg)); in Parameter_settings()
|
| /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 120 if (y_1 < ymin && y_2 < ymin && y_3 < ymin) return; in PetscImageDrawTriangle()
|
| /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… 102 ymin = grid(2, 1, 1, 1)
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | DMStag.pyx | 534 ymin: float = 0, 548 ymin 564 cdef PetscReal _ymin = asReal(ymin), _ymax = asReal(ymax) 572 ymin: float = 0, 590 ymin 606 cdef PetscReal _ymin = asReal(ymin), _ymax = asReal(ymax) 614 ymin: float = 0, 628 multiple of ``xmax-xmin`` in the x dimension, ``ymax-ymin`` in the y 637 ymin 653 cdef PetscReal _ymin = asReal(ymin), _ymax = asReal(ymax)
|