| /petsc/src/dm/tests/ |
| H A D | ex33.c | 14 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 D | ex46.c | 14 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 D | ex23.c | 12 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 D | ex38.c | 12 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 D | ex7.c | 11 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 D | ex22.c | 12 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 D | ex6.c | 20 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 D | dacorn.c | 310 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 D | da2.c | 197 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 D | daview.c | 135 if (st) *st = dd->stencil_type; in DMDAGetInfo() 178 info->st = dd->stencil_type; in DMDAGetLocalInfo()
|
| H A D | dacreate.c | 190 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 D | da3.c | 202 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 D | dagetelem.c | 400 …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 D | da.c | 485 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 D | DMDA.pyx | 39 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 D | DMStag.pyx | 56 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 D | stag1d.c | 522 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 D | stag2d.c | 1304 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 D | stag3d.c | 3396 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 D | test_dmda.py | 21 stencil_type=self.STENCIL, 35 stencil_type = self.da.getStencilType() 41 self.assertEqual(stencil_type, self.STENCIL)
|
| H A D | test_dmstag.py | 21 stencil_type=self.STENCIL, 332 stencil_type=kargs['stencil_type'],
|
| /petsc/include/petsc/private/ |
| H A D | dmdaimpl.h | 21 DMDAStencilType stencil_type; /* stencil, either box or star */ member
|
| /petsc/src/binding/petsc4py/src/lib-petsc/ |
| H A D | custom.h | 699 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 D | ex40.c | 116 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 D | vec.md | 185 …riod, DMBoundaryType yperiod, DMBoundaryType zperiod, DMDAStencilType stencil_type, PetscInt M, Pe…
|