Lines Matching refs:zs
107 PetscInt k, zs, ze, Zs, Ze; in DMDAGetElements_3D() local
131 PetscCall(DMDAGetCorners(dm, &xs, &ys, &zs, &xe, &ye, &ze)); in DMDAGetElements_3D()
139 ze += zs; in DMDAGetElements_3D()
141 if (zs != Zs) zs -= 1; in DMDAGetElements_3D()
142 da->ne = ns * (xe - xs - 1) * (ye - ys - 1) * (ze - zs - 1); in DMDAGetElements_3D()
144 for (k = zs; k < ze - 1; k++) { in DMDAGetElements_3D()
165 corners[0] = (xs - Xs) + (ys - Ys) * (Xe - Xs) + (zs - Zs) * (Xe - Xs) * (Ye - Ys); in DMDAGetElements_3D()
166 corners[1] = (xe - 1 - Xs) + (ys - Ys) * (Xe - Xs) + (zs - Zs) * (Xe - Xs) * (Ye - Ys); in DMDAGetElements_3D()
167 corners[2] = (xs - Xs) + (ye - 1 - Ys) * (Xe - Xs) + (zs - Zs) * (Xe - Xs) * (Ye - Ys); in DMDAGetElements_3D()
168 corners[3] = (xe - 1 - Xs) + (ye - 1 - Ys) * (Xe - Xs) + (zs - Zs) * (Xe - Xs) * (Ye - Ys); in DMDAGetElements_3D()
204 PetscInt zs, Zs; in DMDAGetElementsCorners() local
214 PetscCall(DMDAGetCorners(da, &xs, &ys, &zs, NULL, NULL, NULL)); in DMDAGetElementsCorners()
218 if (zs != Zs) zs -= 1; in DMDAGetElementsCorners()
221 if (gz) *gz = zs; in DMDAGetElementsCorners()
249 PetscInt zs, ze, Zs; in DMDAGetElementsSizes() local
260 PetscCall(DMDAGetCorners(da, &xs, &ys, &zs, &xe, &ye, &ze)); in DMDAGetElementsSizes()
266 ze += zs; in DMDAGetElementsSizes()
267 if (zs != Zs) zs -= 1; in DMDAGetElementsSizes()
274 if (mz) *mz = ze - zs - 1; /* fall through */ in DMDAGetElementsSizes()