Lines Matching refs:gnx

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
278 PetscCall(DMDAGetGhostCorners(da, &gxs, &gys, NULL, &gnx, &gny, NULL)); in DMCreateColoring_DA_2d_MPIAIJ()
300 PetscCall(PetscMalloc1(nc * gnx * gny, &colors)); in DMCreateColoring_DA_2d_MPIAIJ()
303 for (i = gxs; i < gxs + gnx; i++) { in DMCreateColoring_DA_2d_MPIAIJ()
311 …PetscCall(ISColoringCreate(comm, ncolors, nc * gnx * gny, colors, PETSC_OWN_POINTER, &dd->ghostedc… 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
345 PetscCall(DMDAGetGhostCorners(da, &gxs, &gys, &gzs, &gnx, &gny, &gnz)); in DMCreateColoring_DA_3d_MPIAIJ()
366 PetscCall(PetscMalloc1(nc * gnx * gny * gnz, &colors)); in DMCreateColoring_DA_3d_MPIAIJ()
370 for (i = gxs; i < gxs + gnx; i++) { in DMCreateColoring_DA_3d_MPIAIJ()
379 …PetscCall(ISColoringCreate(comm, ncolors, nc * gnx * gny * gnz, colors, PETSC_OWN_POINTER, &dd->gh… 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
406 PetscCall(DMDAGetGhostCorners(da, &gxs, NULL, NULL, &gnx, NULL, NULL)); in DMCreateColoring_DA_1d_MPIAIJ()
439 PetscCall(PetscMalloc1(nc * gnx, &colors)); in DMCreateColoring_DA_1d_MPIAIJ()
441 for (i = gxs; i < gxs + gnx; i++) { in DMCreateColoring_DA_1d_MPIAIJ()
448 …PetscCall(ISColoringCreate(comm, ncolors, nc * gnx, colors, PETSC_OWN_POINTER, &dd->ghostedcolorin… 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
473 PetscCall(DMDAGetGhostCorners(da, &gxs, &gys, NULL, &gnx, &gny, NULL)); in DMCreateColoring_DA_2d_5pt_MPIAIJ()
491 PetscCall(PetscMalloc1(nc * gnx * gny, &colors)); in DMCreateColoring_DA_2d_5pt_MPIAIJ()
494 for (i = gxs; i < gxs + gnx; i++) { in DMCreateColoring_DA_2d_5pt_MPIAIJ()
499 …PetscCall(ISColoringCreate(comm, ncolors, nc * gnx * gny, colors, PETSC_OWN_POINTER, &dd->ghostedc… 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
840 PetscCall(DMDAGetGhostCorners(da, &gxs, &gys, NULL, &gnx, &gny, NULL)); in DMCreateMatrix_DA_2d_MPISELL()
854 slot = i - gxs + gnx * (j - gys); in DMCreateMatrix_DA_2d_MPISELL()
864 cols[cnt++] = k + nc * (slot + gnx * l + p); in DMCreateMatrix_DA_2d_MPISELL()
892 slot = i - gxs + gnx * (j - gys); in DMCreateMatrix_DA_2d_MPISELL()
902 cols[cnt++] = k + nc * (slot + gnx * l + p); in DMCreateMatrix_DA_2d_MPISELL()
925 PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny; in DMCreateMatrix_DA_3d_MPISELL() local
942 PetscCall(DMDAGetGhostCorners(da, &gxs, &gys, &gzs, &gnx, &gny, &gnz)); in DMCreateMatrix_DA_3d_MPISELL()
961 slot = i - gxs + gnx * (j - gys) + gnx * gny * (k - gzs); in DMCreateMatrix_DA_3d_MPISELL()
969 cols[cnt++] = l + nc * (slot + ii + gnx * jj + gnx * gny * kk); in DMCreateMatrix_DA_3d_MPISELL()
1003 slot = i - gxs + gnx * (j - gys) + gnx * gny * (k - gzs); in DMCreateMatrix_DA_3d_MPISELL()
1011 cols[cnt++] = l + nc * (slot + ii + gnx * jj + gnx * gny * kk); 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
1059 PetscCall(DMDAGetGhostCorners(da, &gxs, &gys, NULL, &gnx, &gny, NULL)); in DMCreateMatrix_DA_2d_MPIAIJ()
1073 slot = i - gxs + gnx * (j - gys); in DMCreateMatrix_DA_2d_MPIAIJ()
1083 cols[cnt++] = k + nc * (slot + gnx * l + p); in DMCreateMatrix_DA_2d_MPIAIJ()
1111 slot = i - gxs + gnx * (j - gys); in DMCreateMatrix_DA_2d_MPIAIJ()
1120 cols[cnt++] = nc * (slot + gnx * l + p); in DMCreateMatrix_DA_2d_MPIAIJ()
1147 PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny; in DMCreateMatrix_DA_2d_MPIAIJ_Fill() local
1172 PetscCall(DMDAGetGhostCorners(da, &gxs, &gys, NULL, &gnx, &gny, NULL)); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1186 slot = i - gxs + gnx * (j - gys); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1197 … ifill_col < ofill[k + 1]; ifill_col++) cols[cnt++] = ofill[ifill_col] + nc * (slot + gnx * l + p); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1201 … ifill_col < dfill[k + 1]; ifill_col++) cols[cnt++] = dfill[ifill_col] + nc * (slot + gnx * l + p); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1203 …r (ifill_col = 0; ifill_col < nc; ifill_col++) cols[cnt++] = ifill_col + nc * (slot + gnx * l + p); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1231 slot = i - gxs + gnx * (j - gys); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1242 … ifill_col < ofill[k + 1]; ifill_col++) cols[cnt++] = ofill[ifill_col] + nc * (slot + gnx * l + p); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1246 … ifill_col < dfill[k + 1]; ifill_col++) cols[cnt++] = dfill[ifill_col] + nc * (slot + gnx * l + p); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1248 …r (ifill_col = 0; ifill_col < nc; ifill_col++) cols[cnt++] = ifill_col + nc * (slot + gnx * l + p); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1271 PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny; in DMCreateMatrix_DA_3d_MPIAIJ() local
1298 PetscCall(DMDAGetGhostCorners(da, &gxs, &gys, &gzs, &gnx, &gny, &gnz)); in DMCreateMatrix_DA_3d_MPIAIJ()
1317 slot = i - gxs + gnx * (j - gys) + gnx * gny * (k - gzs); in DMCreateMatrix_DA_3d_MPIAIJ()
1325 cols[cnt++] = l + nc * (slot + ii + gnx * jj + gnx * gny * kk); in DMCreateMatrix_DA_3d_MPIAIJ()
1360 slot = i - gxs + gnx * (j - gys) + gnx * gny * (k - gzs); in DMCreateMatrix_DA_3d_MPIAIJ()
1367 cols[cnt++] = nc * (slot + ii + gnx * jj + gnx * gny * kk); in DMCreateMatrix_DA_3d_MPIAIJ()
1397 PetscInt xs, nx, i, j, gxs, gnx, row, k, l; in DMCreateMatrix_DA_1d_MPIAIJ_Fill() local
1414 PetscCall(DMDAGetGhostCorners(da, &gxs, NULL, NULL, &gnx, NULL, NULL)); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1556 PetscInt xs, nx, i, i1, slot, gxs, gnx; in DMCreateMatrix_DA_1d_MPIAIJ() local
1572 PetscCall(DMDAGetGhostCorners(da, &gxs, NULL, NULL, &gnx, NULL, NULL)); in DMCreateMatrix_DA_1d_MPIAIJ()
1591 iend = PetscMin(s, gxs + gnx - i - 1); in DMCreateMatrix_DA_1d_MPIAIJ()
1620 PetscInt xs, nx, i, i1, slot, gxs, gnx; in DMCreateMatrix_DA_1d_SeqAIJ_NoPreallocation() local
1635 PetscCall(DMDAGetGhostCorners(da, &gxs, NULL, NULL, &gnx, NULL, NULL)); in DMCreateMatrix_DA_1d_SeqAIJ_NoPreallocation()
1653 iend = PetscMin(s, gxs + gnx - i - 1); in DMCreateMatrix_DA_1d_SeqAIJ_NoPreallocation()
1683 PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny; in DMCreateMatrix_DA_2d_MPIBAIJ() local
1701 PetscCall(DMDAGetGhostCorners(da, &gxs, &gys, NULL, &gnx, &gny, NULL)); in DMCreateMatrix_DA_2d_MPIBAIJ()
1716 slot = i - gxs + gnx * (j - gys); in DMCreateMatrix_DA_2d_MPIBAIJ()
1723 cols[cnt++] = slot + ii + gnx * jj; in DMCreateMatrix_DA_2d_MPIBAIJ()
1749 slot = i - gxs + gnx * (j - gys); in DMCreateMatrix_DA_2d_MPIBAIJ()
1754 cols[cnt++] = slot + ii + gnx * jj; in DMCreateMatrix_DA_2d_MPIBAIJ()
1775 PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny; in DMCreateMatrix_DA_3d_MPIBAIJ() local
1793 PetscCall(DMDAGetGhostCorners(da, &gxs, &gys, &gzs, &gnx, &gny, &gnz)); in DMCreateMatrix_DA_3d_MPIBAIJ()
1812 slot = i - gxs + gnx * (j - gys) + gnx * gny * (k - gzs); in DMCreateMatrix_DA_3d_MPIBAIJ()
1820 cols[cnt++] = slot + ii + gnx * jj + gnx * gny * kk; in DMCreateMatrix_DA_3d_MPIBAIJ()
1852 slot = i - gxs + gnx * (j - gys) + gnx * gny * (k - gzs); in DMCreateMatrix_DA_3d_MPIBAIJ()
1859 cols[cnt++] = slot + ii + gnx * jj + gnx * gny * kk; in DMCreateMatrix_DA_3d_MPIBAIJ()
1900 PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny; in DMCreateMatrix_DA_2d_MPISBAIJ() local
1918 PetscCall(DMDAGetGhostCorners(da, &gxs, &gys, NULL, &gnx, &gny, NULL)); in DMCreateMatrix_DA_2d_MPISBAIJ()
1933 slot = i - gxs + gnx * (j - gys); in DMCreateMatrix_DA_2d_MPISBAIJ()
1939 if (st == DMDA_STENCIL_BOX || !ii || !jj) cols[cnt++] = slot + ii + gnx * jj; in DMCreateMatrix_DA_2d_MPISBAIJ()
1965 slot = i - gxs + gnx * (j - gys); in DMCreateMatrix_DA_2d_MPISBAIJ()
1971 if (st == DMDA_STENCIL_BOX || !ii || !jj) cols[cnt++] = slot + ii + gnx * jj; in DMCreateMatrix_DA_2d_MPISBAIJ()
1992 PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny; in DMCreateMatrix_DA_3d_MPISBAIJ() local
2010 PetscCall(DMDAGetGhostCorners(da, &gxs, &gys, &gzs, &gnx, &gny, &gnz)); in DMCreateMatrix_DA_3d_MPISBAIJ()
2030 slot = i - gxs + gnx * (j - gys) + gnx * gny * (k - gzs); in DMCreateMatrix_DA_3d_MPISBAIJ()
2037 … (!ii && !jj) || (!jj && !kk) || (!ii && !kk)) cols[cnt++] = slot + ii + gnx * jj + gnx * gny * kk; in DMCreateMatrix_DA_3d_MPISBAIJ()
2069 slot = i - gxs + gnx * (j - gys) + gnx * gny * (k - gzs); in DMCreateMatrix_DA_3d_MPISBAIJ()
2075 … (!ii && !jj) || (!jj && !kk) || (!ii && !kk)) cols[cnt++] = slot + ii + gnx * jj + gnx * gny * kk; in DMCreateMatrix_DA_3d_MPISBAIJ()
2098 PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny; in DMCreateMatrix_DA_3d_MPIAIJ_Fill() local
2127 PetscCall(DMDAGetGhostCorners(da, &gxs, &gys, &gzs, &gnx, &gny, &gnz)); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2147 slot = i - gxs + gnx * (j - gys) + gnx * gny * (k - gzs); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2156 …l + 1]; ifill_col++) cols[cnt++] = ofill[ifill_col] + nc * (slot + ii + gnx * jj + gnx * gny * kk); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2160 …l + 1]; ifill_col++) cols[cnt++] = dfill[ifill_col] + nc * (slot + ii + gnx * jj + gnx * gny * kk); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2162 …fill_col < nc; ifill_col++) cols[cnt++] = ifill_col + nc * (slot + ii + gnx * jj + gnx * gny * kk); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2198 slot = i - gxs + gnx * (j - gys) + gnx * gny * (k - gzs); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2207 …l + 1]; ifill_col++) cols[cnt++] = ofill[ifill_col] + nc * (slot + ii + gnx * jj + gnx * gny * kk); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2211 …l + 1]; ifill_col++) cols[cnt++] = dfill[ifill_col] + nc * (slot + ii + gnx * jj + gnx * gny * kk); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2213 …fill_col < nc; ifill_col++) cols[cnt++] = ifill_col + nc * (slot + ii + gnx * jj + gnx * gny * kk); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()