Home
last modified time | relevance | path

Searched refs:yc (Results 1 – 11 of 11) sorted by relevance

/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
41 PetscCall(PetscDrawGetMouseButton(draw, &button, &xc, &yc, NULL, NULL)); in PetscDrawZoom()
69 yl = scale * (yl + h - yc) + yc - h * scale; in PetscDrawZoom()
70 yr = scale * (yr - h - yc) + yc + h * scale; in PetscDrawZoom()
79 PetscCall(PetscDrawGetMouseButton(draw, &button, &xc, &yc, NULL, NULL)); in PetscDrawZoom()
/petsc/src/sys/classes/draw/impls/image/
H A Ddrawimage.h84 static inline void PetscImageDrawEllipse(PetscImage img, int xc, int yc, int w, int h, int c) in PetscImageDrawEllipse() argument
89 PetscImageDrawLine(img, xc + x, yc + y, xc - x, yc + y, c); in PetscImageDrawEllipse()
90 PetscImageDrawLine(img, xc + x, yc - y, xc - x, yc - y, c); in PetscImageDrawEllipse()
98 PetscImageDrawLine(img, xc + x, yc + y, xc - x, yc + y, c); in PetscImageDrawEllipse()
99 PetscImageDrawLine(img, xc + x, yc - y, xc - x, yc - y, c); in PetscImageDrawEllipse()
H A Ddrawimage.c190 int yc = YTRANS(draw, img, y), h = YTRANS(draw, img, y - b / 2) + 0 - yc; in PetscDrawEllipse_Image() local
192 PetscImageDrawEllipse(img, xc, yc, w, h, c); in PetscDrawEllipse_Image()
/petsc/src/ksp/ksp/tutorials/
H A Dex68.c61 PetscReal norm, xc, yc; in main() local
115 yc = PetscLog10Real(norm); in main()
116 PetscCall(PetscDrawLGAddPoint(lg, &xc, &yc)); in main()
H A Dex69.c98 PetscReal norm, xc, yc, h; in main() local
201 yc = PetscLog10Real(norm); in main()
202 PetscCall(PetscDrawLGAddPoint(lg, &xc, &yc)); in main()
H A Dex73.c470 PetscErrorCode DMShellDAFieldScatter_Reverse(DM dmf, Vec y, DM dmc, Vec yc) in DMShellDAFieldScatter_Reverse() argument
491 if (yc) { in DMShellDAFieldScatter_Reverse()
493 PetscCall(VecGetOwnershipRange(yc, &st, &ed)); in DMShellDAFieldScatter_Reverse()
494 PetscCall(VecGetArrayRead(yc, &LA_yred)); in DMShellDAFieldScatter_Reverse()
496 PetscCall(VecRestoreArrayRead(yc, &LA_yred)); in DMShellDAFieldScatter_Reverse()
/petsc/src/dm/impls/stag/
H A Dstagmulti.c1067 PetscInt xc, yc, mc, nc, nExtraxc, nExtrayc, i, j, d, ii, jj, count; in DMStagPopulateRestriction2d_Internal() local
1092 PetscCall(DMStagGetCorners(dmc, &xc, &yc, NULL, &mc, &nc, NULL, &nExtraxc, &nExtrayc, NULL)); in DMStagPopulateRestriction2d_Internal()
1095 for (j = yc; j < yc + nc + nExtrayc; ++j) in DMStagPopulateRestriction2d_Internal()
1125 for (j = yc; j < yc + nc; ++j) in DMStagPopulateRestriction2d_Internal()
1153 for (j = yc; j < yc + nc + nExtrayc; ++j) in DMStagPopulateRestriction2d_Internal()
1181 for (j = yc; j < yc + nc; ++j) in DMStagPopulateRestriction2d_Internal()
1210 …PetscInt xc, yc, zc, mc, nc, pc, nExtraxc, nExtrayc, nExtrazc, i, j, k, d, ii, jj, kk, count; in DMStagPopulateRestriction3d_Internal() local
1236 PetscCall(DMStagGetCorners(dmc, &xc, &yc, &zc, &mc, &nc, &pc, &nExtraxc, &nExtrayc, &nExtrazc)); in DMStagPopulateRestriction3d_Internal()
1240 for (j = yc; j < yc + nc + nExtrayc; ++j) in DMStagPopulateRestriction3d_Internal()
1277 for (j = yc; j < yc + nc + nExtrayc; ++j) in DMStagPopulateRestriction3d_Internal()
[all …]
H A Dstag2d.c60 PetscInt xc, yc, mc, nc, nExtraxc, nExtrayc, i, j, d; in DMStagRestrictSimple_2d() local
72 PetscCall(DMStagGetCorners(dmc, &xc, &yc, NULL, &mc, &nc, NULL, &nExtraxc, &nExtrayc, NULL)); in DMStagRestrictSimple_2d()
86 for (j = yc; j < yc + nc + nExtrayc; ++j) in DMStagRestrictSimple_2d()
94 for (j = yc; j < yc + nc; ++j) in DMStagRestrictSimple_2d()
103 for (j = yc; j < yc + nc + nExtrayc; ++j) in DMStagRestrictSimple_2d()
112 for (j = yc; j < yc + nc; ++j) in DMStagRestrictSimple_2d()
H A Dstag3d.c67 PetscInt xc, yc, zc, mc, nc, pc, nExtraxc, nExtrayc, nExtrazc, i, j, k, d; in DMStagRestrictSimple_3d() local
81 PetscCall(DMStagGetCorners(dmc, &xc, &yc, &zc, &mc, &nc, &pc, &nExtraxc, &nExtrayc, &nExtrazc)); in DMStagRestrictSimple_3d()
104 for (j = yc; j < yc + nc + nExtrayc; ++j) in DMStagRestrictSimple_3d()
113 for (j = yc; j < yc + nc + nExtrayc; ++j) in DMStagRestrictSimple_3d()
123 for (j = yc; j < yc + nc; ++j) in DMStagRestrictSimple_3d()
133 for (j = yc; j < yc + nc + nExtrayc; ++j) in DMStagRestrictSimple_3d()
143 for (j = yc; j < yc + nc; ++j) in DMStagRestrictSimple_3d()
155 for (j = yc; j < yc + nc + nExtrayc; ++j) in DMStagRestrictSimple_3d()
167 for (j = yc; j < yc + nc; ++j) in DMStagRestrictSimple_3d()
179 for (j = yc; j < yc + nc; ++j) in DMStagRestrictSimple_3d()
/petsc/src/dm/impls/plex/
H A Dplexcreate.c2561 PetscReal phi, sinp, cosp, dc, df, x, y, xc, yc; in snapToCylinder() local
2572 yc = ds2 * PetscSignReal(y); in snapToCylinder()
2577 yc = ds2 * y / PetscAbsReal(x); in snapToCylinder()
2580 f0[1] = yc + (u[1] - yc) * (1.0 - dc) / (df - dc); in snapToCylinder()
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas3028 (premixc/limit-yc-to-yceq? #f)
3029 (premixc/fgm-yc-eq-fac 1.01)
5205 (species/clustering-yc-wt ())