Lines Matching refs:lx
130 const PetscInt *lx = dd->lx; in DMSetUp_DA_1D() local
160 if (!lx) { in DMSetUp_DA_1D()
161 PetscCall(PetscMalloc1(m, &dd->lx)); in DMSetUp_DA_1D()
177 PetscCallMPI(MPI_Allgather(&xs, 1, MPIU_INT, dd->lx, 1, MPIU_INT, comm)); in DMSetUp_DA_1D()
178 for (i = 0; i < m - 1; i++) dd->lx[i] = dd->lx[i + 1] - dd->lx[i]; in DMSetUp_DA_1D()
179 dd->lx[m - 1] = M - dd->lx[m - 1]; in DMSetUp_DA_1D()
181 x = lx[rank]; in DMSetUp_DA_1D()
183 for (i = 0; i < rank; i++) xs += lx[i]; in DMSetUp_DA_1D()
186 for (i = rank; i < size; i++) left += lx[i]; in DMSetUp_DA_1D()
357 …PI_Comm comm, DMBoundaryType bx, PetscInt M, PetscInt dof, PetscInt s, const PetscInt lx[], DM *da) in DMDACreate1d() argument
370 PetscCall(DMDASetOwnershipRanges(*da, lx, NULL, NULL)); in DMDACreate1d()