| /petsc/src/dm/impls/stag/tests/ |
| H A D | ex19.c | 32 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() 40 for (j = starty; j < starty + ny + extray; ++j) { in main() 43 arr[j][i][vx] = (j < starty + ny) ? 20.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() 61 for (j = starty; j < starty + ny + extray; ++j) { in main() 64 const PetscScalar expected_vx = (j < starty + ny) ? 20.0 : -1; in main() 65 const PetscScalar expected_p = (i < startx + nx) && (j < starty + ny) ? 30.0 : -1; in main()
|
| H A D | ex8.c | 20 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() 53 for (ey = starty; ey < starty + ny + nExtray; ++ey) { 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() 148 …for (ey = starty; ey < starty + ny + nExtray; ++ey) arrIn[ez][ey][-1][idxP] = arrIn[ez][ey][0][idx… in ApplyOperator() 153 …for (ey = starty; ey < starty + ny + nExtray; ++ey) arrIn[ez][ey][startx + nx][idxP] = arrIn[ez][e… in ApplyOperator() 163 …x = startx; ex < startx + nx + nExtrax; ++ex) arrIn[ez][starty + ny][ex][idxP] = arrIn[ez][starty … in ApplyOperator() 168 for (ey = starty; ey < starty + ny + nExtray; ++ey) { in ApplyOperator() [all …]
|
| H A D | ex11.c | 20 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() 51 for (ey = starty; ey < starty + ny + nExtray; ++ey) { 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() 141 for (ey = starty; ey < starty + ny + nExtray; ++ey) arrIn[ey][-1][idxP] = arrIn[ey][0][idxP]; in ApplyOperator() 144 …for (ey = starty; ey < starty + ny + nExtray; ++ey) arrIn[ey][startx + nx][idxP] = arrIn[ey][start… in ApplyOperator() 150 …for (ex = startx; ex < startx + nx + nExtrax; ++ex) arrIn[starty + ny][ex][idxP] = arrIn[starty + … in ApplyOperator() 154 for (ey = starty; ey < starty + ny + nExtray; ++ey) { in ApplyOperator() [all …]
|
| H A D | ex13.c | 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() 215 for (j = starty; j < starty + ny + nExtray; ++j) { in Test2_2d() 221 if (j < starty + ny) { in Test2_2d() 233 if (i < startx + nx && j < starty + ny) { in Test2_2d() 248 for (j = starty; j < starty + ny + nExtray; ++j) { in Test2_2d() 255 if (j < starty + ny) { in Test2_2d() 281 if (i < startx + nx && j < starty + ny) { in Test2_2d() 306 …PetscInt i, j, k, startx, starty, startz, nx, ny, nz, nExtrax, nExtray, nExtraz, dof0, dof1… in Test2_3d() local 312 …PetscCall(DMStagGetCorners(dm, &startx, &starty, &startz, &nx, &ny, &nz, &nExtrax, &nExtray, &nExt… in Test2_3d() [all …]
|
| H A D | ex10.c | 10 …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() 40 for (j = starty; j < starty + ny; ++j) { in main() 71 for (j = starty; j < starty + ny; ++j) { in main()
|
| H A D | ex12.c | 10 …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() 40 for (j = starty; j < starty + ny; ++j) { in main()
|
| H A D | ex9.c | 10 …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() 42 for (j = starty; j < starty + ny; ++j) { in main()
|
| H A D | ex7.c | 10 …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() 42 for (j = starty; j < starty + ny; ++j) { in main() 77 for (j = starty; j < starty + ny; ++j) { in main()
|
| H A D | ex15.c | 244 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() 258 for (ey = starty; ey < starty + ny; ++ey) { in CreateSystem2d()
|
| H A D | ex18.c | 252 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() 291 for (ey = starty; ey < starty + ny; ++ey) { in CreateSystem()
|
| H A D | ex30.c | 66 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() 98 for (ey = starty; ey < starty + ny; ++ey) { 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() 1664 for (ey = starty; ey < starty + ny; ++ey) { in CheckMat()
|
| /petsc/src/dm/impls/stag/tutorials/ |
| H A D | ex6.c | 228 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() 236 for (ey = starty; ey < starty + ny; ++ey) { in CreateLame() 253 for (ey = starty; ey < starty + ny + extray; ++ey) { in CreateLame() 267 for (ey = starty; ey < starty + ny; ++ey) { in CreateLame() 288 for (ey = starty; ey < starty + ny + extray; ++ey) { 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() 413 for (ey = starty; ey < starty + ny; ++ey) { in UpdateVelocity_2d() 450 PetscInt ex, ey, ez, startx, starty, startz, nx, ny, nz; in UpdateVelocity_3d() local [all …]
|
| H A D | ex2.c | 148 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() 180 …for (ey = starty; ey < starty + ny; ++ey) { /* With DMStag, always iterate x fastest, y second fas… 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() 591 for (ey = starty; ey < starty + ny + nExtra[1]; ++ey) { in CreateReferenceSolution() 595 …if (ey < starty + ny && ex < startx + nx) { /* Don't fill on the dummy elements (though you could,… in CreateReferenceSolution()
|
| H A D | ex4.c | 576 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() 615 …for (ey = starty; ey < starty + ny; ++ey) { /* With DMStag, always iterate x fastest, y second fas… 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() 1046 for (ey = starty; ey < starty + ny; ++ey) { 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() 1895 for (ey = starty; ey < starty + ny; ++ey) { in PopulateCoefficientData() 1913 for (ey = starty; ey < starty + ny; ++ey) { in PopulateCoefficientData() [all …]
|
| H A D | ex3.c | 170 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() 204 for (ey = starty; ey < starty + ny; ++ey) { in CreateSystem()
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex59.c | 44 PetscInt startx, starty, startz; member 305 jg = dd.starty + j; in ComputeMapping() 685 dd->starty = 0; in DomainDecomposition() 691 dd->starty = dd->starty + k * dd->p; in DomainDecomposition() 1015 printf("STARTS: %d %d %d\n", dd.startx, dd.starty, dd.startz); in main()
|
| /petsc/src/dm/impls/stag/ |
| H A D | stag3d.c | 829 …st, PetscInt epFaceRow, PetscInt globalOffset, PetscInt startx, PetscInt starty, PetscInt startz, … in DMStagSetUpBuildScatterPopulateIdx_3d() argument 838 const PetscInt j = jg - startGhosty + starty; in DMStagSetUpBuildScatterPopulateIdx_3d() 873 const PetscInt j = endGhosty - startGhosty + starty; in DMStagSetUpBuildScatterPopulateIdx_3d() 913 const PetscInt j = jg - startGhosty + starty; in DMStagSetUpBuildScatterPopulateIdx_3d() 938 const PetscInt j = endGhosty - startGhosty + starty; in DMStagSetUpBuildScatterPopulateIdx_3d()
|