| /petsc/src/dm/tests/ |
| H A D | ex33.c | 11 PetscInt stencil_width = 1, pt = 0, st = 0; in main() local 34 PetscCall(PetscOptionsGetInt(NULL, NULL, "-stencil_width", &stencil_width, NULL)); in main() 56 …OMM_WORLD, bx, by, stencil_type, M, N, PETSC_DECIDE, PETSC_DECIDE, dof, stencil_width, 0, 0, &da)); in main() 58 …stencil_type, M, N, P, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof, stencil_width, 0, 0, 0, &da)… in main() 60 PetscCall(DMDACreate1d(PETSC_COMM_WORLD, bx, M, dof, stencil_width, NULL, &da)); in main() 85 …MM_WORLD, bx, by, stencil_type, M, N, PETSC_DECIDE, PETSC_DECIDE, dof, stencil_width, 0, 0, &da2)); in main() 87 …stencil_type, M, N, P, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof, stencil_width, 0, 0, 0, &da2… in main() 89 PetscCall(DMDACreate1d(PETSC_COMM_WORLD, bx, M, dof, stencil_width, NULL, &da2)); in main() 115 …D, " stencil_width %" PetscInt_FMT " stencil_type %d periodic %d\n", stencil_width, (int)stencil_… in main()
|
| H A D | ex23.c | 9 …m = PETSC_DECIDE, n = PETSC_DECIDE, p = PETSC_DECIDE, M = 8, dof = 1, stencil_width = 1, P = 5, pt… in main() local 26 PetscCall(PetscOptionsGetInt(NULL, NULL, "-stencil_width", &stencil_width, NULL)); in main() 44 …PetscCall(DMDACreate2d(PETSC_COMM_WORLD, bx, by, stencil_type, M, N, m, n, dof, stencil_width, 0, … in main() 46 …3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, m, n, p, dof, stencil_width, 0, 0, 0, &da)… in main() 48 PetscCall(DMDACreate1d(PETSC_COMM_WORLD, bx, M, dof, stencil_width, NULL, &da)); in main() 102 …D, " stencil_width %" PetscInt_FMT " stencil_type %d periodic %d\n", stencil_width, (int)stencil_… in main() 112 …D, " stencil_width %" PetscInt_FMT " stencil_type %d periodic %d\n", stencil_width, (int)stencil_… in main()
|
| H A D | ex7.c | 8 …PetscInt M = 8, dof = 1, stencil_width = 1, i, start, end, P = 5, N = 6, m = PETSC_DECIDE, … in main() local 25 PetscCall(PetscOptionsGetInt(NULL, NULL, "-stencil_width", &stencil_width, NULL)); in main() 37 …(PETSC_COMM_WORLD, periodic, periodic, stencil_type, M, N, m, n, dof, stencil_width, NULL, NULL, &… in main() 39 …D, periodic, periodic, periodic, stencil_type, M, N, P, m, n, p, dof, stencil_width, NULL, NULL, N… in main() 41 PetscCall(DMDACreate1d(PETSC_COMM_WORLD, periodic, M, dof, stencil_width, NULL, &da)); in main()
|
| H A D | ex39.c | 8 PetscInt M = 6, stencil_width = 1, dof = 1, m, xstart, i, j; in main() local 16 PetscCall(PetscOptionsGetInt(NULL, 0, "-stencil_width", &stencil_width, 0)); in main() 19 PetscCall(DMDACreate1d(PETSC_COMM_WORLD, DM_BOUNDARY_MIRROR, M, dof, stencil_width, NULL, &da)); in main()
|
| H A D | ex40.c | 8 PetscInt M = 8, N = 8, stencil_width = 1, dof = 1, m, n, xstart, ystart, i, j, c; in main() local 16 PetscCall(PetscOptionsGetInt(NULL, 0, "-stencil_width", &stencil_width, 0)); in main() 19 …ARY_MIRROR, DMDA_STENCIL_STAR, M, N, PETSC_DECIDE, PETSC_DECIDE, dof, stencil_width, NULL, NULL, &… in main()
|
| H A D | ex38.c | 9 PetscInt stencil_width = 2; in main() local 23 PetscCall(PetscOptionsGetInt(NULL, NULL, "-stencil_width", &stencil_width, NULL)); in main() 26 …stencil_type, M, N, P, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof, stencil_width, 0, 0, 0, &da)… in main()
|
| H A D | ex41.c | 8 …PetscInt M = 4, N = 5, P = 6, stencil_width = 1, dof = 1, m, n, p, xstart, ystart, zstart, … in main() local 17 PetscCall(PetscOptionsGetInt(NULL, 0, "-stencil_width", &stencil_width, 0)); in main() 20 …STENCIL_STAR, M, N, P, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof, stencil_width, NULL, NULL, N… in main()
|
| /petsc/src/dm/tutorials/ |
| H A D | ex20.c | 15 PetscInt dof, stencil_width; in pic_insert_DMDA() local 22 stencil_width = 1; in pic_insert_DMDA() 23 …DARY_NONE, DMDA_STENCIL_BOX, 25, 13, PETSC_DECIDE, PETSC_DECIDE, dof, stencil_width, NULL, NULL, &… in pic_insert_DMDA() 24 …ENCIL_BOX, 25, 13, 19, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof, stencil_width, NULL, NULL, N… in pic_insert_DMDA()
|
| H A D | ex21.c | 34 PetscInt stencil_width = 1; in pic_advect() local 38 …RY_NONE, DMDA_STENCIL_BOX, nxy, nxy, PETSC_DECIDE, PETSC_DECIDE, dof, stencil_width, NULL, NULL, &… in pic_advect()
|
| /petsc/src/ts/tutorials/power_grid/ |
| H A D | petscopt_ex7 | 35 -stencil_width 1
|
| H A D | petscopt_ex8 | 40 -stencil_width 1
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | DMDA.pyx | 40 stencil_width: int | None = None, 74 stencil_width 134 if stencil_width is not None: 135 swidth = asInt(stencil_width) 153 stencil_width: int | None = None) -> DMDA: 160 ``stencil_width`` will be overwritten, if provided. 170 stencil_width 204 if stencil_width is not None: 205 swidth = asInt(stencil_width) 468 def setStencilWidth(self, stencil_width: int) -> None: [all …]
|
| H A D | DMStag.pyx | 57 stencil_width: int | None = None, 83 stencil_width 126 if stencil_width is not None: 127 swidth = asInt(stencil_width) 876 property stencil_width:
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_dmda.py | 22 stencil_width=self.SWIDTH, 36 stencil_width = self.da.getStencilWidth() 42 self.assertEqual(stencil_width, self.SWIDTH) 543 and newda.stencil_width == da.stencil_width 566 width = da.stencil_width
|
| H A D | test_dmstag.py | 22 stencil_width=self.SWIDTH, 333 stencil_width=kargs['stencil_width'],
|
| /petsc/src/binding/petsc4py/demo/legacy/wrap-cython/ |
| H A D | run_demo.py | 13 da = PETSc.DMDA().create([N, N, N], stencil_width=1)
|
| /petsc/src/dm/impls/da/ |
| H A D | da.c | 939 static PetscErrorCode DMDARefineOwnershipRanges(DM da, PetscBool periodic, PetscInt stencil_width, … in DMDARefineOwnershipRanges() argument 958 while ((startf + want) / ratio < nextc - stencil_width) want++; in DMDARefineOwnershipRanges() 961 while ((startf + want - 1 + ratio - 1) / ratio > nextc - 1 + stencil_width) want--; in DMDARefineOwnershipRanges() 963 …startf + want) / ratio < nextc - stencil_width) || ((startf + want - 1 + ratio - 1) / ratio > next… in DMDARefineOwnershipRanges() 980 static PetscErrorCode DMDACoarsenOwnershipRanges(DM da, PetscBool periodic, PetscInt stencil_width,… in DMDACoarsenOwnershipRanges() argument 999 while (nextf / ratio < startc + want - stencil_width) want--; in DMDACoarsenOwnershipRanges() 1002 while ((nextf - 1 + ratio - 1) / ratio > startc + want - 1 + stencil_width) want++; in DMDACoarsenOwnershipRanges() 1003 …(nextf / ratio < startc + want - stencil_width) || ((nextf - 1 + ratio - 1) / ratio > startc + wan… in DMDACoarsenOwnershipRanges()
|
| /petsc/src/binding/petsc4py/demo/legacy/wrap-swig/ |
| H A D | run_demo.py | 36 da = PETSc.DMDA().create([N, N, N], stencil_width=1)
|
| /petsc/src/binding/petsc4py/demo/legacy/wrap-f2py/ |
| H A D | run_demo.py | 46 da = PETSc.DA().create([N, N], stencil_width=1)
|
| /petsc/src/binding/petsc4py/demo/legacy/poisson2d/ |
| H A D | poisson2d.py | 71 da = PETSc.DMDA().create([nx, ny], stencil_width=1, setup=False)
|
| /petsc/src/binding/petsc4py/demo/python_types/ |
| H A D | mat.py | 103 da = PETSc.DMDA().create([nx, ny], stencil_width=1)
|
| /petsc/src/dm/impls/stag/ |
| H A D | stag1d.c | 523 PetscInt dof[2], start, n, n_extra, stencil_width, N, epe; in DMCreateMatrix_Stag_1D_AIJ_Assemble() local 529 PetscCall(DMStagGetStencilWidth(dm, &stencil_width)); in DMCreateMatrix_Stag_1D_AIJ_Assemble() 595 for (PetscInt offset = -stencil_width; offset <= stencil_width; ++offset) { in DMCreateMatrix_Stag_1D_AIJ_Assemble()
|
| H A D | stag2d.c | 1303 …PetscInt entries, dof[DMSTAG_MAX_STRATA], epe, stencil_width, N[2], start[2], n[2], n_ext… in DMCreateMatrix_Stag_2D_AIJ_Assemble() local 1310 PetscCall(DMStagGetStencilWidth(dm, &stencil_width)); in DMCreateMatrix_Stag_2D_AIJ_Assemble() 1442 for (PetscInt offset_y = -stencil_width; offset_y <= stencil_width; ++offset_y) { in DMCreateMatrix_Stag_2D_AIJ_Assemble() 1444 for (PetscInt offset_x = -stencil_width; offset_x <= stencil_width; ++offset_x) { in DMCreateMatrix_Stag_2D_AIJ_Assemble()
|
| /petsc/src/dm/impls/stag/tests/ |
| H A D | ex40.c | 115 PetscInt dim, stencil_width, start, n, n_extra, N, dof[2]; in FormFunction1D() local 126 PetscCall(DMStagGetStencilWidth(dm, &stencil_width)); in FormFunction1D() 145 for (PetscInt offset = -stencil_width; offset <= stencil_width; ++offset) { in FormFunction1D() 232 PetscInt dim, stencil_width, start, n, n_extra, N, dof[2]; in FormJacobian1D() local 240 PetscCall(DMStagGetStencilWidth(dm, &stencil_width)); in FormJacobian1D() 259 for (PetscInt offset = -stencil_width; offset <= stencil_width; ++offset) { in FormJacobian1D()
|
| /petsc/src/binding/petsc4py/demo/legacy/bratu3d/ |
| H A D | bratu3d.py | 151 da = PETSc.DMDA().create([nx, ny, nz], stencil_width=1)
|