| /petsc/src/dm/tests/output/ |
| H A D | ex34_1.out | 27 [0] lx ly lz 31 [1] lx ly lz 35 [2] lx ly lz 39 [3] lx ly lz 43 [4] lx ly lz 47 [5] lx ly lz 51 [6] lx ly lz 55 [7] lx ly lz 59 [8] lx ly lz 63 [9] lx ly lz [all …]
|
| /petsc/src/dm/impls/da/ftn-custom/ |
| H A D | zdaf.c | 35 PETSC_EXTERN void dmdagetownershipranges_(DM *da, F90Array1d *lx, F90Array1d *ly, F90Array1d *lz, P… in dmdagetownershipranges_() argument 48 if ((void *)ly != PETSC_NULL_INTEGER_POINTER_Fortran) { in dmdagetownershipranges_() 49 *ierr = F90Array1dCreate((PetscInt *)gy, MPIU_INT, 1, N, ly PETSC_F90_2PTR_PARAM(lyd)); in dmdagetownershipranges_() 55 PETSC_EXTERN void dmdarestoreownershipranges_(DM *da, F90Array1d *lx, F90Array1d *ly, F90Array1d *l… in dmdarestoreownershipranges_() argument 61 if ((void *)ly != PETSC_NULL_INTEGER_POINTER_Fortran) { in dmdarestoreownershipranges_() 62 *ierr = F90Array1dDestroy(ly, MPIU_INT PETSC_F90_2PTR_PARAM(lyd)); in dmdarestoreownershipranges_()
|
| /petsc/src/dm/tests/ |
| H A D | ex46.c | 10 PetscInt *lx = NULL, *ly = NULL, *lz = NULL; in main() local 73 PetscCall(PetscMalloc1(n, &ly)); in main() 74 for (i = 0; i < n - 1; i++) ly[i] = 2; in main() 75 ly[n - 1] = N - 2 * (n - 1); 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 …MDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, m, n, p, w, 0, lx, ly, lz, &da2)); in main() 135 …DACreate3d(PETSC_COMM_WORLD, bx, by, bz2, stencil_type, M, N, P, m, n, p, w, s, lx, ly, lz, &da2)); in main() 147 …reate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P * 2, m, n, p, w, s, lx, ly, lz, &da2)); in main() 166 …DACreate3d(PETSC_COMM_WORLD, bx, by, bz, stencil_type, M, N, P, m, n, p, w, s, lx, ly, lz2, &da2)); in main() [all …]
|
| H A D | ex34.c | 11 const PetscInt *lx, *ly, *lz; in main() local 30 PetscCall(DMDAGetOwnershipRanges(da, &lx, &ly, &lz)); in main() 36 PetscCall(PetscIntView(n, ly, vw)); in main()
|
| H A D | ex1f.F90 | 17 PetscInt, pointer :: lx(:), ly(:) 39 PetscCallA(DMDAGetOwnershipRanges(da, lx, ly, PETSC_NULL_INTEGER_POINTER, ierr)) 40 PetscCallA(DMDARestoreOwnershipRanges(da, lx, ly, PETSC_NULL_INTEGER_POINTER, ierr))
|
| H A D | ex4.c | 13 PetscInt *lx = NULL, *ly = NULL; in main() local 67 PetscCall(PetscMalloc1(n, &ly)); in main() 68 for (i = 0; i < n - 1; i++) ly[i] = 2; in main() 69 ly[n - 1] = N - 2 * (n - 1); in main() 73 PetscCall(DMDACreate2d(PETSC_COMM_WORLD, bx, by, st, M, N, m, n, w, s, lx, ly, &da)); in main() 77 PetscCall(PetscFree(ly)); in main()
|
| H A D | ex6.c | 13 PetscInt *lx = NULL, *ly = NULL, *lz = NULL; in main() local 81 PetscCall(PetscMalloc1(n, &ly)); in main() 82 for (i = 0; i < n - 1; i++) ly[i] = 2; in main() 83 ly[n - 1] = N - 2 * (n - 1); 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() 95 PetscCall(PetscFree(ly)); in main()
|
| /petsc/src/dm/impls/da/ |
| H A D | da.c | 595 PetscErrorCode DMDASetOwnershipRanges(DM da, const PetscInt lx[], const PetscInt ly[], const PetscI… in DMDASetOwnershipRanges() argument 608 if (ly) { in DMDASetOwnershipRanges() 610 PetscCall(DMDACheckOwnershipRanges_Private(da, dd->N, dd->n, ly)); in DMDASetOwnershipRanges() 611 if (!dd->ly) PetscCall(PetscMalloc1(dd->n, &dd->ly)); in DMDASetOwnershipRanges() 612 PetscCall(PetscArraycpy(dd->ly, ly, dd->n)); in DMDASetOwnershipRanges() 748 PetscErrorCode DMDAGetOwnershipRanges(DM da, PeOp const PetscInt *lx[], PeOp const PetscInt *ly[], … in DMDAGetOwnershipRanges() argument 755 if (ly) *ly = dd->ly; in DMDAGetOwnershipRanges() 1059 PetscInt *lx, *ly, *lz; in DMRefine_DA() local 1060 PetscCall(PetscMalloc3(dd->m, &lx, dd->n, &ly, dd->p, &lz)); in DMRefine_DA() 1062 …by == DM_BOUNDARY_PERIODIC || dd->interptype == DMDA_Q0), dd->s, dd->refine_y, dd->n, dd->ly, ly)); in DMRefine_DA() [all …]
|
| H A D | da3.c | 204 PetscInt *ly = dd->ly; in DMSetUp_DA_3D() local 345 if (!ly) { in DMSetUp_DA_3D() 346 PetscCall(PetscMalloc1(n, &dd->ly)); in DMSetUp_DA_3D() 347 ly = dd->ly; in DMSetUp_DA_3D() 348 for (i = 0; i < n; i++) ly[i] = N / n + ((N % n) > (i % n)); in DMSetUp_DA_3D() 350 y = ly[(rank % (m * n)) / m]; in DMSetUp_DA_3D() 354 for (i = 0; i < (rank % (m * n)) / m; i++) ys += ly[i]; in DMSetUp_DA_3D() 816 y_t = ly[(n0 % (m * n)) / m]; in DMSetUp_DA_3D() 824 y_t = ly[(n1 % (m * n)) / m]; in DMSetUp_DA_3D() 832 y_t = ly[(n2 % (m * n)) / m]; in DMSetUp_DA_3D() [all …]
|
| H A D | da2.c | 199 PetscInt *ly = dd->ly; in DMSetUp_DA_2D() local 281 if (!ly) { in DMSetUp_DA_2D() 282 PetscCall(PetscMalloc1(n, &dd->ly)); in DMSetUp_DA_2D() 283 ly = dd->ly; in DMSetUp_DA_2D() 284 for (i = 0; i < n; i++) ly[i] = N / n + ((N % n) > i); in DMSetUp_DA_2D() 286 y = ly[rank / m]; in DMSetUp_DA_2D() 288 for (i = 0; i < (rank / m); i++) ys += ly[i]; in DMSetUp_DA_2D() 291 for (i = (rank / m); i < n; i++) left += ly[i]; in DMSetUp_DA_2D() 534 y_t = ly[n0 / m]; in DMSetUp_DA_2D() 541 y_t = ly[n1 / m]; in DMSetUp_DA_2D() [all …]
|
| H A D | dacorn.c | 308 const PetscInt *lx, *ly, *lz; in DMDACreateCompatibleDMDA() local 330 PetscCall(DMDAGetOwnershipRanges(da, &lx, &ly, &lz)); in DMDACreateCompatibleDMDA() 334 …te2d(PetscObjectComm((PetscObject)da), bx, by, stencil_type, M, N, m, n, nfields, s, lx, ly, nda)); in DMDACreateCompatibleDMDA() 336 …ctComm((PetscObject)da), bx, by, bz, stencil_type, M, N, P, m, n, p, nfields, s, lx, ly, lz, nda)); in DMDACreateCompatibleDMDA()
|
| H A D | dadd.c | 46 const PetscInt *lx, *ly, *lz; in DMDACreatePatchIS() local 98 PetscCall(DMDAGetOwnershipRanges(da, &lx, &ly, &lz)); in DMDACreatePatchIS() 107 if (ly) ne = ly[0]; in DMDACreatePatchIS() 156 ne = ly[0]; in DMDACreatePatchIS() 161 ne += ly[nr]; in DMDACreatePatchIS()
|
| H A D | grglvis.c | 153 const PetscInt *lx, *ly, *lz; in DMSetUpGLVisViewer_DMDA() local 163 PetscCall(DMDAGetOwnershipRanges(da, &lx, &ly, &lz)); in DMSetUpGLVisViewer_DMDA() 177 …t)da), DM_BOUNDARY_NONE, DM_BOUNDARY_NONE, DMDA_STENCIL_BOX, M, N, m, n, dof, 1, lx, ly, &daview)); in DMSetUpGLVisViewer_DMDA() 178 …ct)da), DM_BOUNDARY_NONE, DM_BOUNDARY_NONE, DMDA_STENCIL_BOX, M, N, m, n, 2, 1, lx, ly, &dacoord)); in DMSetUpGLVisViewer_DMDA() 181 …BOUNDARY_NONE, DM_BOUNDARY_NONE, DMDA_STENCIL_BOX, M, N, P, m, n, p, dof, 1, lx, ly, lz, &daview)); in DMSetUpGLVisViewer_DMDA() 182 …_BOUNDARY_NONE, DM_BOUNDARY_NONE, DMDA_STENCIL_BOX, M, N, P, m, n, p, 3, 1, lx, ly, lz, &dacoord)); in DMSetUpGLVisViewer_DMDA()
|
| H A D | dadestroy.c | 28 PetscCall(PetscFree(dd->ly)); in DMDestroy_DA()
|
| /petsc/src/dm/impls/stag/tests/ |
| H A D | ex14.c | 22 PetscInt ly[3] = {3, 8, 2}, ranksy = 3, my = 13; in main() local 33 …DARY_NONE, DM_BOUNDARY_NONE, mx, my, ranksx, ranksy, 1, 1, 1, DMSTAG_STENCIL_BOX, 1, lx, ly, &dm)); in main() 37 …ARY_NONE, mx, my, mz, ranksx, ranksy, ranksz, 1, 1, 1, 1, DMSTAG_STENCIL_BOX, 1, lx, ly, lz, &dm)); in main()
|
| H A D | ex1.c | 41 PetscInt ly[3] = {4, 5}, ranksy = 2, my = 9; in main() local 52 …_NONE, DM_BOUNDARY_NONE, mx, my, ranksx, ranksy, 1, 1, 1, DMSTAG_STENCIL_BOX, 1, lx, ly, &dmstag)); in main() 56 …NONE, mx, my, mz, ranksx, ranksy, ranksz, 1, 1, 1, 1, DMSTAG_STENCIL_BOX, 1, lx, ly, lz, &dmstag)); in main()
|
| /petsc/src/dm/tutorials/ |
| H A D | ex51.c | 12 const PetscInt *lx, *ly; in main() local 27 PetscCall(DMDAGetOwnershipRanges(da, &lx, &ly, NULL)); in main() 42 PetscCall(DMDACreate1d(commY, DM_BOUNDARY_NONE, info.my, dof, 1, ly, &daY)); in main()
|
| /petsc/src/ksp/pc/impls/asm/ |
| H A D | asm.c | 326 PetscCall(VecDuplicate(osm->lx, &osm->ly)); in PCSetUp_ASM() 351 PetscCall(VecScatterCreate(osm->ly, isll, osm->y[i], isl, &osm->lrestriction[i])); in PCSetUp_ASM() 378 PetscCall(VecScatterCreate(osm->y[i], isll, osm->ly, isll_local, &osm->lprolongation[i])); in PCSetUp_ASM() 449 PetscCall(VecSet(osm->ly, 0.0)); in PCApply_ASM() 468 PetscCall(VecScatterBegin(osm->lprolongation[i], osm->y[i], osm->ly, ADD_VALUES, forward)); in PCApply_ASM() 469 PetscCall(VecScatterEnd(osm->lprolongation[i], osm->y[i], osm->ly, ADD_VALUES, forward)); in PCApply_ASM() 471 PetscCall(VecScatterBegin(osm->lrestriction[i], osm->y[i], osm->ly, ADD_VALUES, reverse)); in PCApply_ASM() 472 PetscCall(VecScatterEnd(osm->lrestriction[i], osm->y[i], osm->ly, ADD_VALUES, reverse)); in PCApply_ASM() 482 PetscCall(MatMult(osm->lmats[i + 1], osm->ly, osm->y[i + 1])); in PCApply_ASM() 488 PetscCall(VecScatterBegin(osm->restriction, osm->ly, y, ADD_VALUES, reverse)); in PCApply_ASM() [all …]
|
| /petsc/src/dm/impls/stag/ |
| H A D | stagintern.c | 63 …pe stencilType, PetscInt stencilWidth, const PetscInt lx[], const PetscInt ly[], const PetscInt lz… in DMStagInitialize() argument 73 PetscCall(DMStagSetOwnershipRanges(dm, lx, ly, lz)); in DMStagInitialize()
|
| /petsc/include/petsc/private/ |
| H A D | pcasmimpl.h | 12 Vec lx, ly; /* work vectors */ member
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | DMStag.pyx | 143 cdef PetscInt *lx = NULL, *ly = NULL, *lz = NULL 145 nranges = asStagOwnershipRanges(ownership_ranges, ndim, &m, &n, &p, &lx, &ly, &lz) 153 …HKERR(DMStagCreate2d(ccomm, btx, bty, M, N, m, n, dof0, dof1, dof2, stype, swidth, lx, ly, &newda)) 155 …ccomm, btx, bty, btz, M, N, P, m, n, p, dof0, dof1, dof2, dof3, stype, swidth, lx, ly, lz, &newda)) 302 cdef PetscInt *lx = NULL, *ly = NULL, *lz = NULL 305 asStagOwnershipRanges(ranges, dim, &m, &n, &p, &lx, &ly, &lz) 306 CHKERR(DMStagSetOwnershipRanges(self.dm, lx, ly, lz)) 472 cdef const PetscInt *lx = NULL, *ly = NULL, *lz = NULL 475 CHKERR(DMStagGetOwnershipRanges(self.dm, &lx, &ly, &lz)) 476 return toStagOwnershipRanges(dim, m, n, p, lx, ly, lz)
|
| H A D | DMDA.pyx | 101 cdef PetscInt N = 1, n = PETSC_DECIDE, *ly = NULL 128 &lx, &ly, &lz) 141 M, N, P, m, n, p, lx, ly, lz, 193 cdef const PetscInt *lx = NULL, *ly = NULL, *lz = NULL 194 CHKERR(DMDAGetOwnershipRanges(self.dm, &lx, &ly, &lz)) 209 M, N, P, m, n, p, lx, ly, lz, 611 cdef const PetscInt *lx = NULL, *ly = NULL, *lz = NULL 619 CHKERR(DMDAGetOwnershipRanges(self.dm, &lx, &ly, &lz)) 620 return toOwnershipRanges(dim, m, n, p, lx, ly, lz)
|
| H A D | petscdmda.pxi | 21 PetscInt[], PetscInt[], PetscInt[], # lx, ly, lz 186 const PetscInt *ly, 191 ranges.append(array_i(n, ly))
|
| /petsc/src/snes/tutorials/ |
| H A D | ex36.c | 358 Vec ly; in QuasiInterpolate() local 375 PetscCall(DMGetLocalVector(dmc, &ly)); in QuasiInterpolate() 376 PetscCall(DMPlexComputeClementInterpolant(dmcdg, ctx->tmpc, ly)); in QuasiInterpolate() 377 PetscCall(DMLocalToGlobalBegin(dmc, ly, INSERT_VALUES, y)); in QuasiInterpolate() 378 PetscCall(DMLocalToGlobalEnd(dmc, ly, INSERT_VALUES, y)); in QuasiInterpolate() 379 PetscCall(DMRestoreLocalVector(dmc, &ly)); in QuasiInterpolate()
|
| /petsc/src/dm/ftn-mod/ |
| H A D | petscdmda.h90 | 10 subroutine DMDARestoreOwnershipRanges(da, lx, ly, lz, ierr) 14 PetscInt, pointer :: lx(:), ly(:), lz(:)
|