Lines Matching refs:s
261 PetscInt xs, ys, nx, ny, i, j, ii, gxs, gys, gnx, gny, m, n, M, N, dim, s, k, nc, col; in DMCreateColoring_DA_2d_MPIAIJ() local
275 PetscCall(DMDAGetInfo(da, &dim, &m, &n, NULL, &M, &N, NULL, &nc, &s, &bx, &by, NULL, &st)); in DMCreateColoring_DA_2d_MPIAIJ()
276 col = 2 * s + 1; in DMCreateColoring_DA_2d_MPIAIJ()
282 if (st == DMDA_STENCIL_STAR && s == 1) { in DMCreateColoring_DA_2d_MPIAIJ()
325 …PetscInt xs, ys, nx, ny, i, j, gxs, gys, gnx, gny, m, n, p, dim, s, k, nc, col, zs, gzs, i… in DMCreateColoring_DA_3d_MPIAIJ() local
338 PetscCall(DMDAGetInfo(da, &dim, &m, &n, &p, &M, &N, &P, &nc, &s, &bx, &by, &bz, &st)); in DMCreateColoring_DA_3d_MPIAIJ()
339 col = 2 * s + 1; in DMCreateColoring_DA_3d_MPIAIJ()
390 PetscInt xs, nx, i, i1, gxs, gnx, l, m, M, dim, s, nc, col; in DMCreateColoring_DA_1d_MPIAIJ() local
402 PetscCall(DMDAGetInfo(da, &dim, &m, NULL, NULL, &M, NULL, NULL, &nc, &s, &bx, NULL, NULL, NULL)); in DMCreateColoring_DA_1d_MPIAIJ()
403 col = 2 * s + 1; in DMCreateColoring_DA_1d_MPIAIJ()
426 ncolors = nc + 2 * s * tc; in DMCreateColoring_DA_1d_MPIAIJ()
459 PetscInt xs, ys, nx, ny, i, j, ii, gxs, gys, gnx, gny, m, n, dim, s, k, nc; in DMCreateColoring_DA_2d_5pt_MPIAIJ() local
471 PetscCall(DMDAGetInfo(da, &dim, &m, &n, NULL, NULL, NULL, NULL, &nc, &s, &bx, &by, NULL, NULL)); in DMCreateColoring_DA_2d_5pt_MPIAIJ()
824 …PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny, m, n, dim, s, *cols = NULL,… in DMCreateMatrix_DA_2d_MPISELL() local
837 PetscCall(DMDAGetInfo(da, &dim, &m, &n, NULL, NULL, NULL, NULL, &nc, &s, &bx, &by, NULL, &st)); in DMCreateMatrix_DA_2d_MPISELL()
838 col = 2 * s + 1; in DMCreateMatrix_DA_2d_MPISELL()
850 pstart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_2d_MPISELL()
851 pend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_2d_MPISELL()
856 lstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_2d_MPISELL()
857 lend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_2d_MPISELL()
888 pstart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_2d_MPISELL()
889 pend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_2d_MPISELL()
894 lstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_2d_MPISELL()
895 lend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_2d_MPISELL()
926 …PetscInt m, n, dim, s, *cols = NULL, k, nc, *rows = NULL, col, cnt, l, p, *dnz = NUL… in DMCreateMatrix_DA_3d_MPISELL() local
939 PetscCall(DMDAGetInfo(da, &dim, &m, &n, &p, &M, &N, &P, &nc, &s, &bx, &by, &bz, &st)); in DMCreateMatrix_DA_3d_MPISELL()
940 col = 2 * s + 1; in DMCreateMatrix_DA_3d_MPISELL()
952 istart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_3d_MPISELL()
953 iend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_3d_MPISELL()
955 jstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_3d_MPISELL()
956 jend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_3d_MPISELL()
958 kstart = (bz == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -k)); in DMCreateMatrix_DA_3d_MPISELL()
959 kend = (bz == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, p - k - 1)); in DMCreateMatrix_DA_3d_MPISELL()
994 istart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_3d_MPISELL()
995 iend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_3d_MPISELL()
997 jstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_3d_MPISELL()
998 jend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_3d_MPISELL()
1000 kstart = (bz == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -k)); in DMCreateMatrix_DA_3d_MPISELL()
1001 kend = (bz == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, p - k - 1)); in DMCreateMatrix_DA_3d_MPISELL()
1036 …PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny, m, n, dim, s, *cols = NULL,… in DMCreateMatrix_DA_2d_MPIAIJ() local
1049 PetscCall(DMDAGetInfo(da, &dim, &m, &n, NULL, &M, &N, NULL, &nc, &s, &bx, &by, NULL, &st)); in DMCreateMatrix_DA_2d_MPIAIJ()
1051 col = 2 * s + 1; in DMCreateMatrix_DA_2d_MPIAIJ()
1056 if (M == 1 && 2 * s >= m) removedups = PETSC_TRUE; in DMCreateMatrix_DA_2d_MPIAIJ()
1057 if (N == 1 && 2 * s >= n) removedups = PETSC_TRUE; in DMCreateMatrix_DA_2d_MPIAIJ()
1069 pstart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_2d_MPIAIJ()
1070 pend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_2d_MPIAIJ()
1075 lstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_2d_MPIAIJ()
1076 lend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_2d_MPIAIJ()
1107 pstart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_2d_MPIAIJ()
1108 pend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_2d_MPIAIJ()
1113 lstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_2d_MPIAIJ()
1114 lend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_2d_MPIAIJ()
1148 PetscInt m, n, dim, s, *cols, k, nc, row, col, cnt, maxcnt = 0, l, p, M, N; in DMCreateMatrix_DA_2d_MPIAIJ_Fill() local
1163 PetscCall(DMDAGetInfo(da, &dim, &m, &n, NULL, &M, &N, NULL, &nc, &s, &bx, &by, NULL, &st)); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1164 col = 2 * s + 1; in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1169 if (M == 1 && 2 * s >= m) removedups = PETSC_TRUE; in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1170 if (N == 1 && 2 * s >= n) removedups = PETSC_TRUE; in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1182 pstart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1183 pend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1188 lstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1189 lend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1227 pstart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1228 pend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1233 lstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1234 lend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1272 …PetscInt m, n, dim, s, *cols = NULL, k, nc, *rows = NULL, col, cnt, l, p, *dnz = NUL… in DMCreateMatrix_DA_3d_MPIAIJ() local
1285 PetscCall(DMDAGetInfo(da, &dim, &m, &n, &p, &M, &N, &P, &nc, &s, &bx, &by, &bz, &st)); in DMCreateMatrix_DA_3d_MPIAIJ()
1287 col = 2 * s + 1; in DMCreateMatrix_DA_3d_MPIAIJ()
1293 if (M == 1 && 2 * s >= m) removedups = PETSC_TRUE; in DMCreateMatrix_DA_3d_MPIAIJ()
1294 if (N == 1 && 2 * s >= n) removedups = PETSC_TRUE; in DMCreateMatrix_DA_3d_MPIAIJ()
1295 if (P == 1 && 2 * s >= p) removedups = PETSC_TRUE; in DMCreateMatrix_DA_3d_MPIAIJ()
1308 istart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_3d_MPIAIJ()
1309 iend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_3d_MPIAIJ()
1311 jstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_3d_MPIAIJ()
1312 jend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_3d_MPIAIJ()
1314 kstart = (bz == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -k)); in DMCreateMatrix_DA_3d_MPIAIJ()
1315 kend = (bz == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, p - k - 1)); in DMCreateMatrix_DA_3d_MPIAIJ()
1351 istart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_3d_MPIAIJ()
1352 iend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_3d_MPIAIJ()
1354 jstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_3d_MPIAIJ()
1355 jend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_3d_MPIAIJ()
1357 kstart = (bz == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -k)); in DMCreateMatrix_DA_3d_MPIAIJ()
1358 kend = (bz == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, p - k - 1)); in DMCreateMatrix_DA_3d_MPIAIJ()
1398 PetscInt m, dim, s, *cols = NULL, nc, cnt, maxcnt = 0, *ocols; in DMCreateMatrix_DA_1d_MPIAIJ_Fill() local
1411 …PetscCall(DMDAGetInfo(da, &dim, &m, NULL, NULL, NULL, NULL, NULL, &nc, &s, &bx, NULL, NULL, NULL)); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1412 …PetscCheck(s <= 1, PetscObjectComm((PetscObject)da), PETSC_ERR_SUP, "Matrix creation for 1d not im… in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1425 for (i = 0; i < s; i++) { in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1427 ocols[cnt] = ((rank == 0) ? 0 : (s - i) * (ofill[j + 1] - ofill[j])); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1428 cols[cnt] = dfill[j + 1] - dfill[j] + (s + i) * (ofill[j + 1] - ofill[j]); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1430 if (size > 1) ocols[cnt] += (s - i) * (ofill[j + 1] - ofill[j]); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1431 else cols[cnt] += (s - i) * (ofill[j + 1] - ofill[j]); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1437 for (i = s; i < nx - s; i++) { in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1439 cols[cnt] = dfill[j + 1] - dfill[j] + 2 * s * (ofill[j + 1] - ofill[j]); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1445 for (i = nx - s; i < nx; i++) { in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1447 ocols[cnt] = ((rank == (size - 1)) ? 0 : (i - nx + s + 1) * (ofill[j + 1] - ofill[j])); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1448 cols[cnt] = dfill[j + 1] - dfill[j] + (s + nx - i - 1) * (ofill[j + 1] - ofill[j]); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1450 if (size > 1) ocols[cnt] += (i - nx + s + 1) * (ofill[j + 1] - ofill[j]); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1451 else cols[cnt] += (i - nx + s + 1) * (ofill[j + 1] - ofill[j]); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1474 for (i = xs; i < xs + s; i++) { in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1478 for (l = 0; l < s; l++) { in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1479 for (k = ofill[j]; k < ofill[j + 1]; k++) cols[cnt++] = (i - s + l) * nc + ofill[k]; in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1483 for (l = 0; l < s; l++) { in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1484 for (k = ofill[j]; k < ofill[j + 1]; k++) cols[cnt++] = (m + i - s - l) * nc + ofill[k]; in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1492 for (l = 0; l < s; l++) { in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1493 for (k = ofill[j]; k < ofill[j + 1]; k++) cols[cnt++] = (i + s - l) * nc + ofill[k]; in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1499 for (i = xs + s; i < xs + nx - s; i++) { in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1502 for (l = 0; l < s; l++) { in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1503 for (k = ofill[j]; k < ofill[j + 1]; k++) cols[cnt++] = (i - s + l) * nc + ofill[k]; in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1510 for (l = 0; l < s; l++) { in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1511 for (k = ofill[j]; k < ofill[j + 1]; k++) cols[cnt++] = (i + s - l) * nc + ofill[k]; in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1518 for (i = xs + nx - s; i < xs + nx; i++) { in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1521 for (l = 0; l < s; l++) { in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1522 for (k = ofill[j]; k < ofill[j + 1]; k++) cols[cnt++] = (i - s + l) * nc + ofill[k]; in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1530 for (l = 0; l < s; l++) { in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1531 for (k = ofill[j]; k < ofill[j + 1]; k++) cols[cnt++] = (i + s - l) * nc + ofill[k]; in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1535 for (l = 0; l < s; l++) { in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1536 … for (k = ofill[j]; k < ofill[j + 1]; k++) cols[cnt++] = (i - s - l - m + 2) * nc + ofill[k]; in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1557 PetscInt m, dim, s, *cols = NULL, nc, *rows = NULL, col, cnt, l; in DMCreateMatrix_DA_1d_MPIAIJ() local
1567 …PetscCall(DMDAGetInfo(da, &dim, &m, NULL, NULL, NULL, NULL, NULL, &nc, &s, &bx, NULL, NULL, NULL)); in DMCreateMatrix_DA_1d_MPIAIJ()
1569 col = 2 * s + 1; in DMCreateMatrix_DA_1d_MPIAIJ()
1590 istart = PetscMax(-s, gxs - i); in DMCreateMatrix_DA_1d_MPIAIJ()
1591 iend = PetscMin(s, gxs + gnx - i - 1); in DMCreateMatrix_DA_1d_MPIAIJ()
1621 PetscInt m, dim, s, *cols = NULL, nc, *rows = NULL, col, cnt, l; in DMCreateMatrix_DA_1d_SeqAIJ_NoPreallocation() local
1631 …PetscCall(DMDAGetInfo(da, &dim, &m, NULL, NULL, NULL, NULL, NULL, &nc, &s, &bx, NULL, NULL, NULL)); in DMCreateMatrix_DA_1d_SeqAIJ_NoPreallocation()
1632 col = 2 * s + 1; in DMCreateMatrix_DA_1d_SeqAIJ_NoPreallocation()
1652 istart = PetscMax(-s, gxs - i); in DMCreateMatrix_DA_1d_SeqAIJ_NoPreallocation()
1653 iend = PetscMin(s, gxs + gnx - i - 1); in DMCreateMatrix_DA_1d_SeqAIJ_NoPreallocation()
1684 PetscInt m, n, dim, s, *cols, nc, col, cnt, *dnz, *onz; in DMCreateMatrix_DA_2d_MPIBAIJ() local
1697 PetscCall(DMDAGetInfo(da, &dim, &m, &n, NULL, NULL, NULL, NULL, &nc, &s, &bx, &by, NULL, &st)); in DMCreateMatrix_DA_2d_MPIBAIJ()
1698 col = 2 * s + 1; in DMCreateMatrix_DA_2d_MPIBAIJ()
1711 istart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_2d_MPIBAIJ()
1712 iend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_2d_MPIBAIJ()
1714 jstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_2d_MPIBAIJ()
1715 jend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_2d_MPIBAIJ()
1744 istart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_2d_MPIBAIJ()
1745 iend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_2d_MPIBAIJ()
1747 jstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_2d_MPIBAIJ()
1748 jend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_2d_MPIBAIJ()
1776 PetscInt m, n, dim, s, *cols, k, nc, col, cnt, p, *dnz, *onz; in DMCreateMatrix_DA_3d_MPIBAIJ() local
1789 PetscCall(DMDAGetInfo(da, &dim, &m, &n, &p, NULL, NULL, NULL, &nc, &s, &bx, &by, &bz, &st)); in DMCreateMatrix_DA_3d_MPIBAIJ()
1790 col = 2 * s + 1; in DMCreateMatrix_DA_3d_MPIBAIJ()
1803 istart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_3d_MPIBAIJ()
1804 iend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_3d_MPIBAIJ()
1806 jstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_3d_MPIBAIJ()
1807 jend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_3d_MPIBAIJ()
1809 kstart = (bz == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -k)); in DMCreateMatrix_DA_3d_MPIBAIJ()
1810 kend = (bz == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, p - k - 1)); in DMCreateMatrix_DA_3d_MPIBAIJ()
1843 istart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_3d_MPIBAIJ()
1844 iend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_3d_MPIBAIJ()
1846 jstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_3d_MPIBAIJ()
1847 jend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_3d_MPIBAIJ()
1849 kstart = (bz == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -k)); in DMCreateMatrix_DA_3d_MPIBAIJ()
1850 kend = (bz == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, p - k - 1)); in DMCreateMatrix_DA_3d_MPIBAIJ()
1901 PetscInt m, n, dim, s, *cols, nc, col, cnt, *dnz, *onz; in DMCreateMatrix_DA_2d_MPISBAIJ() local
1914 PetscCall(DMDAGetInfo(da, &dim, &m, &n, NULL, NULL, NULL, NULL, &nc, &s, &bx, &by, NULL, &st)); in DMCreateMatrix_DA_2d_MPISBAIJ()
1915 col = 2 * s + 1; in DMCreateMatrix_DA_2d_MPISBAIJ()
1928 istart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_2d_MPISBAIJ()
1929 iend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_2d_MPISBAIJ()
1931 jstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_2d_MPISBAIJ()
1932 jend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_2d_MPISBAIJ()
1960 istart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_2d_MPISBAIJ()
1961 iend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_2d_MPISBAIJ()
1963 jstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_2d_MPISBAIJ()
1964 jend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_2d_MPISBAIJ()
1993 PetscInt m, n, dim, s, *cols, k, nc, col, cnt, p, *dnz, *onz; in DMCreateMatrix_DA_3d_MPISBAIJ() local
2006 PetscCall(DMDAGetInfo(da, &dim, &m, &n, &p, NULL, NULL, NULL, &nc, &s, &bx, &by, &bz, &st)); in DMCreateMatrix_DA_3d_MPISBAIJ()
2007 col = 2 * s + 1; in DMCreateMatrix_DA_3d_MPISBAIJ()
2021 istart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_3d_MPISBAIJ()
2022 iend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_3d_MPISBAIJ()
2024 jstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_3d_MPISBAIJ()
2025 jend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_3d_MPISBAIJ()
2027 kstart = (bz == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -k)); in DMCreateMatrix_DA_3d_MPISBAIJ()
2028 kend = (bz == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, p - k - 1)); in DMCreateMatrix_DA_3d_MPISBAIJ()
2060 istart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_3d_MPISBAIJ()
2061 iend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_3d_MPISBAIJ()
2063 jstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_3d_MPISBAIJ()
2064 jend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_3d_MPISBAIJ()
2066 kstart = (bz == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -k)); in DMCreateMatrix_DA_3d_MPISBAIJ()
2067 kend = (bz == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, p - k - 1)); in DMCreateMatrix_DA_3d_MPISBAIJ()
2099 PetscInt m, n, dim, s, *cols, k, nc, row, col, cnt, maxcnt = 0, l, p, *dnz, *onz; in DMCreateMatrix_DA_3d_MPIAIJ_Fill() local
2115 PetscCall(DMDAGetInfo(da, &dim, &m, &n, &p, &M, &N, &P, &nc, &s, &bx, &by, &bz, &st)); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2116 col = 2 * s + 1; in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2122 if (M == 1 && 2 * s >= m) removedups = PETSC_TRUE; in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2123 if (N == 1 && 2 * s >= n) removedups = PETSC_TRUE; in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2124 if (P == 1 && 2 * s >= p) removedups = PETSC_TRUE; in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2138 istart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2139 iend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2141 jstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2142 jend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2144 kstart = (bz == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -k)); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2145 kend = (bz == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, p - k - 1)); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2189 istart = (bx == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -i)); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2190 iend = (bx == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, m - i - 1)); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2192 jstart = (by == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -j)); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2193 jend = (by == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, n - j - 1)); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2195 kstart = (bz == DM_BOUNDARY_PERIODIC) ? -s : (PetscMax(-s, -k)); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2196 kend = (bz == DM_BOUNDARY_PERIODIC) ? s : (PetscMin(s, p - k - 1)); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()