Home
last modified time | relevance | path

Searched refs:sj (Results 1 – 11 of 11) sorted by relevance

/petsc/src/dm/tutorials/
H A Dswarm_ex3.c13 PetscInt p, n, bs, npoints, si, sj, milocal, mjlocal, mx, my; in _DMLocatePoints_DMDARegular_IS() local
28 PetscCall(DMDAGetCorners(dmregular, &si, &sj, NULL, &milocal, &mjlocal, NULL)); in _DMLocatePoints_DMDARegular_IS()
47 if ((mj >= sj) && (mj < sj + mjlocal)) { in _DMLocatePoints_DMDARegular_IS()
48 if ((mi >= si) && (mi < si + milocal)) cellidx[p] = (mi - si) + (mj - sj) * milocal; in _DMLocatePoints_DMDARegular_IS()
169 PetscInt si, sj, milocal, mjlocal; in ex3_1() local
174 PetscCall(DMDAGetCorners(dmregular, &si, &sj, NULL, &milocal, &mjlocal, NULL)); in ex3_1()
H A Dex15.c72 PetscInt i, j, k, l, si, sj, sk, ni, nj, nk, M, N, dof; in DMDAVecGenerateEntries() local
76 PetscCall(DMDAGetCorners(dm, &si, &sj, &sk, &ni, &nj, &nk)); in DMDAVecGenerateEntries()
79 for (j = sj; j < sj + nj; j++) { in DMDAVecGenerateEntries()
/petsc/src/ksp/ksp/tutorials/
H A Dex49.c266 PetscInt si, sj, nx, ny, i, j; in DMDACoordViewGnuplot2d() local
281 PetscCall(DMDAGetGhostCorners(cda, &si, &sj, 0, &nx, &ny, 0)); in DMDACoordViewGnuplot2d()
282 for (j = sj; j < sj + ny - 1; j++) { in DMDACoordViewGnuplot2d()
306 PetscInt si, sj, nx, ny, i, j; in DMDAViewGnuplot2d() local
328 PetscCall(DMDAGetGhostCorners(cda, &si, &sj, 0, &nx, &ny, 0)); in DMDAViewGnuplot2d()
335 for (j = sj; j < sj + ny; j++) { in DMDAViewGnuplot2d()
345 field_d = _fields[n_dofs * ((i - si) + (j - sj) * (nx)) + d]; in DMDAViewGnuplot2d()
368 PetscInt si, sj, nx, ny, i, j, p; in DMDAViewCoefficientsGnuplot2d() local
388 PetscCall(DMDAGetGhostCorners(cda, &si, &sj, 0, &nx, &ny, 0)); in DMDAViewCoefficientsGnuplot2d()
395 for (j = sj; j < sj + ny; j++) { in DMDAViewCoefficientsGnuplot2d()
[all …]
H A Dex43.c318 PetscInt si, sj, nx, ny, i, j; in DMDACoordViewGnuplot2d() local
334 PetscCall(DMDAGetGhostCorners(cda, &si, &sj, 0, &nx, &ny, 0)); in DMDACoordViewGnuplot2d()
335 for (j = sj; j < sj + ny - 1; j++) { in DMDACoordViewGnuplot2d()
358 PetscInt si, sj, nx, ny, i, j; in DMDAViewGnuplot2d() local
381 PetscCall(DMDAGetGhostCorners(cda, &si, &sj, 0, &nx, &ny, 0)); in DMDAViewGnuplot2d()
388 for (j = sj; j < sj + ny; j++) { in DMDAViewGnuplot2d()
398 field_d = _fields[n_dofs * ((i - si) + (j - sj) * (nx)) + d]; in DMDAViewGnuplot2d()
420 PetscInt si, sj, nx, ny, i, j, p; in DMDAViewCoefficientsGnuplot2d() local
441 PetscCall(DMDAGetGhostCorners(cda, &si, &sj, 0, &nx, &ny, 0)); in DMDAViewCoefficientsGnuplot2d()
448 for (j = sj; j < sj + ny; j++) { in DMDAViewCoefficientsGnuplot2d()
[all …]
H A Dex70.c1289 PetscInt si, sj, nx, ny, i, j; in BCApplyZero_EAST() local
1306 PetscCall(DMDAGetGhostCorners(cda, &si, &sj, 0, &nx, &ny, 0)); in BCApplyZero_EAST()
1347 PetscInt si, sj, nx, ny, i, j; in BCApplyZero_WEST() local
1364 PetscCall(DMDAGetGhostCorners(cda, &si, &sj, 0, &nx, &ny, 0)); in BCApplyZero_WEST()
1406 PetscInt si, sj, nx, ny, i, j; in BCApplyZero_NORTH() local
1423 PetscCall(DMDAGetGhostCorners(cda, &si, &sj, 0, &nx, &ny, 0)); in BCApplyZero_NORTH()
1444 if ((sj + ny) == (N)) nbcs = nx; in BCApplyZero_NORTH()
1464 PetscInt si, sj, nx, ny, i, j; in BCApplyZero_SOUTH() local
1481 PetscCall(DMDAGetGhostCorners(cda, &si, &sj, 0, &nx, &ny, 0)); in BCApplyZero_SOUTH()
1502 if (sj == 0) nbcs = nx; in BCApplyZero_SOUTH()
H A Dex42.c1214 PetscInt si, sj, sk, ei, ej, ek, i, j, k; in DMDACreateManufacturedSolution() local
1234 PetscCall(DMDAGetCorners(da, &si, &sj, &sk, &ei, &ej, &ek)); in DMDACreateManufacturedSolution()
1236 for (j = sj; j < sj + ej; j++) { in DMDACreateManufacturedSolution()
1432 PetscInt si, sj, sk, nx, ny, nz, i; in DAView_3DVTK_StructuredGrid_appended() local
1454 PetscCall(DMDAGetGhostCorners(da, &si, &sj, &sk, &nx, &ny, &nz)); in DAView_3DVTK_StructuredGrid_appended()
1458 …tscInt_FMT " %" PetscInt_FMT " %" PetscInt_FMT "\">\n", si, si + nx - 1, sj, sj + ny - 1, sk, sk +… in DAView_3DVTK_StructuredGrid_appended()
1459 …tscInt_FMT " %" PetscInt_FMT " %" PetscInt_FMT "\">\n", si, si + nx - 1, sj, sj + ny - 1, sk, sk +… in DAView_3DVTK_StructuredGrid_appended()
1638 PetscInt M, N, P, si, sj, sk, nx, ny, nz; in DAView_3DVTK_PStructuredGrid() local
1661 PetscCall(DMDAGetGhostCorners(da, &si, &sj, &sk, &nx, &ny, &nz)); in DAView_3DVTK_PStructuredGrid()
/petsc/src/dm/impls/da/
H A Ddadd.c40 PetscInt si, sj, sk; in DMDACreatePatchIS() local
183 sj = jj - ns; in DMDACreatePatchIS()
186 indices[idx] = l + dof * (base + si + xm * sj + xm * ym * sk); in DMDACreatePatchIS()
241 sj = j - ns; in DMDACreatePatchIS()
244 indices[idx] = l + dof * (base + si + xm * sj + xm * ym * sk); in DMDACreatePatchIS()
/petsc/src/ksp/pc/impls/telescope/
H A Dtelescope_dmda.c127 PetscInt i, j, si, sj, ni, nj, M, N, Ml, Nl, c, nidx; in PCTelescopeSetUp_dmda_repart_coors2d() local
146 PetscCall(DMDAGetCorners(subdm, &si, &sj, NULL, &ni, &nj, NULL)); in PCTelescopeSetUp_dmda_repart_coors2d()
150 si = sj = 0; in PCTelescopeSetUp_dmda_repart_coors2d()
158 for (j = sj; j < sj + nj; j++) { in PCTelescopeSetUp_dmda_repart_coors2d()
218 PetscInt i, j, k, si, sj, sk, ni, nj, nk, M, N, P, Ml, Nl, Pl, c, nidx; in PCTelescopeSetUp_dmda_repart_coors3d() local
239 PetscCall(DMDAGetCorners(subdm, &si, &sj, &sk, &ni, &nj, &nk)); in PCTelescopeSetUp_dmda_repart_coors3d()
244 si = sj = sk = 0; in PCTelescopeSetUp_dmda_repart_coors3d()
254 for (j = sj; j < sj + nj; j++) { in PCTelescopeSetUp_dmda_repart_coors3d()
/petsc/src/dm/dt/dualspace/impls/sum/
H A Ddualspacesum.c317 const PetscInt *sj; in PetscDualSpaceSumCreateMatrix() local
334 PetscCall(MatSeqAIJGetCSRAndMemType(smat, &si, &sj, &sv, &memtype)); in PetscDualSpaceSumCreateMatrix()
361 cooj[snz_actual] = sj[k]; in PetscDualSpaceSumCreateMatrix()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscmat.pxi982 cdef Py_ssize_t sj = PyArray_DIM(aj, 1)
986 (si*rbs * sj*cbs != sv)): raise ValueError(
999 <PetscInt>sj, &j[k*sj],
/petsc/src/ts/tutorials/
H A Dex30.c100 const PetscBool sj = (PetscBool)(1.0 - d > 0.0); in Eigenvalues_Sym3x3() local
107 const PetscReal sjn = sj ? 1.0 : -1.0; in Eigenvalues_Sym3x3()
110 … const PetscReal atanval = d > tol ? 2.0 * PetscAtanReal(sj ? d : 1.0 / d) : (sj ? 0.0 : PETSC_PI); in Eigenvalues_Sym3x3()