Home
last modified time | relevance | path

Searched refs:s_y (Results 1 – 3 of 3) sorted by relevance

/petsc/src/dm/impls/stag/tests/ !
H A Dex51.c9 PetscInt s_x, s_y, s_z, n_x, n_y, n_z, n_e_x, n_e_y, n_e_z, slot_vertex_2; in main() local
26 PetscCall(DMStagGetCorners(dm, &s_x, &s_y, &s_z, &n_x, &n_y, &n_z, &n_e_x, &n_e_y, &n_e_z)); in main()
30 for (PetscInt j = s_y; j < s_y + n_y + n_e_y; ++j) { in main()
/petsc/src/dm/impls/da/ !
H A Dda3.c213 PetscInt *bases, *ldims, base, x_t, y_t, z_t, s_t, count, s_x, s_y, s_z; in DMSetUp_DA_3D() local
456 s_y = s; in DMSetUp_DA_3D()
813 for (i = 1; i <= s_y; i++) { in DMSetUp_DA_3D()
818 s_t = bases[n0] + x_t * y_t * z_t - (s_y - i) * x_t - s_x - (s_z - k - 1) * x_t * y_t; in DMSetUp_DA_3D()
819 … if (twod && (s_t < 0)) s_t = bases[n0] + x_t * y_t * z_t - (s_y - i) * x_t - s_x; /* 2D case */ in DMSetUp_DA_3D()
826 s_t = bases[n1] + x_t * y_t * z_t - (s_y + 1 - i) * x_t - (s_z - k - 1) * x_t * y_t; in DMSetUp_DA_3D()
827 … if (twod && (s_t < 0)) s_t = bases[n1] + x_t * y_t * z_t - (s_y + 1 - i) * x_t; /* 2D case */ in DMSetUp_DA_3D()
834 s_t = bases[n2] + x_t * y_t * z_t - (s_y + 1 - i) * x_t - (s_z - k - 1) * x_t * y_t; in DMSetUp_DA_3D()
835 … if (twod && (s_t < 0)) s_t = bases[n2] + x_t * y_t * z_t - (s_y + 1 - i) * x_t; /* 2D case */ in DMSetUp_DA_3D()
871 for (i = 1; i <= s_y; i++) { in DMSetUp_DA_3D()
[all …]
H A Dda2.c205 PetscInt s_x, s_y; /* s proportionalized to w */ in DMSetUp_DA_2D() local
370 s_y = s; in DMSetUp_DA_2D()
531 for (i = 1; i <= s_y; i++) { in DMSetUp_DA_2D()
535 s_t = bases[n0] + x_t * y_t - (s_y - i) * x_t - s_x; in DMSetUp_DA_2D()
542 s_t = bases[n1] + x_t * y_t - (s_y + 1 - i) * x_t; in DMSetUp_DA_2D()
545 for (j = 0; j < x; j++) idx[nn++] = bases[rank] + x * (s_y - i + 1) + j; in DMSetUp_DA_2D()
551 s_t = bases[n2] + x_t * y_t - (s_y + 1 - i) * x_t; in DMSetUp_DA_2D()
578 for (i = 1; i <= s_y; i++) { in DMSetUp_DA_2D()
623 for (i = 1; i <= s_y; i++) { in DMSetUp_DA_2D()
627 s_t = bases[n0] + x_t * y_t - (s_y - i) * x_t - s_x; in DMSetUp_DA_2D()
[all …]