Searched refs:s_t (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/dm/impls/da/ |
| H A D | da3.c | 213 PetscInt *bases, *ldims, base, x_t, y_t, z_t, s_t, count, s_x, s_y, s_z; in DMSetUp_DA_3D() local 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() 820 for (j = 0; j < s_x; j++) idx[nn++] = s_t++; 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() 828 for (j = 0; j < x_t; j++) idx[nn++] = s_t++; 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() 836 for (j = 0; j < s_x; j++) idx[nn++] = s_t++; in DMSetUp_DA_3D() [all …]
|
| H A D | da2.c | 204 PetscInt xbase, *bases, *ldims, j, x_t, y_t, s_t, base, count; in DMSetUp_DA_2D() local 535 s_t = bases[n0] + x_t * y_t - (s_y - i) * x_t - s_x; in DMSetUp_DA_2D() 536 for (j = 0; j < s_x; j++) idx[nn++] = s_t++; in DMSetUp_DA_2D() 542 s_t = bases[n1] + x_t * y_t - (s_y + 1 - i) * x_t; in DMSetUp_DA_2D() 543 for (j = 0; j < x_t; j++) idx[nn++] = s_t++; in DMSetUp_DA_2D() 551 s_t = bases[n2] + x_t * y_t - (s_y + 1 - i) * x_t; in DMSetUp_DA_2D() 552 for (j = 0; j < s_x; j++) idx[nn++] = s_t++; in DMSetUp_DA_2D() 560 s_t = bases[n3] + (i + 1) * x_t - s_x; in DMSetUp_DA_2D() 561 for (j = 0; j < s_x; j++) idx[nn++] = s_t++; in DMSetUp_DA_2D() 571 s_t = bases[n5] + (i)*x_t; in DMSetUp_DA_2D() [all …]
|