Home
last modified time | relevance | path

Searched refs:startx (Results 1 – 17 of 17) sorted by relevance

/petsc/src/dm/impls/stag/tests/
H A Dex19.c32 PetscInt i, j, startx, starty, nx, ny, extrax, extray; in main() local
35 …PetscCall(DMStagGetCorners(dmCoarse, &startx, &starty, NULL, &nx, &ny, NULL, &extrax, &extray, NUL… in main()
41 for (i = startx; i < startx + nx + extrax; ++i) { in main()
42 arr[j][i][vy] = (i < startx + nx) ? 10.0 : -1; in main()
44 arr[j][i][p] = (i < startx + nx) && (j < starty + ny) ? 30.0 : -1; in main()
53 PetscInt i, j, startx, starty, nx, ny, extrax, extray; in main() local
56 … PetscCall(DMStagGetCorners(dm, &startx, &starty, NULL, &nx, &ny, NULL, &extrax, &extray, NULL)); in main()
62 for (i = startx; i < startx + nx + extrax; ++i) { in main()
63 const PetscScalar expected_vy = (i < startx + nx) ? 10.0 : -1; in main()
65 const PetscScalar expected_p = (i < startx + nx) && (j < starty + ny) ? 30.0 : -1; in main()
H A Dex8.c20 PetscInt startx, starty, startz, nx, ny, nz, ex, ey, ez, nExtrax, nExtray, nExtraz; in main() local
44 …PetscCall(DMStagGetCorners(dmSol, &startx, &starty, &startz, &nx, &ny, &nz, &nExtrax, &nExtray, &n… in main()
54 for (ex = startx; ex < startx + nx + nExtrax; ++ex) { in main()
61 if (ex < startx + nx && ey < starty + ny && ez < startz + nz) { in main()
125 …PetscInt startx, starty, startz, nx, ny, nz, nExtrax, nExtray, nExtraz, ex, ey, ez, idxP, i… in ApplyOperator() local
134 …PetscCall(DMStagGetCorners(dm, &startx, &starty, &startz, &nx, &ny, &nz, &nExtrax, &nExtray, &nExt… in ApplyOperator()
153 …starty; ey < starty + ny + nExtray; ++ey) arrIn[ez][ey][startx + nx][idxP] = arrIn[ez][ey][startx in ApplyOperator()
158 …for (ex = startx; ex < startx + nx + nExtrax; ++ex) arrIn[ez][-1][ex][idxP] = arrIn[ez][0][ex][idx… in ApplyOperator()
163 …for (ex = startx; ex < startx + nx + nExtrax; ++ex) arrIn[ez][starty + ny][ex][idxP] = arrIn[ez][s… in ApplyOperator()
169 …for (ex = startx; ex < startx + nx + nExtrax; ++ex) arrIn[-1][ey][ex][idxP] = arrIn[0][ey][ex][idx… in ApplyOperator()
[all …]
H A Dex11.c20 PetscInt startx, starty, nx, ny, ex, ey, nExtrax, nExtray; in main() local
44 …PetscCall(DMStagGetCorners(dmSol, &startx, &starty, NULL, &nx, &ny, NULL, &nExtrax, &nExtray, NULL… in main()
52 for (ex = startx; ex < startx + nx + nExtrax; ++ex) { in main()
57 if (ex < startx + nx && ey < starty + ny) { in main()
120 …PetscInt startx, starty, nx, ny, nExtrax, nExtray, ex, ey, idxP, idxUx, idxUy, startGhostx, … in ApplyOperator() local
129 PetscCall(DMStagGetCorners(dm, &startx, &starty, NULL, &nx, &ny, NULL, &nExtrax, &nExtray, NULL)); in ApplyOperator()
144 …(ey = starty; ey < starty + ny + nExtray; ++ey) arrIn[ey][startx + nx][idxP] = arrIn[ey][startx + … in ApplyOperator()
147 for (ex = startx; ex < startx + nx + nExtrax; ++ex) arrIn[-1][ex][idxP] = arrIn[0][ex][idxP]; in ApplyOperator()
150 …for (ex = startx; ex < startx + nx + nExtrax; ++ex) arrIn[starty + ny][ex][idxP] = arrIn[starty + … in ApplyOperator()
155 for (ex = startx; ex < startx + nx + nExtrax; ++ex) { in ApplyOperator()
[all …]
H A Dex13.c138 PetscInt i, startx, nx, nExtrax, dof0, dof1, c, idxLeft, idxElement; in Test2_1d() local
145 PetscCall(DMStagGetCorners(dm, &startx, NULL, NULL, &nx, NULL, NULL, &nExtrax, NULL, NULL)); in Test2_1d()
150 for (i = startx; i < startx + nx + nExtrax; ++i) { in Test2_1d()
155 if (i < startx + nx) { in Test2_1d()
169 for (i = startx; i < startx + nx + nExtrax; ++i) { in Test2_1d()
175 if (i < startx + nx) { in Test2_1d()
199 …PetscInt i, j, startx, starty, nx, ny, nExtrax, nExtray, dof0, dof1, dof2, c, idxLeft, idxDo… in Test2_2d() local
206 PetscCall(DMStagGetCorners(dm, &startx, &starty, NULL, &nx, &ny, NULL, &nExtrax, &nExtray, NULL)); in Test2_2d()
216 for (i = startx; i < startx + nx + nExtrax; ++i) { in Test2_2d()
227 if (i < startx + nx) { in Test2_2d()
[all …]
H A Dex10.c10 …PetscInt startx, starty, nx, ny, i, j, d, is, js, dof0, dof1, dof2, dofTotal, stencilWidth, … in main() local
37 PetscCall(DMStagGetCorners(dm, &startx, &starty, NULL, &nx, &ny, NULL, NULL, NULL, NULL)); in main()
41 for (i = startx; i < startx + nx; ++i) { in main()
72 for (i = startx; i < startx + nx; ++i) { in main()
H A Dex12.c10 …PetscInt startx, starty, nx, ny, i, j, d, is, js, dof0, dof1, dof2, dofTotal, stencilWidth, … in main() local
37 PetscCall(DMStagGetCorners(dm, &startx, &starty, NULL, &nx, &ny, NULL, NULL, NULL, NULL)); in main()
41 for (i = startx; i < startx + nx; ++i) { in main()
H A Dex9.c10 …PetscInt startx, starty, startz, nx, ny, nz, i, j, k, d, is, js, ks, dof0, dof1, dof2, dof3,… in main() local
38 PetscCall(DMStagGetCorners(dm, &startx, &starty, &startz, &nx, &ny, &nz, NULL, NULL, NULL)); in main()
43 for (i = startx; i < startx + nx; ++i) { in main()
H A Dex7.c10 …PetscInt startx, starty, startz, nx, ny, nz, i, j, k, d, is, js, ks, dof0, dof1, dof2, dof3,… in main() local
38 PetscCall(DMStagGetCorners(dm, &startx, &starty, &startz, &nx, &ny, &nz, NULL, NULL, NULL)); in main()
43 for (i = startx; i < startx + nx; ++i) { in main()
78 for (i = startx; i < startx + nx; ++i) { in main()
H A Dex15.c244 PetscInt ex, ey, startx, starty, nx, ny; in CreateSystem2d() local
250 PetscCall(DMStagGetCorners(dm, &startx, &starty, NULL, &nx, &ny, NULL, NULL, NULL, NULL)); in CreateSystem2d()
259 for (ex = startx; ex < startx + nx; ++ex) { in CreateSystem2d()
H A Dex18.c252 PetscInt ex, ey, startx, starty, nx, ny; in CreateSystem() local
277 PetscCall(DMStagGetCorners(dm, &startx, &starty, NULL, &nx, &ny, NULL, NULL, NULL, NULL)); in CreateSystem()
292 for (ex = startx; ex < startx + nx; ++ex) { in CreateSystem()
H A Dex30.c66 PetscInt startx, starty, startz, N[3], nx, ny, nz, ex, ey, ez, d; in CreateMat() local
76 PetscCall(DMStagGetCorners(dmSol, &startx, &starty, &startz, &nx, &ny, &nz, NULL, NULL, NULL)); in CreateMat()
99 for (ex = startx; ex < startx + nx; ++ex) { in CreateMat()
1633 PetscInt startx, starty, startz, N[3], nx, ny, nz, ex, ey, ez, d; in CheckMat() local
1642 PetscCall(DMStagGetCorners(dmSol, &startx, &starty, &startz, &nx, &ny, &nz, NULL, NULL, NULL)); in CheckMat()
1665 for (ex = startx; ex < startx + nx; ++ex) { in CheckMat()
/petsc/src/dm/impls/stag/tutorials/
H A Dex6.c228 PetscInt N[3], ex, ey, ez, startx, starty, startz, nx, ny, nz, extrax, extray, extraz; in CreateLame() local
233 …PetscCall(DMStagGetCorners(ctx->dm_buoyancy, &startx, &starty, &startz, &nx, &ny, &nz, &extrax, &e… in CreateLame()
237 for (ex = startx; ex < startx + nx; ++ex) { in CreateLame()
254 for (ex = startx; ex < startx + nx + extrax; ++ex) { in CreateLame()
268 for (ex = startx; ex < startx + nx; ++ex) { in CreateLame()
289 for (ex = startx; ex < startx + nx + extrax; ++ex) { in CreateLame()
372 PetscInt ex, ey, startx, starty, nx, ny; in UpdateVelocity_2d() local
412 …PetscCall(DMStagGetCorners(ctx->dm_velocity, &startx, &starty, NULL, &nx, &ny, NULL, NULL, NULL, N… in UpdateVelocity_2d()
414 for (ex = startx; ex < startx + nx; ++ex) { in UpdateVelocity_2d()
450 PetscInt ex, ey, ez, startx, starty, startz, nx, ny, nz; in UpdateVelocity_3d() local
[all …]
H A Dex2.c148 PetscInt ex, ey, startx, starty, nx, ny; in CreateSystem() local
169 PetscCall(DMStagGetCorners(dmSol, &startx, &starty, NULL, &nx, &ny, NULL, NULL, NULL, NULL)); in CreateSystem()
181 for (ex = startx; ex < startx + nx; ++ex) { in CreateSystem()
570 PetscInt startx, starty, nx, ny, nExtra[2], ex, ey; in CreateReferenceSolution() local
590 …PetscCall(DMStagGetCorners(dmSol, &startx, &starty, NULL, &nx, &ny, NULL, &nExtra[0], &nExtra[1], … in CreateReferenceSolution()
592 for (ex = startx; ex < startx + nx + nExtra[0]; ++ex) { in CreateReferenceSolution()
595 …if (ey < starty + ny && ex < startx + nx) { /* Don't fill on the dummy elements (though you could,… in CreateReferenceSolution()
H A Dex4.c576 PetscInt ex, ey, startx, starty, nx, ny; in CreateSystem2d() local
606 PetscCall(DMStagGetCorners(dm_main, &startx, &starty, NULL, &nx, &ny, NULL, NULL, NULL, NULL)); in CreateSystem2d()
616 for (ex = startx; ex < startx + nx; ++ex) { in CreateSystem2d()
994 PetscInt ex, ey, ez, startx, starty, startz, nx, ny, nz; in CreateSystem3d() local
1023 PetscCall(DMStagGetCorners(dm_main, &startx, &starty, &startz, &nx, &ny, &nz, NULL, NULL, NULL)); in CreateSystem3d()
1047 for (ex = startx; ex < startx + nx; ++ex) { in CreateSystem3d()
1861 PetscInt ex, ey, ez, startx, starty, startz, nx, ny, nz; in PopulateCoefficientData() local
1882 PetscCall(DMStagGetGhostCorners(dm_coefficients, &startx, &starty, &startz, &nx, &ny, &nz)); in PopulateCoefficientData()
1896 for (ex = startx; ex < startx + nx; ++ex) { in PopulateCoefficientData()
1914 for (ex = startx; ex < startx + nx; ++ex) { in PopulateCoefficientData()
[all …]
H A Dex3.c170 PetscInt startx, starty, startz, N[3], nx, ny, nz, ex, ey, ez, d; in CreateSystem() local
182 PetscCall(DMStagGetCorners(dmSol, &startx, &starty, &startz, &nx, &ny, &nz, NULL, NULL, NULL)); in CreateSystem()
205 for (ex = startx; ex < startx + nx; ++ex) { in CreateSystem()
/petsc/src/ksp/ksp/tutorials/
H A Dex59.c44 PetscInt startx, starty, startz; member
307 ig = dd.startx + i; in ComputeMapping()
676 dd->startx = 0; in DomainDecomposition()
681 dd->startx = dd->startx + k * dd->p; in DomainDecomposition()
683 if (!dd->pure_neumann && !dd->DBC_zerorows && dd->ipx) dd->startx--; in DomainDecomposition()
1015 printf("STARTS: %d %d %d\n", dd.startx, dd.starty, dd.startz); in main()
/petsc/src/dm/impls/stag/
H A Dstag3d.c829 …, PetscInt eplGhost, PetscInt epFaceRow, PetscInt globalOffset, PetscInt startx, PetscInt starty, … in DMStagSetUpBuildScatterPopulateIdx_3d() argument
840 const PetscInt i = ig - startGhostx + startx; in DMStagSetUpBuildScatterPopulateIdx_3d()
848 const PetscInt i = endGhostx - startGhostx + startx; in DMStagSetUpBuildScatterPopulateIdx_3d()
876 const PetscInt i = ig - startGhostx + startx; in DMStagSetUpBuildScatterPopulateIdx_3d()
894 const PetscInt i = endGhostx - startGhostx + startx; in DMStagSetUpBuildScatterPopulateIdx_3d()
915 const PetscInt i = ig - startGhostx + startx; in DMStagSetUpBuildScatterPopulateIdx_3d()
923 const PetscInt i = endGhostx - startGhostx + startx; in DMStagSetUpBuildScatterPopulateIdx_3d()
941 const PetscInt i = ig - startGhostx + startx; in DMStagSetUpBuildScatterPopulateIdx_3d()
948 const PetscInt i = endGhostx - startGhostx + startx; in DMStagSetUpBuildScatterPopulateIdx_3d()