Home
last modified time | relevance | path

Searched refs:stencil_width (Results 1 – 25 of 32) sorted by relevance

12

/petsc/src/dm/tests/
H A Dex33.c11 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 Dex23.c9 …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 Dex7.c8 …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 Dex39.c8 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 Dex40.c8 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 Dex38.c9 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 Dex41.c8 …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 Dex20.c15 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 Dex21.c34 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 Dpetscopt_ex735 -stencil_width 1
H A Dpetscopt_ex840 -stencil_width 1
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DDMDA.pyx40 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 DDMStag.pyx57 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 Dtest_dmda.py22 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 Dtest_dmstag.py22 stencil_width=self.SWIDTH,
333 stencil_width=kargs['stencil_width'],
/petsc/src/binding/petsc4py/demo/legacy/wrap-cython/
H A Drun_demo.py13 da = PETSc.DMDA().create([N, N, N], stencil_width=1)
/petsc/src/dm/impls/da/
H A Dda.c939 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 Drun_demo.py36 da = PETSc.DMDA().create([N, N, N], stencil_width=1)
/petsc/src/binding/petsc4py/demo/legacy/wrap-f2py/
H A Drun_demo.py46 da = PETSc.DA().create([N, N], stencil_width=1)
/petsc/src/binding/petsc4py/demo/legacy/poisson2d/
H A Dpoisson2d.py71 da = PETSc.DMDA().create([nx, ny], stencil_width=1, setup=False)
/petsc/src/binding/petsc4py/demo/python_types/
H A Dmat.py103 da = PETSc.DMDA().create([nx, ny], stencil_width=1)
/petsc/src/dm/impls/stag/
H A Dstag1d.c523 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 Dstag2d.c1303 …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 Dex40.c115 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 Dbratu3d.py151 da = PETSc.DMDA().create([nx, ny, nz], stencil_width=1)

12