Lines Matching refs:n2
211 PetscMPIInt n0, n1, n2, n3, n4, n5, n6, n7, n8, n9, n10, n11, n12, n14; in DMSetUp_DA_3D() local
549 n2 = rank - m * n - m + 1; in DMSetUp_DA_3D()
591 n2 = rank - 2 * m + 1 - (m * n); in DMSetUp_DA_3D()
605 n2 = rank + m * (n - 1) + 1 - (m * n); in DMSetUp_DA_3D()
629 n2 = size - (m * n) + rank - m + 1; in DMSetUp_DA_3D()
675 n2 = size - (m * n - rank) - (m - 1) - m; in DMSetUp_DA_3D()
687 n2 = rank + m * (n - 1) - (m - 1) - m * n; in DMSetUp_DA_3D()
701 n2 = size - m + rank + 1; in DMSetUp_DA_3D()
727 if ((xe == M) && (ys == 0) && (zs == 0)) n2 = size - m; in DMSetUp_DA_3D()
737 if (xe == M) n2 = n5 = n8 = n11 = n14 = n17 = n20 = n23 = n26 = -2; in DMSetUp_DA_3D()
742 if (ys == 0) n0 = n1 = n2 = n9 = n10 = n11 = n18 = n19 = n20 = -2; in DMSetUp_DA_3D()
748 if (zs == 0) n0 = n1 = n2 = n3 = n4 = n5 = n6 = n7 = n8 = -2; in DMSetUp_DA_3D()
756 dd->neighbors[2] = n2; in DMSetUp_DA_3D()
787 sn2 = n2; in DMSetUp_DA_3D()
805 …n0 = n1 = n2 = n3 = n5 = n6 = n7 = n8 = n9 = n11 = n15 = n17 = n18 = n19 = n20 = n21 = n23 = n24 =… in DMSetUp_DA_3D()
830 if (n2 >= 0) { /* right below */ in DMSetUp_DA_3D()
831 x_t = lx[n2 % m]; in DMSetUp_DA_3D()
832 y_t = ly[(n2 % (m * n)) / m]; in DMSetUp_DA_3D()
833 z_t = lz[n2 / (m * n)]; 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()
1076 n2 = sn2; in DMSetUp_DA_3D()
1123 if (n2 >= 0) { /* right below */ in DMSetUp_DA_3D()
1124 x_t = lx[n2 % m]; in DMSetUp_DA_3D()
1125 y_t = ly[(n2 % (m * n)) / m]; in DMSetUp_DA_3D()
1126 z_t = lz[n2 / (m * n)]; in DMSetUp_DA_3D()
1127 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()