Lines Matching refs:xl
25 PetscErrorCode PetscDrawSetViewPort(PetscDraw draw, PetscReal xl, PetscReal yl, PetscReal xr, Petsc… in PetscDrawSetViewPort() argument
29 …xl >= 0.0 && xr <= 1.0 && yl >= 0.0 && yr <= 1.0 && xr > xl && yr > yl, PETSC_COMM_SELF, PETSC_ERR… in PetscDrawSetViewPort()
30 draw->port_xl = xl; in PetscDrawSetViewPort()
34 PetscTryTypeMethod(draw, setviewport, xl, yl, xr, yr); in PetscDrawSetViewPort()
62 PetscErrorCode PetscDrawGetViewPort(PetscDraw draw, PetscReal *xl, PetscReal *yl, PetscReal *xr, Pe… in PetscDrawGetViewPort() argument
66 PetscAssertPointer(xl, 2); in PetscDrawGetViewPort()
70 *xl = draw->port_xl; in PetscDrawGetViewPort()
95 PetscReal xl, xr, yl, yr, h; in PetscDrawSplitViewPort() local
108 xl = ((PetscReal)(rank % n)) * h; in PetscDrawSplitViewPort()
109 xr = xl + h; in PetscDrawSplitViewPort()
114 PetscCall(PetscDrawLine(draw, xl, yl, xl, yr, PETSC_DRAW_BLACK)); in PetscDrawSplitViewPort()
115 PetscCall(PetscDrawLine(draw, xl, yr, xr, yr, PETSC_DRAW_BLACK)); in PetscDrawSplitViewPort()
117 PetscCall(PetscDrawLine(draw, xr, yl, xl, yl, PETSC_DRAW_BLACK)); in PetscDrawSplitViewPort()
121 draw->port_xl = xl + .05 * h; in PetscDrawSplitViewPort()
126 PetscTryTypeMethod(draw, setviewport, xl, yl, xr, yr); in PetscDrawSplitViewPort()
158 PetscReal *xl, *xr, *yl, *yr, h; in PetscDrawViewPortsCreate() local
183 PetscCall(PetscMalloc4(n * n, &xl, n * n, &xr, n * n, &yl, n * n, &yr)); in PetscDrawViewPortsCreate()
184 ports->xl = xl; in PetscDrawViewPortsCreate()
192 xl[i] = ((PetscReal)(i % n)) * h; in PetscDrawViewPortsCreate()
193 xr[i] = xl[i] + h; in PetscDrawViewPortsCreate()
198 PetscCall(PetscDrawLine(draw, xl[i], yl[i], xl[i], yr[i], PETSC_DRAW_BLACK)); in PetscDrawViewPortsCreate()
199 PetscCall(PetscDrawLine(draw, xl[i], yr[i], xr[i], yr[i], PETSC_DRAW_BLACK)); in PetscDrawViewPortsCreate()
201 PetscCall(PetscDrawLine(draw, xr[i], yl[i], xl[i], yl[i], PETSC_DRAW_BLACK)); in PetscDrawViewPortsCreate()
204 xl[i] += .05 * h; in PetscDrawViewPortsCreate()
239 PetscReal *xl, *xr, *yl, *yr, hx, hy; in PetscDrawViewPortsCreateRect() local
266 PetscCall(PetscMalloc4(n, &xl, n, &xr, n, &yl, n, &yr)); in PetscDrawViewPortsCreateRect()
268 ports->xl = xl; in PetscDrawViewPortsCreateRect()
278 xl[k] = ((PetscReal)i) * hx; in PetscDrawViewPortsCreateRect()
279 xr[k] = xl[k] + hx; in PetscDrawViewPortsCreateRect()
284 PetscCall(PetscDrawLine(draw, xl[k], yl[k], xl[k], yr[k], PETSC_DRAW_BLACK)); in PetscDrawViewPortsCreateRect()
285 PetscCall(PetscDrawLine(draw, xl[k], yr[k], xr[k], yr[k], PETSC_DRAW_BLACK)); in PetscDrawViewPortsCreateRect()
287 PetscCall(PetscDrawLine(draw, xr[k], yl[k], xl[k], yl[k], PETSC_DRAW_BLACK)); in PetscDrawViewPortsCreateRect()
290 xl[k] += .05 * hx; in PetscDrawViewPortsCreateRect()
324 PetscCall(PetscFree4(ports->xl, ports->xr, ports->yl, ports->yr)); in PetscDrawViewPortsDestroy()
351 …PetscCall(PetscDrawSetViewPort(ports->draw, ports->xl[port], ports->yl[port], ports->xr[port], por… in PetscDrawViewPortsSet()