Home
last modified time | relevance | path

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

/petsc/src/dm/tests/
H A Dex33.c14 DMDAStencilType stencil_type = DMDA_STENCIL_STAR; in main() local
44 stencil_type = (DMDAStencilType)st; in main()
56 …PetscCall(DMDACreate2d(PETSC_COMM_WORLD, bx, by, stencil_type, M, N, PETSC_DECIDE, PETSC_DECIDE, d… in main()
58 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, PETSC_DECIDE, PETSC_DE… in main()
85 …PetscCall(DMDACreate2d(PETSC_COMM_WORLD, bx, by, stencil_type, M, N, PETSC_DECIDE, PETSC_DECIDE, d… in main()
87 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, PETSC_DECIDE, PETSC_DE… in main()
115 …idth %" PetscInt_FMT " stencil_type %d periodic %d\n", stencil_width, (int)stencil_type, (int)pt)); in main()
H A Dex46.c14 DMDAStencilType stencil_type = DMDA_STENCIL_BOX; in main() local
31 if (flg) stencil_type = DMDA_STENCIL_STAR; in main()
34 if (flg) stencil_type = DMDA_STENCIL_BOX; in main()
82 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, m, n, p, w, s, lx, ly,… in main()
99 …PetscCall(DMDACreate3d(comm2, bx, by, bz, stencil_type, M, N, P, m, n, p, w, s, lx, ly, lz, &da2)); in main()
122 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, m, n, p, w, 0, lx, ly,… in main()
135 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz2, stencil_type, M, N, P, m, n, p, w, s, lx, ly… in main()
147 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P * 2, m, n, p, w, s, lx,… in main()
166 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, m, n, p, w, s, lx, ly,… in main()
H A Dex23.c12 DMDAStencilType stencil_type = DMDA_STENCIL_STAR; in main() local
38 stencil_type = (DMDAStencilType)st; in main()
44 …PetscCall(DMDACreate2d(PETSC_COMM_WORLD, bx, by, stencil_type, M, N, m, n, dof, stencil_width, 0, … in main()
46 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, m, n, p, dof, stencil_… in main()
102 …idth %" PetscInt_FMT " stencil_type %d periodic %d\n", stencil_width, (int)stencil_type, (int)bx)); in main()
112 …idth %" PetscInt_FMT " stencil_type %d periodic %d\n", stencil_width, (int)stencil_type, (int)bx)); in main()
H A Dex38.c12 DMDAStencilType stencil_type = DMDA_STENCIL_STAR; in main() local
24 PetscCall(PetscOptionsGetInt(NULL, NULL, "-stencil_type", (PetscInt *)&stencil_type, NULL)); in main()
26 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, PETSC_DECIDE, PETSC_DE… in main()
H A Dex7.c11 DMDAStencilType stencil_type; in main() local
32 stencil_type = (DMDAStencilType)st; in main()
37 …PetscCall(DMDACreate2d(PETSC_COMM_WORLD, periodic, periodic, stencil_type, M, N, m, n, dof, stenci… in main()
39 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, periodic, periodic, periodic, stencil_type, M, N, P, m, n… in main()
H A Dex22.c12 DMDAStencilType stencil_type = DMDA_STENCIL_BOX; in main() local
28 if (flg) stencil_type = DMDA_STENCIL_STAR; in main()
31 …TSC_COMM_WORLD, DM_BOUNDARY_NONE, DM_BOUNDARY_NONE, DM_BOUNDARY_NONE, stencil_type, M, N, P, m, n,… in main()
H A Dex6.c20 DMDAStencilType stencil_type = DMDA_STENCIL_BOX; in main() local
39 if (flg) stencil_type = DMDA_STENCIL_STAR; in main()
42 if (flg) stencil_type = DMDA_STENCIL_BOX; in main()
91 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, m, n, p, w, s, lx, ly,… in main()
/petsc/src/dm/impls/da/
H A Ddacorn.c310 DMDAStencilType stencil_type; in DMDACreateCompatibleDMDA() local
328 stencil_type = dd->stencil_type; in DMDACreateCompatibleDMDA()
334 …PetscCall(DMDACreate2d(PetscObjectComm((PetscObject)da), bx, by, stencil_type, M, N, m, n, nfields… in DMDACreateCompatibleDMDA()
336 …PetscCall(DMDACreate3d(PetscObjectComm((PetscObject)da), bx, by, bz, stencil_type, M, N, P, m, n, … in DMDACreateCompatibleDMDA()
H A Dda2.c197 DMDAStencilType stencil_type = dd->stencil_type; in DMSetUp_DA_2D() local
212 …PetscCheck(stencil_type != DMDA_STENCIL_BOX || (bx != DM_BOUNDARY_MIRROR && by != DM_BOUNDARY_MIRR… in DMSetUp_DA_2D()
392 if (stencil_type == DMDA_STENCIL_BOX) { in DMSetUp_DA_2D()
518 if (stencil_type == DMDA_STENCIL_STAR) { in DMSetUp_DA_2D()
608 if (stencil_type == DMDA_STENCIL_STAR) { in DMSetUp_DA_2D()
615 …if ((stencil_type == DMDA_STENCIL_STAR) || (bx && bx != DM_BOUNDARY_PERIODIC) || (by && by != DM_B… in DMSetUp_DA_2D()
810 …(MPI_Comm comm, DMBoundaryType bx, DMBoundaryType by, DMDAStencilType stencil_type, PetscInt M, Pe… in DMDACreate2d() argument
819 PetscCall(DMDASetStencilType(*da, stencil_type)); in DMDACreate2d()
H A Ddaview.c135 if (st) *st = dd->stencil_type; in DMDAGetInfo()
178 info->st = dd->stencil_type; in DMDAGetLocalInfo()
H A Ddacreate.c190 PetscCall(DMDASetStencilType(*subdm, da->stencil_type)); in DMCreateSubDM_DA()
240 PetscCall(DMDASetStencilType(da, dd->stencil_type)); in DMCreateFieldDecomposition_DA()
261 PetscCall(DMDASetStencilType(*newdm, da->stencil_type)); in DMClone_DA()
394 dd->stencil_type = DMDA_STENCIL_BOX; in DMCreate_DA()
H A Dda3.c202 DMDAStencilType stencil_type = dd->stencil_type; in DMSetUp_DA_3D() local
223 …PetscCheck(stencil_type != DMDA_STENCIL_BOX || (bx != DM_BOUNDARY_MIRROR && by != DM_BOUNDARY_MIRR… in DMSetUp_DA_3D()
479 if (stencil_type == DMDA_STENCIL_BOX) { in DMSetUp_DA_3D()
783 if (stencil_type == DMDA_STENCIL_STAR) { in DMSetUp_DA_3D()
1073 if (stencil_type == DMDA_STENCIL_STAR) { in DMSetUp_DA_3D()
1096 …if ((stencil_type == DMDA_STENCIL_STAR) || (bx != DM_BOUNDARY_PERIODIC && bx) || (by != DM_BOUNDAR… in DMSetUp_DA_3D()
1512 …oundaryType bx, DMBoundaryType by, DMBoundaryType bz, DMDAStencilType stencil_type, PetscInt M, Pe… in DMDACreate3d() argument
1521 PetscCall(DMDASetStencilType(*da, stencil_type)); in DMDACreate3d()
H A Ddagetelem.c400 …PetscCheck(dd->stencil_type != DMDA_STENCIL_STAR, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP,… in DMDAGetElements()
452 …PetscCheck(dd->stencil_type != DMDA_STENCIL_STAR, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP,… in DMDAGetSubdomainCornersIS()
H A Dda.c485 dd->stencil_type = stype; in DMDASetStencilType()
511 *stype = dd->stencil_type; in DMDAGetStencilType()
1056 PetscCall(DMDASetStencilType(da2, dd->stencil_type)); in DMRefine_DA()
1203 PetscCall(DMDASetStencilType(dmc2, dd->stencil_type)); in DMCoarsen_DA()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DDMDA.pyx39 stencil_type: StencilType | None = None,
72 stencil_type
132 if stencil_type is not None:
133 stype = asStencil(stencil_type)
152 stencil_type: StencilType | None = None,
159 Parameters ``dof``, ``boundary_type``, ``stencil_type``,
168 stencil_type
202 if stencil_type is not None:
203 stype = asStencil(stencil_type)
430 def setStencilType(self, stencil_type: StencilType) -> None:
[all …]
H A DDMStag.pyx56 stencil_type: StencilType | None = None,
81 stencil_type
129 if stencil_type is not None:
130 stype = asStagStencil(stencil_type)
871 property stencil_type:
/petsc/src/dm/impls/stag/
H A Dstag1d.c522 DMStagStencilType stencil_type; in DMCreateMatrix_Stag_1D_AIJ_Assemble() local
528 PetscCall(DMStagGetStencilType(dm, &stencil_type)); in DMCreateMatrix_Stag_1D_AIJ_Assemble()
534 if (stencil_type == DMSTAG_STENCIL_NONE) { in DMCreateMatrix_Stag_1D_AIJ_Assemble()
562 } else if (stencil_type == DMSTAG_STENCIL_STAR || stencil_type == DMSTAG_STENCIL_BOX) { in DMCreateMatrix_Stag_1D_AIJ_Assemble()
611 …ct)dm), PETSC_ERR_ARG_OUTOFRANGE, "Unsupported stencil type %s", DMStagStencilTypes[stencil_type]); in DMCreateMatrix_Stag_1D_AIJ_Assemble()
H A Dstag2d.c1304 DMStagStencilType stencil_type; in DMCreateMatrix_Stag_2D_AIJ_Assemble() local
1309 PetscCall(DMStagGetStencilType(dm, &stencil_type)); in DMCreateMatrix_Stag_2D_AIJ_Assemble()
1317 if (stencil_type == DMSTAG_STENCIL_NONE) { in DMCreateMatrix_Stag_2D_AIJ_Assemble()
1381 } else if (stencil_type == DMSTAG_STENCIL_STAR || stencil_type == DMSTAG_STENCIL_BOX) { in DMCreateMatrix_Stag_2D_AIJ_Assemble()
1451 …if ((stencil_type == DMSTAG_STENCIL_BOX || offset_x == 0 || offset_y == 0) && (boundary_type[0] ==… in DMCreateMatrix_Stag_2D_AIJ_Assemble()
1464 …ct)dm), PETSC_ERR_ARG_OUTOFRANGE, "Unsupported stencil type %s", DMStagStencilTypes[stencil_type]); in DMCreateMatrix_Stag_2D_AIJ_Assemble()
H A Dstag3d.c3396 DMStagStencilType stencil_type; in DMCreateMatrix_Stag_3D_AIJ_Assemble() local
3403 PetscCall(DMStagGetStencilType(dm, &stencil_type)); in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3410 if (stencil_type == DMSTAG_STENCIL_NONE) { in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3545 } else if (stencil_type == DMSTAG_STENCIL_STAR || stencil_type == DMSTAG_STENCIL_BOX) { in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3660 …if ((stencil_type == DMSTAG_STENCIL_BOX || is_star_point) && (boundary_type[0] == DM_BOUNDARY_PERI… in DMCreateMatrix_Stag_3D_AIJ_Assemble()
3676 …ct)dm), PETSC_ERR_ARG_OUTOFRANGE, "Unsupported stencil type %s", DMStagStencilTypes[stencil_type]); in DMCreateMatrix_Stag_3D_AIJ_Assemble()
/petsc/src/binding/petsc4py/test/
H A Dtest_dmda.py21 stencil_type=self.STENCIL,
35 stencil_type = self.da.getStencilType()
41 self.assertEqual(stencil_type, self.STENCIL)
H A Dtest_dmstag.py21 stencil_type=self.STENCIL,
332 stencil_type=kargs['stencil_type'],
/petsc/include/petsc/private/
H A Ddmdaimpl.h21 DMDAStencilType stencil_type; /* stencil, either box or star */ member
/petsc/src/binding/petsc4py/src/lib-petsc/
H A Dcustom.h699 DMDAStencilType stencil_type,PetscInt stencil_width, in DMDACreateND() argument
713 PetscCall(DMDASetStencilType(da,stencil_type)); in DMDACreateND()
/petsc/src/dm/impls/stag/tests/
H A Dex40.c116 DMStagStencilType stencil_type; in FormFunction1D() local
124 PetscCall(DMStagGetStencilType(dm, &stencil_type)); in FormFunction1D()
125 …PetscCheck(stencil_type == DMSTAG_STENCIL_STAR || stencil_type == DMSTAG_STENCIL_BOX, PETSC_COMM_W… in FormFunction1D()
/petsc/doc/manual/
H A Dvec.md185 …riod, DMBoundaryType yperiod, DMBoundaryType zperiod, DMDAStencilType stencil_type, PetscInt M, Pe…