Home
last modified time | relevance | path

Searched refs:swidth (Results 1 – 4 of 4) sorted by relevance

/petsc/src/dm/impls/da/
H A Ddaview.c13 PetscInt dim, m, n, p, dof, swidth; in DMView_DA_Matlab() local
22 PetscCall(DMDAGetInfo(da, &dim, &m, &n, &p, 0, 0, 0, &dof, &swidth, &bx, &by, &bz, &stencil)); in DMView_DA_Matlab()
30 mxSetFieldByNumber(mx, 0, 5, mxCreateDoubleScalar((double)swidth)); in DMView_DA_Matlab()
45 PetscInt dim, m, n, p, dof, swidth, M, N, P; in DMView_DA_Binary() local
55 PetscCall(DMDAGetInfo(da, &dim, &m, &n, &p, &M, &N, &P, &dof, &swidth, &bx, &by, &bz, &stencil)); in DMView_DA_Binary()
64 PetscCall(PetscViewerBinaryWrite(viewer, &swidth, 1, PETSC_INT)); in DMView_DA_Binary()
H A Ddacreate.c123 PetscInt dim, m, n, p, dof, swidth; in DMLoad_DA() local
136 PetscCall(PetscViewerBinaryRead(viewer, &swidth, 1, NULL, PETSC_INT)); in DMLoad_DA()
147 PetscCall(DMDASetStencilWidth(da, swidth)); in DMLoad_DA()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DDMDA.pyx107 cdef PetscInt swidth = PETSC_DECIDE
135 swidth = asInt(stencil_width)
136 if setup and swidth == PETSC_DECIDE: swidth = 0
142 btx, bty, btz, stype, swidth,
185 cdef PetscInt swidth = PETSC_DECIDE
190 &ndof, &swidth,
205 swidth = asInt(stencil_width)
210 btx, bty, btz, stype, swidth,
483 cdef PetscInt swidth = asInt(stencil_width)
484 CHKERR(DMDASetStencilWidth(self.dm, swidth))
[all …]
H A DDMStag.pyx125 cdef PetscInt swidth = 0
127 swidth = asInt(stencil_width)
151 CHKERR(DMStagCreate1d(ccomm, btx, M, dof0, dof1, stype, swidth, lx, &newda))
153 …CHKERR(DMStagCreate2d(ccomm, btx, bty, M, N, m, n, dof0, dof1, dof2, stype, swidth, lx, ly, &newda…
155 …d(ccomm, btx, bty, btz, M, N, P, m, n, p, dof0, dof1, dof2, dof3, stype, swidth, lx, ly, lz, &newd…
163 def setStencilWidth(self, swidth: int) -> None:
172 swidth
180 cdef PetscInt sw = asInt(swidth)
344 cdef PetscInt swidth=0
345 CHKERR(DMStagGetStencilWidth(self.dm, &swidth))
[all …]