Lines Matching refs:ny
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
277 PetscCall(DMDAGetCorners(da, &xs, &ys, NULL, &nx, &ny, NULL)); in DMCreateColoring_DA_2d_MPIAIJ()
287 PetscCall(PetscMalloc1(nc * nx * ny, &colors)); in DMCreateColoring_DA_2d_MPIAIJ()
289 for (j = ys; j < ys + ny; j++) { in DMCreateColoring_DA_2d_MPIAIJ()
295 …PetscCall(ISColoringCreate(comm, ncolors, nc * nx * ny, colors, PETSC_OWN_POINTER, &dd->localcolor… 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
344 PetscCall(DMDAGetCorners(da, &xs, &ys, &zs, &nx, &ny, &nz)); in DMCreateColoring_DA_3d_MPIAIJ()
351 PetscCall(PetscMalloc1(nc * nx * ny * nz, &colors)); in DMCreateColoring_DA_3d_MPIAIJ()
354 for (j = ys; j < ys + ny; j++) { in DMCreateColoring_DA_3d_MPIAIJ()
361 …PetscCall(ISColoringCreate(comm, ncolors, nc * nx * ny * nz, colors, PETSC_OWN_POINTER, &dd->local… in DMCreateColoring_DA_3d_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
472 PetscCall(DMDAGetCorners(da, &xs, &ys, NULL, &nx, &ny, NULL)); in DMCreateColoring_DA_2d_5pt_MPIAIJ()
478 PetscCall(PetscMalloc1(nc * nx * ny, &colors)); in DMCreateColoring_DA_2d_5pt_MPIAIJ()
480 for (j = ys; j < ys + ny; j++) { in DMCreateColoring_DA_2d_5pt_MPIAIJ()
486 …PetscCall(ISColoringCreate(comm, ncolors, nc * nx * ny, colors, PETSC_OWN_POINTER, &dd->localcolor… in DMCreateColoring_DA_2d_5pt_MPIAIJ()
610 PetscInt dim, dof, nx, ny, nz, dims[3], starts[3], M, N, P; in DMCreateMatrix_DA() local
650 PetscCall(DMDAGetCorners(da, NULL, NULL, NULL, &nx, &ny, &nz)); in DMCreateMatrix_DA()
653 …PetscCall(MatSetSizes(A, dof * nx * ny * nz, dof * nx * ny * nz, dof * M * N * P, dof * M * N * P)… in DMCreateMatrix_DA()
656 if (dof * nx * ny * nz < da->bind_below) { in DMCreateMatrix_DA()
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
839 PetscCall(DMDAGetCorners(da, &xs, &ys, NULL, &nx, &ny, NULL)); in DMCreateMatrix_DA_2d_MPISELL()
848 MatPreallocateBegin(comm, nc * nx * ny, nc * nx * ny, dnz, onz); in DMCreateMatrix_DA_2d_MPISELL()
853 for (j = ys; j < ys + ny; j++) { in DMCreateMatrix_DA_2d_MPISELL()
891 for (j = ys; j < ys + ny; j++) { in DMCreateMatrix_DA_2d_MPISELL()
925 PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny; in DMCreateMatrix_DA_3d_MPISELL() local
941 PetscCall(DMDAGetCorners(da, &xs, &ys, &zs, &nx, &ny, &nz)); in DMCreateMatrix_DA_3d_MPISELL()
950 MatPreallocateBegin(comm, nc * nx * ny * nz, nc * nx * ny * nz, dnz, onz); in DMCreateMatrix_DA_3d_MPISELL()
954 for (j = ys; j < ys + ny; j++) { in DMCreateMatrix_DA_3d_MPISELL()
996 for (j = ys; j < ys + ny; j++) { 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
1058 PetscCall(DMDAGetCorners(da, &xs, &ys, NULL, &nx, &ny, NULL)); in DMCreateMatrix_DA_2d_MPIAIJ()
1067 MatPreallocateBegin(comm, nc * nx * ny, nc * nx * ny, dnz, onz); in DMCreateMatrix_DA_2d_MPIAIJ()
1072 for (j = ys; j < ys + ny; j++) { in DMCreateMatrix_DA_2d_MPIAIJ()
1110 for (j = ys; j < ys + ny; j++) { 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
1171 PetscCall(DMDAGetCorners(da, &xs, &ys, NULL, &nx, &ny, NULL)); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1180 MatPreallocateBegin(comm, nc * nx * ny, nc * nx * ny, dnz, onz); in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1185 for (j = ys; j < ys + ny; j++) { in DMCreateMatrix_DA_2d_MPIAIJ_Fill()
1230 for (j = ys; j < ys + ny; j++) { 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
1297 PetscCall(DMDAGetCorners(da, &xs, &ys, &zs, &nx, &ny, &nz)); in DMCreateMatrix_DA_3d_MPIAIJ()
1306 MatPreallocateBegin(comm, nc * nx * ny * nz, nc * nx * ny * nz, dnz, onz); in DMCreateMatrix_DA_3d_MPIAIJ()
1310 for (j = ys; j < ys + ny; j++) { in DMCreateMatrix_DA_3d_MPIAIJ()
1353 for (j = ys; j < ys + ny; j++) { in DMCreateMatrix_DA_3d_MPIAIJ()
1683 PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny; in DMCreateMatrix_DA_2d_MPIBAIJ() local
1700 PetscCall(DMDAGetCorners(da, &xs, &ys, NULL, &nx, &ny, NULL)); in DMCreateMatrix_DA_2d_MPIBAIJ()
1709 MatPreallocateBegin(comm, nx * ny, nx * ny, dnz, onz); in DMCreateMatrix_DA_2d_MPIBAIJ()
1713 for (j = ys; j < ys + ny; j++) { in DMCreateMatrix_DA_2d_MPIBAIJ()
1746 for (j = ys; j < ys + ny; j++) { in DMCreateMatrix_DA_2d_MPIBAIJ()
1775 PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny; in DMCreateMatrix_DA_3d_MPIBAIJ() local
1792 PetscCall(DMDAGetCorners(da, &xs, &ys, &zs, &nx, &ny, &nz)); in DMCreateMatrix_DA_3d_MPIBAIJ()
1801 MatPreallocateBegin(comm, nx * ny * nz, nx * ny * nz, dnz, onz); in DMCreateMatrix_DA_3d_MPIBAIJ()
1805 for (j = ys; j < ys + ny; j++) { in DMCreateMatrix_DA_3d_MPIBAIJ()
1845 for (j = ys; j < ys + ny; j++) { in DMCreateMatrix_DA_3d_MPIBAIJ()
1900 PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny; in DMCreateMatrix_DA_2d_MPISBAIJ() local
1917 PetscCall(DMDAGetCorners(da, &xs, &ys, NULL, &nx, &ny, NULL)); in DMCreateMatrix_DA_2d_MPISBAIJ()
1926 MatPreallocateBegin(comm, nx * ny, nx * ny, dnz, onz); in DMCreateMatrix_DA_2d_MPISBAIJ()
1930 for (j = ys; j < ys + ny; j++) { in DMCreateMatrix_DA_2d_MPISBAIJ()
1962 for (j = ys; j < ys + ny; j++) { in DMCreateMatrix_DA_2d_MPISBAIJ()
1992 PetscInt xs, ys, nx, ny, i, j, slot, gxs, gys, gnx, gny; in DMCreateMatrix_DA_3d_MPISBAIJ() local
2009 PetscCall(DMDAGetCorners(da, &xs, &ys, &zs, &nx, &ny, &nz)); in DMCreateMatrix_DA_3d_MPISBAIJ()
2019 MatPreallocateBegin(comm, nx * ny * nz, nx * ny * nz, dnz, onz); in DMCreateMatrix_DA_3d_MPISBAIJ()
2023 for (j = ys; j < ys + ny; j++) { in DMCreateMatrix_DA_3d_MPISBAIJ()
2062 for (j = ys; j < ys + ny; j++) { 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
2126 PetscCall(DMDAGetCorners(da, &xs, &ys, &zs, &nx, &ny, &nz)); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2134 MatPreallocateBegin(comm, nc * nx * ny * nz, nc * nx * ny * nz, dnz, onz); in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2140 for (j = ys; j < ys + ny; j++) { in DMCreateMatrix_DA_3d_MPIAIJ_Fill()
2191 for (j = ys; j < ys + ny; j++) { in DMCreateMatrix_DA_3d_MPIAIJ_Fill()