Home
last modified time | relevance | path

Searched refs:yr (Results 1 – 25 of 34) sorted by relevance

12

/petsc/src/sys/classes/draw/interface/
H A Ddviewp.c25 …orCode PetscDrawSetViewPort(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr) in PetscDrawSetViewPort() argument
29yr <= 1.0 && xr > xl && yr > yl, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "ViewPort values must … in PetscDrawSetViewPort()
33 draw->port_yr = yr; in PetscDrawSetViewPort()
34 PetscTryTypeMethod(draw, setviewport, xl, yl, xr, yr); in PetscDrawSetViewPort()
62 …de PetscDrawGetViewPort(PetscDraw draw, PetscReal *xl, PetscReal *yl, PetscReal *xr, PetscReal *yr) in PetscDrawGetViewPort() argument
69 PetscAssertPointer(yr, 5); in PetscDrawGetViewPort()
73 *yr = draw->port_yr; in PetscDrawGetViewPort()
95 PetscReal xl, xr, yl, yr, h; in PetscDrawSplitViewPort() local
111 yr = yl + h; in PetscDrawSplitViewPort()
114 PetscCall(PetscDrawLine(draw, xl, yl, xl, yr, PETSC_DRAW_BLACK)); in PetscDrawSplitViewPort()
[all …]
H A Ddcoor.c23 …ode PetscDrawSetCoordinates(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr) in PetscDrawSetCoordinates() argument
30 draw->coor_yr = yr; in PetscDrawSetCoordinates()
31 PetscTryTypeMethod(draw, setcoordinates, xl, yl, xr, yr); in PetscDrawSetCoordinates()
54 …PetscDrawGetCoordinates(PetscDraw draw, PetscReal *xl, PetscReal *yl, PetscReal *xr, PetscReal *yr) in PetscDrawGetCoordinates() argument
61 PetscAssertPointer(yr, 5); in PetscDrawGetCoordinates()
65 *yr = draw->coor_yr; in PetscDrawGetCoordinates()
H A Ddline.c24 …PetscDrawGetBoundingBox(PetscDraw draw, PetscReal *xl, PetscReal *yl, PetscReal *xr, PetscReal *yr) in PetscDrawGetBoundingBox() argument
31 if (yr) PetscAssertPointer(yr, 5); in PetscDrawGetBoundingBox()
35 if (yr) *yr = draw->boundbox_yr; in PetscDrawGetBoundingBox()
151 PetscErrorCode PetscDrawLine(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr in PetscDrawLine() argument
155 PetscUseTypeMethod(draw, line, xl, yl, xr, yr, cl); in PetscDrawLine()
177 …Code PetscDrawArrow(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int cl) in PetscDrawArrow() argument
181 PetscUseTypeMethod(draw, arrow, xl, yl, xr, yr, cl); in PetscDrawArrow()
H A Ddrect.c124 …tangle(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int c1, int c2, int… in PetscDrawRectangle() argument
128 PetscUseTypeMethod(draw, rectangle, xl, yl, xr, yr, c1, c2, c3, c4); in PetscDrawRectangle()
H A Ddtri.c52 PetscReal xl = 0.0, yl = 0.0, xr = 1.0, yr = 1.0; in PetscDrawScalePopup() local
67 PetscCall(PetscDrawSetCoordinates(popup, xl, yl, xr, yr)); in PetscDrawScalePopup()
72 PetscCall(PetscDrawRectangle(popup, xl, yl, xr, yr, c, c, c, c)); in PetscDrawScalePopup()
/petsc/src/sys/classes/draw/utils/
H A Dzoom.c20 PetscReal dpause, xc, yc, scale = 1.0, w, h, xr, xl, yr, yl, xmin, xmax, ymin, ymax; in PetscDrawZoom() local
42 PetscCall(PetscDrawGetCoordinates(draw, &xl, &yl, &xr, &yr)); in PetscDrawZoom()
47 ymax = yr; in PetscDrawZoom()
48 h = yr - yl; in PetscDrawZoom()
70 yr = scale * (yr - h - yc) + yc + h * scale; in PetscDrawZoom()
74 PetscCall(PetscDrawSetCoordinates(draw, xl, yl, xr, yr)); in PetscDrawZoom()
H A Dlgc.c510 PetscReal xl, yl, xr, yr, tw, th; in PetscDrawLGDraw() local
513 PetscCall(PetscDrawAxisGetLimits(lg->axis, &xl, &xr, &yl, &yr)); in PetscDrawLGDraw()
526 yr = yr - 1.0 * th; in PetscDrawLGDraw()
527 yl = yr - (dim + 1) * th; in PetscDrawLGDraw()
529 PetscCall(PetscDrawLine(draw, xr, yl, xr, yr, PETSC_DRAW_BLACK)); in PetscDrawLGDraw()
530 PetscCall(PetscDrawLine(draw, xr, yr, xl, yr, PETSC_DRAW_BLACK)); in PetscDrawLGDraw()
531 PetscCall(PetscDrawLine(draw, xl, yr, xl, yl, PETSC_DRAW_BLACK)); in PetscDrawLGDraw()
534 …PetscCall(PetscDrawLine(draw, xl + 1 * tw, yr - (i + 1) * th, xl + 5 * tw, yr - (i + 1) * th, cl)); in PetscDrawLGDraw()
535 …PetscCall(PetscDrawString(draw, xl + 6 * tw, yr - (i + 1.5) * th, PETSC_DRAW_BLACK, lg->legend[i])… in PetscDrawLGDraw()
H A Daxisc.c254 PetscReal xl, xr, yl, yr, dxl = 0, dyl = 0, dxr = 0, dyr = 0; in PetscDrawAxisDraw() local
304 yr = (dyl * axis->yhigh + dyr * axis->ylow - axis->yhigh) / (dyl + dyr - 1); in PetscDrawAxisDraw()
305 PetscCall(PetscDrawSetCoordinates(draw, xl, yl, xr, yr)); in PetscDrawAxisDraw()
/petsc/src/ts/tests/
H A Dex4.c277 PetscReal dx, dy, a, epsilon, xc, xl, xr, yl, yr; in RHSJacobian() local
292 yr = -0.5 * a / dy + epsilon / (dy * dy); in RHSJacobian()
297 v[2] = yr; in RHSJacobian()
306 v[2] = yr; in RHSJacobian()
317 v[3] = yr; in RHSJacobian()
330 v[3] = yr; in RHSJacobian()
341 v[3] = yr; in RHSJacobian()
354 v[4] = yr; in RHSJacobian()
406 PetscReal xc, xl, xr, yl, yr; in RHSFunction() local
429 yr = -0.5 * a / dy + epsilon / (dy * dy); in RHSFunction()
[all …]
/petsc/src/ts/interface/
H A Dtseig.c83 PetscReal yr, yi; in TSLinearStabilityIndicator() local
86 PetscCall(TSComputeLinearStability(ts, xr, xi, &yr, &yi)); in TSLinearStabilityIndicator()
87 if ((yr * yr + yi * yi) <= 1.0) *flg = PETSC_TRUE; in TSLinearStabilityIndicator()
H A Dtsmon.c603 PetscReal xl, yl, xr, yr, h; in TSMonitorDrawSolution() local
608 PetscCall(PetscDrawGetCoordinates(draw, &xl, &yl, &xr, &yr)); in TSMonitorDrawSolution()
609 h = yl + .95 * (yr - yl); in TSMonitorDrawSolution()
645 PetscReal U0, U1, xl, yl, xr, yr, h; in TSMonitorDrawSolutionPhase() local
657 PetscCall(PetscDrawAxisGetLimits(axis, &xl, &xr, &yl, &yr)); in TSMonitorDrawSolutionPhase()
667 if ((U0 < xl) || (U1 < yl) || (U0 > xr) || (U1 > yr)) PetscFunctionReturn(PETSC_SUCCESS); in TSMonitorDrawSolutionPhase()
672 PetscCall(PetscDrawGetCoordinates(draw, &xl, &yl, &xr, &yr)); in TSMonitorDrawSolutionPhase()
674 h = yl + .95 * (yr - yl); in TSMonitorDrawSolutionPhase()
/petsc/src/sys/classes/draw/impls/null/
H A Ddrawnull.c36 … PetscDrawLine_Null(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int cl) in PetscDrawLine_Null() argument
42 …PetscDrawArrow_Null(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int cl) in PetscDrawArrow_Null() argument
48 …e_Null(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int c1, int c2, int… in PetscDrawRectangle_Null() argument
/petsc/src/sys/classes/draw/impls/tikz/
H A Dtikz.c86 … PetscDrawLine_TikZ(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int cl) in PetscDrawLine_TikZ() argument
92 …g);\n", TikZColorMap(cl), XTRANS(draw, xl), YTRANS(draw, yl), XTRANS(draw, xr), YTRANS(draw, yr))); in PetscDrawLine_TikZ()
96 …e_TikZ(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int c1, int c2, int… in PetscDrawRectangle_TikZ() argument
102 …ap(c1), TikZColorMap(c4), XTRANS(draw, xl), YTRANS(draw, yl), XTRANS(draw, xr), YTRANS(draw, yr))); in PetscDrawRectangle_TikZ()
/petsc/src/sys/classes/draw/impls/image/
H A Ddrawimage.c19 … PetscDrawSetViewport_Image(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr) in PetscDrawSetViewport_Image() argument
26 int xa = (int)(xl * xmax), ya = ymax - (int)(yr * ymax); in PetscDrawSetViewport_Image()
116 … PetscDrawLine_Image(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int c) in PetscDrawLine_Image() argument
123 int y_1 = YTRANS(draw, img, yl), y_2 = YTRANS(draw, img, yr); in PetscDrawLine_Image()
129 …PetscDrawArrow_Image(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int c) in PetscDrawArrow_Image() argument
137 int y_1 = YTRANS(draw, img, yl), y_2 = YTRANS(draw, img, yr); in PetscDrawArrow_Image()
162 …_Image(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int c1, int c2, int… in PetscDrawRectangle_Image() argument
173 int y = YTRANS(draw, img, yr), h = YTRANS(draw, img, yl) + 1 - y; in PetscDrawRectangle_Image()
/petsc/src/mat/matfd/
H A Dfdmatrix.c48 PetscReal xr, yr, xl, yl, h, w; in MatFDColoringView_Draw() local
56 yr = fd->M; in MatFDColoringView_Draw()
57 h = yr / 10.0; in MatFDColoringView_Draw()
60 yr += h; in MatFDColoringView_Draw()
63 PetscCall(PetscDrawSetCoordinates(draw, xl, yl, xr, yr)); in MatFDColoringView_Draw()
/petsc/src/ts/impls/explicit/euler/
H A Deuler.c98 …ode TSComputeLinearStability_Euler(TS ts, PetscReal xr, PetscReal xi, PetscReal *yr, PetscReal *yi) in TSComputeLinearStability_Euler() argument
101 *yr = 1.0 + xr; in TSComputeLinearStability_Euler()
/petsc/src/sys/classes/draw/impls/x/
H A Dxops.c16 …Code PetscDrawSetViewport_X(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr) in PetscDrawSetViewport_X() argument
24 ya = ymax - (int)(yr * (PetscReal)ymax); in PetscDrawSetViewport_X()
82 …ode PetscDrawLine_X(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int cl) in PetscDrawLine_X() argument
92 y_2 = YTRANS(draw, XiWin, yr); in PetscDrawLine_X()
97 …de PetscDrawArrow_X(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int cl) in PetscDrawArrow_X() argument
107 y_2 = YTRANS(draw, XiWin, yr); in PetscDrawArrow_X()
131 …ngle_X(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int c1, int c2, int… in PetscDrawRectangle_X() argument
141 y = YTRANS(draw, XiWin, yr); in PetscDrawRectangle_X()
292 PetscReal xr = draw->port_xr, yr = draw->port_yr; in PetscDrawClear_X() local
306 int xa = (int)(xl * xmax), ya = ymax - (int)(yr * ymax); in PetscDrawClear_X()
/petsc/src/snes/tutorials/output/
H A Dex30_1.out4 Slab dip = 45. degrees, Slab velocity = 5. cm/yr
/petsc/src/ts/impls/symplectic/basicsymplectic/
H A Dbasicsymplectic.c358 …uteLinearStability_BasicSymplectic(TS ts, PetscReal xr, PetscReal xi, PetscReal *yr, PetscReal *yi) in TSComputeLinearStability_BasicSymplectic() argument
361 *yr = 1.0 + xr; in TSComputeLinearStability_BasicSymplectic()
/petsc/src/ts/impls/mimex/
H A Dmimex.c310 …ode TSComputeLinearStability_Mimex(TS ts, PetscReal xr, PetscReal xi, PetscReal *yr, PetscReal *yi) in TSComputeLinearStability_Mimex() argument
313 *yr = 1.0 + xr; in TSComputeLinearStability_Mimex()
/petsc/src/dm/impls/da/
H A Dgr2.c81 PetscReal xl, yl, xr, yr, x, y; in VecView_MPI_Draw_DA2d_Zoom() local
82 PetscCall(PetscDrawGetCoordinates(draw, &xl, &yl, &xr, &yr)); in VecView_MPI_Draw_DA2d_Zoom()
85 y = yr - .30 * (yr - yl); in VecView_MPI_Draw_DA2d_Zoom()
86 yl = yl + .01 * (yr - yl); in VecView_MPI_Draw_DA2d_Zoom()
/petsc/src/sys/classes/draw/impls/win32/
H A Dwin32draw.c175 …_Win32(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int c1, int c2, int… in PetscDrawRectangle_Win32() argument
187 y2 = YTRANS(draw, windraw, yr); in PetscDrawRectangle_Win32()
203 …scDrawLine_Win32(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, PetscReal yr, int color) in PetscDrawLine_Win32() argument
215 y2 = YTRANS(draw, windraw, yr); in PetscDrawLine_Win32()
/petsc/src/mat/impls/sbaij/seq/
H A Dsbaij.c388 PetscReal xl, yl, xr, yr, x_l, x_r, y_l, y_r; in MatView_SeqSBAIJ_Draw_Zoom() local
395 PetscCall(PetscDrawGetCoordinates(draw, &xl, &yl, &xr, &yr)); in MatView_SeqSBAIJ_Draw_Zoom()
400 PetscCall(PetscDrawString(draw, .3 * (xl + xr), .3 * (yl + yr), PETSC_DRAW_BLACK, "symmetric")); in MatView_SeqSBAIJ_Draw_Zoom()
456 PetscReal xl, yl, xr, yr, w, h; in MatView_SeqSBAIJ_Draw() local
466 yr = A->rmap->N; in MatView_SeqSBAIJ_Draw()
467 h = yr / 10.0; in MatView_SeqSBAIJ_Draw()
470 yr += h; in MatView_SeqSBAIJ_Draw()
473 PetscCall(PetscDrawSetCoordinates(draw, xl, yl, xr, yr)); in MatView_SeqSBAIJ_Draw()
/petsc/src/ts/interface/sensitivity/
H A Dtssen.c1430 PetscReal xl, yl, xr, yr, h; in TSAdjointMonitorDrawSensi() local
1439 PetscCall(PetscDrawGetCoordinates(draw, &xl, &yl, &xr, &yr)); in TSAdjointMonitorDrawSensi()
1440 h = yl + .95 * (yr - yl); in TSAdjointMonitorDrawSensi()
/petsc/src/mat/impls/sell/seq/
H A Dsell.c1310 PetscReal xl, yl, xr, yr, x_l, x_r, y_l, y_r; in MatView_SeqSELL_Draw_Zoom() local
1317 PetscCall(PetscDrawGetCoordinates(draw, &xl, &yl, &xr, &yr)); in MatView_SeqSELL_Draw_Zoom()
1396 PetscReal xr, yr, xl, yl, h, w; in MatView_SeqSELL_Draw() local
1405 yr = A->rmap->n; in MatView_SeqSELL_Draw()
1406 h = yr / 10.0; in MatView_SeqSELL_Draw()
1409 yr += h; in MatView_SeqSELL_Draw()
1412 PetscCall(PetscDrawSetCoordinates(draw, xl, yl, xr, yr)); in MatView_SeqSELL_Draw()

12